| java.lang.Object org.ofbiz.entity.datasource.GenericDAO
Method Summary | |
public void | checkDb(Map modelEntities, List messages, boolean addMissing) | public int | delete(GenericEntity entity) | public int | delete(GenericEntity entity, SQLProcessor sqlP) | public int | deleteAll(List dummyPKs) | public int | deleteByAnd(ModelEntity modelEntity, Map fields) | public int | deleteByAnd(ModelEntity modelEntity, Map fields, SQLProcessor sqlP) | public static GenericDAO | getGenericDAO(String helperName) | public List | induceModelFromDb(Collection messages) | public int | insert(GenericEntity entity) | public void | partialSelect(GenericEntity entity, Set keys) | public void | select(GenericEntity entity) | public void | select(GenericEntity entity, SQLProcessor sqlP) | public List | selectByAnd(ModelEntity modelEntity, Map fields, List orderBy) | public List | selectByCondition(ModelEntity modelEntity, EntityCondition entityCondition, Collection fieldsToSelect, List orderBy) Finds GenericValues by the conditions specified in the EntityCondition object, the the EntityCondition javadoc for more details. | public List | selectByMultiRelation(GenericValue value, ModelRelation modelRelationOne, ModelEntity modelEntityOne, ModelRelation modelRelationTwo, ModelEntity modelEntityTwo, List orderBy) | public List | selectByOr(ModelEntity modelEntity, Map fields, List orderBy) | public long | selectCountByCondition(ModelEntity modelEntity, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition) | public EntityListIterator | selectListIteratorByCondition(ModelEntity modelEntity, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition, Collection fieldsToSelect, List orderBy, EntityFindOptions findOptions) Finds GenericValues by the conditions specified in the EntityCondition object, the the EntityCondition javadoc for more details.
Parameters: modelEntity - The ModelEntity of the Entity as defined in the entity XML file Parameters: whereEntityCondition - The EntityCondition object that specifies how to constrain this query before any groupings are done (if this is a view entity with group-by aliases) Parameters: havingEntityCondition - The EntityCondition object that specifies how to constrain this query after any groupings are done (if this is a view entity with group-by aliases) Parameters: fieldsToSelect - The fields of the named entity to get from the database; if empty or null all fields will be retreived Parameters: orderBy - The fields of the named entity to order the query by; optionally add a " ASC" for ascending or " DESC" for descending Parameters: findOptions - An instance of EntityFindOptions that specifies advanced query options. | public int | storeAll(List entities) | public int | update(GenericEntity entity) | public int | updateAll(GenericEntity entity) |
genericDAOs | protected static Map genericDAOs(Code) | | |
checkDb | public void checkDb(Map modelEntities, List messages, boolean addMissing)(Code) | | |
deleteAll | public int deleteAll(List dummyPKs) throws GenericEntityException(Code) | | Called dummyPKs because they can be invalid PKs, doing a deleteByAnd instead of a normal delete
|
induceModelFromDb | public List induceModelFromDb(Collection messages)(Code) | | Creates a list of ModelEntity objects based on meta data from the database
|
selectByCondition | public List selectByCondition(ModelEntity modelEntity, EntityCondition entityCondition, Collection fieldsToSelect, List orderBy) throws GenericEntityException(Code) | | Finds GenericValues by the conditions specified in the EntityCondition object, the the EntityCondition javadoc for more details.
Parameters: modelEntity - The ModelEntity of the Entity as defined in the entity XML file Parameters: entityCondition - The EntityCondition object that specifies how to constrain this query Parameters: fieldsToSelect - The fields of the named entity to get from the database; if empty or null all fields will be retreived Parameters: orderBy - The fields of the named entity to order the query by; optionally add a " ASC" for ascending or " DESC" for descending List of GenericValue objects representing the result |
selectListIteratorByCondition | public EntityListIterator selectListIteratorByCondition(ModelEntity modelEntity, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition, Collection fieldsToSelect, List orderBy, EntityFindOptions findOptions) throws GenericEntityException(Code) | | Finds GenericValues by the conditions specified in the EntityCondition object, the the EntityCondition javadoc for more details.
Parameters: modelEntity - The ModelEntity of the Entity as defined in the entity XML file Parameters: whereEntityCondition - The EntityCondition object that specifies how to constrain this query before any groupings are done (if this is a view entity with group-by aliases) Parameters: havingEntityCondition - The EntityCondition object that specifies how to constrain this query after any groupings are done (if this is a view entity with group-by aliases) Parameters: fieldsToSelect - The fields of the named entity to get from the database; if empty or null all fields will be retreived Parameters: orderBy - The fields of the named entity to order the query by; optionally add a " ASC" for ascending or " DESC" for descending Parameters: findOptions - An instance of EntityFindOptions that specifies advanced query options. See the EntityFindOptions JavaDoc for more details. EntityListIterator representing the result of the query: NOTE THAT THIS MUST BE CLOSED WHEN YOU AREDONE WITH IT, AND DON'T LEAVE IT OPEN TOO LONG BEACUSE IT WILL MAINTAIN A DATABASE CONNECTION. |
|
|