Select - shorts

Sometimes we need a simplest way for easiest task...

1. Instantly get all entities

Instead of:

List<Pizza> list=Select.entityList(daoPizza).results();

Use:

List<Pizza> list=Select.all(daoPizza);

2. Instantly get entity having field equal some value

Instead of:

Pizza pizza=Select.entity(daoPizza)
	.where(daoPizza.colName(),Operator.EQUAL,"MARGERITA").results();

Use:

Pizza pizza=Select.entityWhere(daoPizza.colName(),"MARGERITA");

3. Instantly get entity list having field equal some value

Instead of:

List<Pizza> list=Select.entityList(daoPizza)
	.where(daoPizza.colName(),Operator.EQUAL,"MARGERITA").results();

Use for list:

List<Pizza> list=Select.entityListWhere(daoPizza.colName(),"MARGERITA");