Uses of Class
org.ofbiz.core.entity.model.ModelEntity
Packages that use ModelEntity
Package
Description
-
Uses of ModelEntity in org.ofbiz.core.entity
Fields in org.ofbiz.core.entity declared as ModelEntityModifier and TypeFieldDescriptionprotected ModelEntityEntityListIterator.modelEntityGenericEntity.modelEntityContains the ModelEntity instance that represents the definition of this entity, not to be serializedMethods in org.ofbiz.core.entity that return ModelEntityModifier and TypeMethodDescriptionprotected ModelEntityEntityClause.getFirstModelEntity()DelegatorInterface.getModelEntity(String entityName) GenericDelegator.getModelEntity(String entityName) Gets the instance of ModelEntity that corresponds to this delegator and the specified entityName.GenericEntity.getModelEntity()LockedDatabaseGenericDelegator.getModelEntity(String entityName) protected ModelEntityEntityClause.getSecondModelEntity()Methods in org.ofbiz.core.entity that return types with arguments of type ModelEntityModifier and TypeMethodDescriptionDelegatorInterface.getModelEntitiesByGroup(String groupName) GenericDelegator.getModelEntitiesByGroup(String groupName) Gets a list of entity models that are in a group corresponding to the specified group name.LockedDatabaseGenericDelegator.getModelEntitiesByGroup(String groupName) DelegatorInterface.getModelEntityMapByGroup(String groupName) GenericDelegator.getModelEntityMapByGroup(String groupName) Gets a Map of entity name & entity model pairs that are in the named group.LockedDatabaseGenericDelegator.getModelEntityMapByGroup(String groupName) GenericDAO.induceModelFromDb(Collection<String> messages) Creates a list of ModelEntity objects based on meta data from the databaseMethods in org.ofbiz.core.entity with parameters of type ModelEntityModifier and TypeMethodDescriptionabstract voidEntityCondition.checkCondition(ModelEntity modelEntity) Checks this condition against the given entity.voidEntityConditionList.checkCondition(ModelEntity modelEntity) voidEntityExpr.checkCondition(ModelEntity modelEntity) voidEntityExprList.checkCondition(ModelEntity modelEntity) voidEntityFieldMap.checkCondition(ModelEntity modelEntity) voidEntityWhereString.checkCondition(ModelEntity modelEntity) intGenericDAO.count(ModelEntity modelEntity, String fieldName, EntityCondition entityCondition, EntityFindOptions findOptions) intGenericHelper.count(ModelEntity modelEntity, String fieldName, EntityCondition entityCondition, EntityFindOptions findOptions) Returns the count of the results that matches the specified conditionintGenericHelperDAO.count(ModelEntity modelEntity, String fieldName, EntityCondition entityCondition, EntityFindOptions findOptions) intMemoryHelper.count(ModelEntity modelEntity, String fieldName, EntityCondition entityCondition, EntityFindOptions findOptions) intGenericDAO.deleteByAnd(ModelEntity modelEntity, Map<String, ?> fields) intGenericDAO.deleteByCondition(ModelEntity modelEntity, EntityCondition whereCondition) Finds any entities matching the given criteria.Finds Generic Entity records by all of the specified fields (ie: combined using AND)Finds Generic Entity records by all of the specified fields (ie: combined using AND)LockedDatabaseGenericDelegator.findByAnd(ModelEntity modelEntity, Map<String, ?> fields, List<String> orderBy) MemoryHelper.findByAnd(ModelEntity modelEntity, List<? extends EntityCondition> expressions, List<String> orderBy) GenericHelper.findByCondition(ModelEntity modelEntity, EntityCondition entityCondition, Collection<String> fieldsToSelect, List<String> orderBy) Finds GenericValues by the conditions specified in the EntityCondition object, the the EntityCondition javadoc for more details.GenericHelperDAO.findByCondition(ModelEntity modelEntity, EntityCondition entityCondition, Collection<String> fieldsToSelect, List<String> orderBy) Finds GenericValues by the conditions specified in the EntityCondition object, the the EntityCondition javadoc for more details.MemoryHelper.findByCondition(ModelEntity modelEntity, EntityCondition entityCondition, Collection<String> fieldsToSelect, List<String> orderBy) MemoryHelper.findByLike(ModelEntity modelEntity, Map<String, ?> fields, List<String> orderBy) GenericHelper.findByMultiRelation(GenericValue value, ModelRelation modelRelationOne, ModelEntity modelEntityOne, ModelRelation modelRelationTwo, ModelEntity modelEntityTwo, List<String> orderBy) GenericHelperDAO.findByMultiRelation(GenericValue value, ModelRelation modelRelationOne, ModelEntity modelEntityOne, ModelRelation modelRelationTwo, ModelEntity modelEntityTwo, List<String> orderBy) MemoryHelper.findByMultiRelation(GenericValue value, ModelRelation modelRelationOne, ModelEntity modelEntityOne, ModelRelation modelRelationTwo, ModelEntity modelEntityTwo, List<String> orderBy) Finds Generic Entity records by all of the specified fields (ie: combined using OR)Finds Generic Entity records by all of the specified fields (ie: combined using OR)MemoryHelper.findByOr(ModelEntity modelEntity, List<? extends EntityCondition> expressions, List<String> orderBy) GenericHelper.findListIteratorByCondition(ModelEntity modelEntity, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition, Collection<String> fieldsToSelect, List<String> orderBy, EntityFindOptions findOptions) Finds GenericValues by the conditions specified in the EntityCondition object, the the EntityCondition javadoc for more details.GenericHelperDAO.findListIteratorByCondition(ModelEntity modelEntity, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition, Collection<String> fieldsToSelect, List<String> orderBy, EntityFindOptions findOptions) Finds GenericValues by the conditions specified in the EntityCondition object, the the EntityCondition javadoc for more details.MemoryHelper.findListIteratorByCondition(ModelEntity modelEntity, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition, Collection<String> fieldsToSelect, List<String> orderBy, EntityFindOptions findOptions) The memory implementation does the *minimum* that it can to allow tests to work.DelegatorInterface.getEntityFieldType(ModelEntity entity, String type) GenericDelegator.getEntityFieldType(ModelEntity entity, String type) Gets a field type instance by name from the helper that corresponds to the specified entity.LockedDatabaseGenericDelegator.getEntityFieldType(ModelEntity entity, String type) DelegatorInterface.getEntityFieldTypeNames(ModelEntity entity) GenericDelegator.getEntityFieldTypeNames(ModelEntity entity) Gets field type names from the helper that corresponds to the specified entity.LockedDatabaseGenericDelegator.getEntityFieldTypeNames(ModelEntity entity) DelegatorInterface.getEntityHelper(ModelEntity entity) GenericDelegator.getEntityHelper(ModelEntity entity) Gets the helper that corresponds to this delegator and the specified entity.LockedDatabaseGenericDelegator.getEntityHelper(ModelEntity entity) DelegatorInterface.getEntityHelperName(ModelEntity entity) GenericDelegator.getEntityHelperName(ModelEntity entity) Gets the helper name that corresponds to this delegator and the specified entity.LockedDatabaseGenericDelegator.getEntityHelperName(ModelEntity entity) DelegatorInterface.getFromAndCache(ModelEntity entity, Map<String, ?> fields) GenericDelegator.getFromAndCache(ModelEntity entity, Map<String, ?> fields) LockedDatabaseGenericDelegator.getFromAndCache(ModelEntity entity, Map<String, ?> fields) intEntityCondition.getParameterCount(ModelEntity modelEntity, SqlEscapeHelper sqlEscapeHelper) Returns the number of SQL parameters that would be generated for this condition.intEntityConditionList.getParameterCount(ModelEntity modelEntity, SqlEscapeHelper sqlEscapeHelper) intEntityExpr.getParameterCount(ModelEntity modelEntity, SqlEscapeHelper sqlEscapeHelper) intEntityExprList.getParameterCount(ModelEntity modelEntity, SqlEscapeHelper sqlEscapeHelper) intEntityFieldMap.getParameterCount(ModelEntity modelEntity, SqlEscapeHelper sqlEscapeHelper) intEntityWhereString.getParameterCount(ModelEntity modelEntity, SqlEscapeHelper sqlEscapeHelper) abstract StringEntityCondition.makeWhereString(ModelEntity modelEntity, List<? super EntityConditionParam> entityConditionParams, SqlEscapeHelper sqlEscapeHelper) Creates a string for use in a WHERE clause, based on this condition.EntityConditionList.makeWhereString(ModelEntity modelEntity, List<? super EntityConditionParam> entityConditionParams, SqlEscapeHelper sqlEscapeHelper) EntityExpr.makeWhereString(ModelEntity modelEntity, List<? super EntityConditionParam> entityConditionParams, SqlEscapeHelper sqlEscapeHelper) EntityExprList.makeWhereString(ModelEntity modelEntity, List<? super EntityConditionParam> entityConditionParams, SqlEscapeHelper sqlEscapeHelper) EntityFieldMap.makeWhereString(ModelEntity modelEntity, List<? super EntityConditionParam> entityConditionParams, SqlEscapeHelper sqlEscapeHelper) EntityWhereString.makeWhereString(ModelEntity modelEntity, List<? super EntityConditionParam> entityConditionParams, SqlEscapeHelper sqlEscapeHelper) voidDelegatorInterface.putInAllCache(ModelEntity entity, List<? extends GenericValue> values) voidGenericDelegator.putInAllCache(ModelEntity entity, List<? extends GenericValue> values) voidLockedDatabaseGenericDelegator.putInAllCache(ModelEntity entity, List<? extends GenericValue> values) voidDelegatorInterface.putInAndCache(ModelEntity entity, Map<String, ?> fields, List<? extends GenericValue> values) voidGenericDelegator.putInAndCache(ModelEntity entity, Map<String, ?> fields, List<? extends GenericValue> values) voidLockedDatabaseGenericDelegator.putInAndCache(ModelEntity entity, Map<String, ?> fields, List<? extends GenericValue> values) intGenericHelper.removeByAnd(ModelEntity modelEntity, Map<String, ?> fields) Removes/deletes Generic Entity records found by all of the specified fields (ie: combined using AND)intGenericHelperDAO.removeByAnd(ModelEntity modelEntity, Map<String, ?> fields) Removes/deletes Generic Entity records found by all of the specified fields (ie: combined using AND)intMemoryHelper.removeByAnd(ModelEntity modelEntity, Map<String, ?> fields) intGenericHelper.removeByCondition(ModelEntity modelEntity, EntityCondition whereCondition) Removes/deletes Generic Entity records found by all of the specified fields (ie: combined using AND)intGenericHelperDAO.removeByCondition(ModelEntity modelEntity, EntityCondition whereCondition) intMemoryHelper.removeByCondition(ModelEntity modelEntity, EntityCondition whereCondition) GenericDAO.selectByAnd(ModelEntity modelEntity, Map<String, ?> fields, List<String> orderBy) GenericDAO.selectByCondition(ModelEntity modelEntity, EntityCondition entityCondition, Collection<String> fieldsToSelect, List<String> orderBy) Finds GenericValues by the conditions specified in the EntityCondition object, see the EntityCondition javadoc for more details.GenericDAO.selectByCondition(ModelEntity modelEntity, EntityCondition entityCondition, Collection<String> fieldsToSelect, List<String> orderBy, EntityFindOptions findOptions) Finds GenericValues by the conditions specified in the EntityCondition object, see the EntityCondition javadoc for more details.GenericDAO.selectByMultiRelation(GenericValue value, ModelRelation modelRelationOne, ModelEntity modelEntityOne, ModelRelation modelRelationTwo, ModelEntity modelEntityTwo, List<String> orderBy) GenericDAO.selectByOr(ModelEntity modelEntity, Map<String, ?> fields, List<String> orderBy) GenericDAO.selectListIteratorByCondition(ModelEntity modelEntity, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition, Collection<String> fieldsToSelect, List<String> orderBy, EntityFindOptions findOptions) Finds GenericValues by the conditions specified in the EntityCondition object, the the EntityCondition javadoc for more details.GenericDAO.transform(ModelEntity modelEntity, EntityCondition entityCondition, List<String> orderBy, String lockFieldName, Transformation transformation) Applies the given transformation to any entities matching the given condition, by performing a SELECT followed by an UPDATE.GenericHelper.transform(ModelEntity modelEntity, EntityCondition entityCondition, List<String> orderBy, String lockField, Transformation transformation) Applies the given transformation to any entities matching the given condition.GenericHelperDAO.transform(ModelEntity modelEntity, EntityCondition entityCondition, List<String> orderBy, String lockField, Transformation transformation) MemoryHelper.transform(ModelEntity modelEntity, EntityCondition entityCondition, List<String> orderBy, String lockField, Transformation transformation) Method parameters in org.ofbiz.core.entity with type arguments of type ModelEntityModifier and TypeMethodDescriptionvoidGenericHelper.checkDataSource(Map<String, ? extends ModelEntity> modelEntities, Collection<String> messages, boolean addMissing) Check the datasource to make sure the entity definitions are correct, optionally adding missing entities or fields on the servervoidGenericHelperDAO.checkDataSource(Map<String, ? extends ModelEntity> modelEntities, Collection<String> messages, boolean addMissing) Check the datasource to make sure the entity definitions are correct, optionally adding missing entities or fields on the servervoidMemoryHelper.checkDataSource(Map<String, ? extends ModelEntity> modelEntities, Collection<String> messages, boolean addMissing) voidGenericDAO.checkDb(Map<String, ? extends ModelEntity> modelEntities, Collection<String> messages, boolean addMissing) Constructors in org.ofbiz.core.entity with parameters of type ModelEntityModifierConstructorDescriptionEntityListIterator(SQLProcessor sqlp, ModelEntity modelEntity, List<ModelField> selectFields, ModelFieldTypeReader modelFieldTypeReader) GenericEntity(GenericDelegator delegator, ModelEntity modelEntity) Creates new GenericEntity.GenericEntity(GenericDelegator delegator, ModelEntity modelEntity, Map<String, ?> fields) Creates new GenericEntity from existing Map.GenericEntity(ModelEntity modelEntity) Deprecated.GenericEntity(ModelEntity modelEntity, Map<String, ?> fields) Deprecated.GenericPK(GenericDelegator delegator, ModelEntity modelEntity) Creates new GenericPKGenericPK(GenericDelegator delegator, ModelEntity modelEntity, Map<String, ?> fields) Creates new GenericPK from existing MapGenericPK(ModelEntity modelEntity) Deprecated.GenericPK(ModelEntity modelEntity, Map<String, ?> fields) Deprecated.GenericValue(GenericDelegator internalDelegator, ModelEntity modelEntity) Creates new GenericValueGenericValue(GenericDelegator internalDelegator, ModelEntity modelEntity, Map<String, ?> fields) Creates new GenericValue from existing MapGenericValue(ModelEntity modelEntity) Deprecated.GenericValue(ModelEntity modelEntity, Map<String, ?> fields) Deprecated.SequenceUtil(String helperName, ModelEntity seqEntity, String nameFieldName, String idFieldName, boolean clustering) -
Uses of ModelEntity in org.ofbiz.core.entity.jdbc
Methods in org.ofbiz.core.entity.jdbc that return types with arguments of type ModelEntityModifier and TypeMethodDescriptionDatabaseUtil.induceModelFromDb(Collection<String> messages) Creates a list of ModelEntity objects based on metadata from the databaseMethods in org.ofbiz.core.entity.jdbc with parameters of type ModelEntityModifier and TypeMethodDescriptionDatabaseUtil.addColumn(ModelEntity entity, ModelField field) DatabaseUtil.addVirtualColumn(ModelEntity entity, ModelFunctionBasedIndex index) DatabaseUtil.createDeclaredIndex(ModelEntity entity, ModelIndex modelIndex) DatabaseUtil.createDeclaredIndices(ModelEntity entity) Creates a database index for every declared index on the given entity.DatabaseUtil.createForeignKey(ModelEntity entity, ModelRelation modelRelation, ModelEntity relModelEntity, int constraintNameClipLength, String fkStyle, boolean useFkInitiallyDeferred) DatabaseUtil.createForeignKeyIndex(ModelEntity entity, ModelRelation modelRelation, int constraintNameClipLength) DatabaseUtil.createForeignKeyIndices(ModelEntity entity, int constraintNameClipLength) DatabaseUtil.createForeignKeys(ModelEntity entity, Map<String, ? extends ModelEntity> modelEntities, int constraintNameClipLength, String fkStyle, boolean useFkInitiallyDeferred) DatabaseUtil.createFunctionBasedIndex(ModelEntity entity, ModelFunctionBasedIndex fbIndex) DatabaseUtil.createFunctionBasedIndices(ModelEntity entity) Creates a function based index for every declared index on the given entity.DatabaseUtil.createTable(ModelEntity entity, Map<String, ? extends ModelEntity> modelEntities, boolean addFks, boolean usePkConstraintNames, int constraintNameClipLength, String fkStyle, boolean useFkInitiallyDeferred) DatabaseUtil.deleteDeclaredIndex(ModelEntity entity, ModelIndex modelIndex) DatabaseUtil.deleteDeclaredIndices(ModelEntity entity) DatabaseUtil.deleteForeignKey(ModelEntity entity, ModelRelation modelRelation, ModelEntity relModelEntity, int constraintNameClipLength) DatabaseUtil.deleteForeignKeyIndex(ModelEntity entity, ModelRelation modelRelation, int constraintNameClipLength) DatabaseUtil.deleteForeignKeyIndices(ModelEntity entity, int constraintNameClipLength) DatabaseUtil.deleteForeignKeys(ModelEntity entity, Map<String, ? extends ModelEntity> modelEntities, int constraintNameClipLength) DatabaseUtil.makeFkConstraintClause(ModelEntity entity, ModelRelation modelRelation, ModelEntity relModelEntity, int constraintNameClipLength, String fkStyle, boolean useFkInitiallyDeferred) DatabaseUtil.makeFkIndexClause(ModelEntity entity, ModelRelation modelRelation, int constraintNameClipLength) static StringSqlJdbcUtil.makeFromClause(ModelEntity modelEntity, DatasourceInfo datasourceInfo, SqlEscapeHelper sqlEscapeHelper) Makes the FROM clause and when necessary the JOIN clause(s) as wellDatabaseUtil.makeFunctionBasedIndexClause(ModelEntity entity, ModelFunctionBasedIndex fbIndex, DatabaseType databaseType) DatabaseUtil.makeIndexClause(ModelEntity entity, ModelIndex modelIndex) static StringSqlJdbcUtil.makeOrderByClause(ModelEntity modelEntity, List<String> orderBy, boolean includeTablenamePrefix, DatasourceInfo datasourceInfo) static StringSqlJdbcUtil.makeOrderByClause(ModelEntity modelEntity, List<String> orderBy, DatasourceInfo datasourceInfo) static StringSqlJdbcUtil.makeViewTable(ModelEntity modelEntity, DatasourceInfo datasourceInfo, SqlEscapeHelper sqlEscapeHelper) static StringSqlJdbcUtil.makeViewWhereClause(ModelEntity modelEntity, String joinStyle, SqlEscapeHelper sqlEscapeHelper) static StringSqlJdbcUtil.makeWhereClause(ModelEntity modelEntity, List<ModelField> modelFields, Map<String, ?> fields, String operator, String joinStyle, SqlEscapeHelper sqlEscapeHelper) static voidSqlJdbcUtil.setPkValues(SQLProcessor sqlP, ModelEntity modelEntity, GenericEntity entity, ModelFieldTypeReader modelFieldTypeReader) Get all primary keys from the model entity and bind their values to the an SQL statement (SQL-Processor)Method parameters in org.ofbiz.core.entity.jdbc with type arguments of type ModelEntityModifier and TypeMethodDescriptionvoidDatabaseUtil.checkDb(Map<String, ? extends ModelEntity> modelEntities, Collection<String> messages, boolean addMissing) Does a gzillion things to upgrade the database to the entitymodel by adding tables etc.voidDatabaseUtil.checkDb(Map<String, ? extends ModelEntity> modelEntities, Collection<String> messages, boolean addMissing, boolean promote, boolean widen) Does a gzillion things to upgrade the database to the entitymodel by adding tables etc.DatabaseUtil.createForeignKeys(ModelEntity entity, Map<String, ? extends ModelEntity> modelEntities, int constraintNameClipLength, String fkStyle, boolean useFkInitiallyDeferred) DatabaseUtil.createTable(ModelEntity entity, Map<String, ? extends ModelEntity> modelEntities, boolean addFks, boolean usePkConstraintNames, int constraintNameClipLength, String fkStyle, boolean useFkInitiallyDeferred) DatabaseUtil.deleteForeignKeys(ModelEntity entity, Map<String, ? extends ModelEntity> modelEntities, int constraintNameClipLength) -
Uses of ModelEntity in org.ofbiz.core.entity.jdbc.alternative
Methods in org.ofbiz.core.entity.jdbc.alternative with parameters of type ModelEntityModifier and TypeMethodDescriptionIndexAlternativeAction.run(ModelEntity modelEntity, ModelIndex modelIndex, DatabaseUtil dbUtil) This method is used to perform alternative actions on index before it is created.booleanIndexAlternativeAction.shouldRun(ModelEntity modelEntity, ModelIndex modelIndex, DatabaseUtil dbUtil) This method flags if alternative action should be invoked. -
Uses of ModelEntity in org.ofbiz.core.entity.model
Subclasses of ModelEntity in org.ofbiz.core.entity.modelModifier and TypeClassDescriptionclassThis class extends ModelEntity and provides additional information appropriate to view entitiesFields in org.ofbiz.core.entity.model declared as ModelEntityModifier and TypeFieldDescriptionprotected ModelEntityModelIndex.mainEntityreference to the entity this index refers toprotected ModelEntityModelRelation.mainEntitythe main entity of this relationFields in org.ofbiz.core.entity.model with type parameters of type ModelEntityModifier and TypeFieldDescriptionprotected Map<String,ModelEntity> ModelReader.entityCacheprotected Map<String,ModelEntity> ModelViewEntity.memberModelEntitiesContains member-entity ModelEntities: key is alias, value is ModelEntity; populated with fieldsMethods in org.ofbiz.core.entity.model that return ModelEntityModifier and TypeMethodDescriptionModelFunctionBasedIndex.getMainEntity()the main entity of this relationModelIndex.getMainEntity()the main entity of this relationModelRelation.getMainEntity()the main entity of this relationModelViewEntity.getMemberModelEntity(String alias) ModelReader.getModelEntity(String entityName) Gets an Entity object based on a definition from the specified XML Entity descriptor file.Methods in org.ofbiz.core.entity.model that return types with arguments of type ModelEntityMethods in org.ofbiz.core.entity.model with parameters of type ModelEntityModifier and TypeMethodDescriptionintModelEntity.compareTo(ModelEntity obj) ModelReader.createRelation(ModelEntity entity, Element relationElement) ModelReader.findModelField(ModelEntity entity, String fieldName) voidModelIndex.setMainEntity(ModelEntity mainEntity) voidModelRelation.setMainEntity(ModelEntity mainEntity) Method parameters in org.ofbiz.core.entity.model with type arguments of type ModelEntityModifier and TypeMethodDescriptionvoidModelViewEntity.populateFields(Map<String, ModelEntity> entityCache) Constructors in org.ofbiz.core.entity.model with parameters of type ModelEntityModifierConstructorDescriptionModelFunctionBasedIndex(ModelEntity mainEntity, String name, boolean unique, FunctionDefinitionBuilder builder) ModelFunctionBasedIndex(ModelEntity mainEntity, Element indexElement) XML ConstructorModelIndex(ModelEntity mainEntity, Element indexElement) XML ConstructorModelRelation(ModelEntity mainEntity, Element relationElement) XML Constructor
GenericEntity(GenericDelegator internalDelegator, ModelEntity modelEntity)