public interface DelegatorInterface
String getDelegatorName()
ModelReader getModelReader()
ModelGroupReader getModelGroupReader()
ModelEntity getModelEntity(String entityName)
List<ModelEntity> getModelEntitiesByGroup(String groupName)
Map<String,ModelEntity> getModelEntityMapByGroup(String groupName)
String getEntityHelperName(ModelEntity entity)
GenericHelper getEntityHelper(String entityName) throws GenericEntityException
GenericEntityExceptionGenericHelper getEntityHelper(ModelEntity entity) throws GenericEntityException
GenericEntityExceptionModelFieldType getEntityFieldType(ModelEntity entity, String type) throws GenericEntityException
GenericEntityExceptionCollection<String> getEntityFieldTypeNames(ModelEntity entity) throws GenericEntityException
GenericEntityExceptionGenericValue makeValue(String entityName, Map<String,?> fields)
GenericValue create(String entityName, Map<String,?> fields) throws GenericEntityException
GenericEntityExceptionGenericValue create(GenericValue value) throws GenericEntityException
GenericEntityExceptionGenericValue create(GenericValue value, boolean doCacheClear) throws GenericEntityException
GenericEntityExceptionGenericValue create(GenericPK primaryKey) throws GenericEntityException
GenericEntityExceptionGenericValue create(GenericPK primaryKey, boolean doCacheClear) throws GenericEntityException
GenericEntityExceptionGenericValue findByPrimaryKey(GenericPK primaryKey) throws GenericEntityException
GenericEntityExceptionGenericValue findByPrimaryKeyCache(GenericPK primaryKey) throws GenericEntityException
GenericEntityExceptionGenericValue findByPrimaryKey(String entityName, Map<String,?> fields) throws GenericEntityException
GenericEntityExceptionGenericValue findByPrimaryKeyCache(String entityName, Map<String,?> fields) throws GenericEntityException
GenericEntityExceptionGenericValue findByPrimaryKeyPartial(GenericPK primaryKey, Set<String> keys) throws GenericEntityException
GenericEntityExceptionList<GenericValue> findAllByPrimaryKeys(Collection<? extends GenericPK> primaryKeys) throws GenericEntityException
GenericEntityExceptionList<GenericValue> findAllByPrimaryKeysCache(Collection<? extends GenericPK> primaryKeys) throws GenericEntityException
GenericEntityExceptionint removeByPrimaryKey(GenericPK primaryKey) throws GenericEntityException
GenericEntityExceptionint removeByPrimaryKey(GenericPK primaryKey, boolean doCacheClear) throws GenericEntityException
GenericEntityExceptionint removeValue(GenericValue value) throws GenericEntityException
GenericEntityExceptionint removeValue(GenericValue value, boolean doCacheClear) throws GenericEntityException
GenericEntityExceptionList<GenericValue> findAll(String entityName) throws GenericEntityException
GenericEntityExceptionList<GenericValue> findAll(String entityName, List<String> orderBy) throws GenericEntityException
GenericEntityExceptionList<GenericValue> findAllCache(String entityName) throws GenericEntityException
GenericEntityExceptionList<GenericValue> findAllCache(String entityName, List<String> orderBy) throws GenericEntityException
GenericEntityExceptionList<GenericValue> findByAnd(String entityName, Map<String,?> fields) throws GenericEntityException
GenericEntityExceptionList<GenericValue> findByOr(String entityName, Map<String,?> fields) throws GenericEntityException
GenericEntityExceptionList<GenericValue> findByAnd(String entityName, Map<String,?> fields, List<String> orderBy) throws GenericEntityException
GenericEntityExceptionList<GenericValue> findByAnd(ModelEntity modelEntity, Map<String,?> fields, List<String> orderBy) throws GenericEntityException
GenericEntityExceptionList<GenericValue> findByOr(String entityName, Map<String,?> fields, List<String> orderBy) throws GenericEntityException
GenericEntityExceptionList<GenericValue> findByAndCache(String entityName, Map<String,?> fields) throws GenericEntityException
GenericEntityExceptionList<GenericValue> findByAndCache(String entityName, Map<String,?> fields, List<String> orderBy) throws GenericEntityException
GenericEntityExceptionList<GenericValue> findByAnd(String entityName, List<? extends EntityCondition> expressions) throws GenericEntityException
GenericEntityExceptionList<GenericValue> findByOr(String entityName, List<? extends EntityCondition> expressions) throws GenericEntityException
GenericEntityExceptionList<GenericValue> findByAnd(String entityName, List<? extends EntityCondition> expressions, List<String> orderBy) throws GenericEntityException
GenericEntityExceptionList<GenericValue> findByOr(String entityName, List<? extends EntityCondition> expressions, List<String> orderBy) throws GenericEntityException
GenericEntityExceptionList<GenericValue> findByLike(String entityName, Map<String,?> fields) throws GenericEntityException
GenericEntityExceptionList<GenericValue> findByLike(String entityName, Map<String,?> fields, List<String> orderBy) throws GenericEntityException
GenericEntityExceptionList<GenericValue> findByCondition(String entityName, EntityCondition entityCondition, Collection<String> fieldsToSelect, List<String> orderBy) throws GenericEntityException
GenericEntityExceptionint countByAnd(String entityName, String fieldName, List<? extends EntityCondition> expressions, EntityFindOptions findOptions) throws GenericEntityException
GenericEntityExceptionint countByOr(String entityName, String fieldName, List<? extends EntityCondition> expressions, EntityFindOptions findOptions) throws GenericEntityException
GenericEntityExceptionint countByCondition(String entityName, String fieldName, EntityCondition condition, EntityFindOptions findOptions) throws GenericEntityException
GenericEntityExceptionint countAll(String entityName) throws GenericEntityException
GenericEntityExceptionEntityListIterator findListIteratorByCondition(String entityName, EntityCondition entityCondition, Collection<String> fieldsToSelect, List<String> orderBy) throws GenericEntityException
GenericEntityExceptionEntityListIterator findListIteratorByCondition(String entityName, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition, Collection<String> fieldsToSelect, List<String> orderBy, EntityFindOptions findOptions) throws GenericEntityException
GenericEntityExceptionint removeByAnd(String entityName, Map<String,?> fields) throws GenericEntityException
GenericEntityExceptionint removeByAnd(String entityName, Map<String,?> fields, boolean doCacheClear) throws GenericEntityException
GenericEntityExceptionint removeByCondition(String entityName, EntityCondition entityCondition) throws GenericEntityException
GenericEntityExceptionint removeByCondition(String entityName, EntityCondition entityCondition, boolean doCacheClear) throws GenericEntityException
GenericEntityExceptionList<GenericValue> getMultiRelation(GenericValue value, String relationNameOne, String relationNameTwo, List<String> orderBy) throws GenericEntityException
GenericEntityExceptionList<GenericValue> getMultiRelation(GenericValue value, String relationNameOne, String relationNameTwo) throws GenericEntityException
GenericEntityExceptionList<GenericValue> getRelated(String relationName, GenericValue value) throws GenericEntityException
GenericEntityExceptionList<GenericValue> getRelatedByAnd(String relationName, Map<String,?> byAndFields, GenericValue value) throws GenericEntityException
GenericEntityExceptionList<GenericValue> getRelatedOrderBy(String relationName, List<String> orderBy, GenericValue value) throws GenericEntityException
GenericEntityExceptionList<GenericValue> getRelated(String relationName, Map<String,?> byAndFields, List<String> orderBy, GenericValue value) throws GenericEntityException
GenericEntityExceptionGenericPK getRelatedDummyPK(String relationName, Map<String,?> byAndFields, GenericValue value) throws GenericEntityException
GenericEntityExceptionList<GenericValue> getRelatedCache(String relationName, GenericValue value) throws GenericEntityException
GenericEntityExceptionGenericValue getRelatedOne(String relationName, GenericValue value) throws GenericEntityException
GenericEntityExceptionGenericValue getRelatedOneCache(String relationName, GenericValue value) throws GenericEntityException
GenericEntityExceptionint removeRelated(String relationName, GenericValue value) throws GenericEntityException
GenericEntityExceptionint removeRelated(String relationName, GenericValue value, boolean doCacheClear) throws GenericEntityException
GenericEntityExceptionvoid refresh(GenericValue value) throws GenericEntityException
GenericEntityExceptionvoid refresh(GenericValue value, boolean doCacheClear) throws GenericEntityException
GenericEntityExceptionint store(GenericValue value) throws GenericEntityException
GenericEntityExceptionint store(GenericValue value, boolean doCacheClear) throws GenericEntityException
GenericEntityExceptionint storeAll(List<? extends GenericValue> values) throws GenericEntityException
GenericEntityExceptionint storeAll(List<? extends GenericValue> values, boolean doCacheClear) throws GenericEntityException
GenericEntityExceptionint removeAll(List<? extends GenericEntity> dummyPKs) throws GenericEntityException
GenericEntityExceptionint removeAll(List<? extends GenericEntity> dummyPKs, boolean doCacheClear) throws GenericEntityException
GenericEntityExceptionvoid clearAllCaches()
void clearAllCaches(boolean distribute)
void clearCacheLineFlexible(GenericEntity dummyPK)
void clearCacheLineFlexible(GenericEntity dummyPK, boolean distribute)
void clearCacheLine(GenericPK primaryKey)
void clearCacheLine(GenericPK primaryKey, boolean distribute)
void clearCacheLine(GenericValue value)
void clearCacheLine(GenericValue value, boolean distribute)
void clearAllCacheLinesByDummyPK(Collection<? extends GenericEntity> dummyPKs)
void clearAllCacheLinesByValue(Collection<? extends GenericValue> values)
GenericValue getFromPrimaryKeyCache(GenericPK primaryKey)
List<GenericValue> getFromAllCache(String entityName)
List<GenericValue> getFromAndCache(String entityName, Map<String,?> fields)
List<GenericValue> getFromAndCache(ModelEntity entity, Map<String,?> fields)
void putInPrimaryKeyCache(GenericPK primaryKey, GenericValue value)
void putAllInPrimaryKeyCache(List<? extends GenericValue> values)
void putInAllCache(String entityName, List<? extends GenericValue> values)
void putInAllCache(ModelEntity entity, List<? extends GenericValue> values)
void putInAndCache(String entityName, Map<String,?> fields, List<? extends GenericValue> values)
void putInAndCache(ModelEntity entity, Map<String,?> fields, List<? extends GenericValue> values)
default Long getNextSeqId(String seqName)
From v1.3.0 this is equivalent of calling getNextSeqId(String, boolean) with true as second parameter.
seqName - The name of the sequence to get the next seq id fromLong getNextSeqId(String seqName, boolean clusterMode)
If the instance should be running in cluster mode then it will try a SELECT FOR UPDATE approach to retrieving the next bank of sequence ids, to avoid potential collisions with other nodes.
If not in cluster mode, this is not required, and the existing JVM synchronization locking is enough.
It will be in clusterMode if true is passed as a parameter, or if EntityConfigUtil.DelegatorInfo#useDistributedCacheClear
is enabled
seqName - The name of the sequence to get the next seq id fromclusterMode - Is this a node in a clustered instance or notvoid setSequencer(SequenceUtil sequencer)
void refreshSequencer()
UtilCache<GenericEntity,GenericValue> getPrimaryKeyCache()
UtilCache<GenericPK,List<GenericValue>> getAndCache()
UtilCache<String,List<GenericValue>> getAllCache()
SqlEscapeHelper getSqlEscapeHelper()
List<GenericValue> transform(String entityName, EntityCondition entityCondition, List<String> orderBy, String lockField, Transformation transformation) throws GenericEntityException
entityName - the type of entity to transform (required)entityCondition - the condition that selects the entities to transform (null means transform all)orderBy - the order in which the entities should be selected for updating (null means no ordering)lockField - the entity field to use for optimistic locking; the value of this field will be read
between the SELECT and the UPDATE to determine whether another process has updated one of the target records in
the meantime; if so, the transformation will be reapplied and another UPDATE attemptedtransformation - the transformation to apply (required)GenericEntityExceptionCopyright © 2024 Atlassian. All rights reserved.