Select - shorts

Instantly get value from a simple method.

1. All entities

Instead of:

List<Pizza> list=Select.entityList(db,tabPizza).results();

Use:

List<Pizza> list=Select.all(db,tabPizza);

2. Entity having field equal value

Instead of:

Pizza pizza=Select.entity(db,tabPizza)
	.where(tabPizza.colName(),EQ,"MARGERITA").results();

Use:

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

3. Entity list having field equal value

Instead of:

List<Pizza> list=Select.entityList(db,tabPizza)
	.where(tabPizza.colName(),EQ,"MARGERITA").results();

Use:

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