|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ofbiz.entity.GenericDelegator
public class GenericDelegator
Generic Data Source Delegator Class
Nested Class Summary | |
---|---|
protected static class |
GenericDelegator.EntityEcaRuleRunner<T>
|
class |
GenericDelegator.TestOperation
|
Field Summary | |
---|---|
static boolean |
alwaysUseTransaction
This flag is only here for lower level technical testing, it shouldn't be user configurable (or at least I don't think so yet); when true all operations without a transaction will be wrapped in one; seems to be necessary for some (all?) XA aware connection pools, and should improve overall stability and consistency |
protected java.util.Map |
andCacheFieldSets
keeps a list of field key sets used in the by and cache, a Set (of Sets of fieldNames) for each entityName |
protected Cache |
cache
|
protected EntityCrypto |
crypto
|
protected static java.util.Map<java.lang.String,GenericDelegator> |
delegatorCache
the delegatorCache will now be a HashMap, allowing reload of definitions, but the delegator will always be the same object for the given name |
protected DelegatorInfo |
delegatorInfo
|
protected java.lang.String |
delegatorName
|
protected DistributedCacheClear |
distributedCacheClear
|
protected EntityEcaHandler<?> |
entityEcaHandler
|
protected ModelGroupReader |
modelGroupReader
|
protected ModelReader |
modelReader
|
static java.lang.String |
module
|
protected SequenceUtil |
sequencer
|
protected static java.lang.ThreadLocal<java.util.List<java.lang.Object>> |
sessionIdentifierStack
A ThreadLocal variable to allow other methods to specify a session identifier (usually the visitId, though technically the Entity Engine doesn't know anything about the Visit entity) |
protected static java.lang.ThreadLocal<java.util.List<java.lang.Object>> |
userIdentifierStack
A ThreadLocal variable to allow other methods to specify a user identifier (usually the userLoginId, though technically the Entity Engine doesn't know anything about the UserLogin entity) |
Constructor Summary | |
---|---|
protected |
GenericDelegator()
Only allow creation through the factory method |
protected |
GenericDelegator(java.lang.String delegatorName)
Only allow creation through the factory method |
Method Summary | ||
---|---|---|
protected void |
absorbList(java.util.List<GenericValue> lst)
|
|
void |
clearAllCacheLinesByDummyPK(java.util.Collection<GenericPK> dummyPKs)
|
|
void |
clearAllCacheLinesByValue(java.util.Collection<GenericValue> values)
|
|
void |
clearAllCaches()
This method is a shortcut to completely clear all entity engine caches. |
|
void |
clearAllCaches(boolean distribute)
|
|
void |
clearCacheLine(GenericPK primaryKey)
Remove a CACHED Generic Entity from the cache by its primary key, does NOT check to see if the passed GenericPK is a complete primary key. |
|
void |
clearCacheLine(GenericPK primaryKey,
boolean distribute)
|
|
void |
clearCacheLine(GenericValue value)
Remove a CACHED GenericValue from as many caches as it can. |
|
void |
clearCacheLine(GenericValue value,
boolean distribute)
|
|
void |
clearCacheLine(java.lang.String entityName)
Remove all CACHED Generic Entity (List) from the cache |
|
void |
clearCacheLine(java.lang.String entityName,
java.util.Map<java.lang.String,? extends java.lang.Object> fields)
Remove a CACHED Generic Entity (List) from the cache, either a PK, ByAnd, or All |
|
void |
clearCacheLine(java.lang.String entityName,
java.lang.Object... fields)
Remove a CACHED Generic Entity (List) from the cache, either a PK, ByAnd, or All |
|
void |
clearCacheLineByCondition(java.lang.String entityName,
EntityCondition condition)
|
|
void |
clearCacheLineByCondition(java.lang.String entityName,
EntityCondition condition,
boolean distribute)
|
|
void |
clearCacheLineFlexible(GenericEntity dummyPK)
Remove a CACHED Generic Entity from the cache by its primary key. |
|
void |
clearCacheLineFlexible(GenericEntity dummyPK,
boolean distribute)
|
|
protected void |
clearCacheValues(UtilCache cache,
java.lang.String entityName,
EntityCondition condition)
|
|
static void |
clearSessionIdentifierStack()
|
|
static void |
clearUserIdentifierStack()
|
|
GenericDelegator |
cloneDelegator()
|
|
GenericDelegator |
cloneDelegator(java.lang.String delegatorName)
|
|
GenericValue |
create(GenericPK primaryKey)
Creates a Entity in the form of a GenericValue and write it to the datasource |
|
GenericValue |
create(GenericPK primaryKey,
boolean doCacheClear)
Creates a Entity in the form of a GenericValue and write it to the datasource |
|
GenericValue |
create(GenericValue value)
Creates a Entity in the form of a GenericValue and write it to the datasource |
|
GenericValue |
create(GenericValue value,
boolean doCacheClear)
Creates a Entity in the form of a GenericValue and write it to the datasource |
|
GenericValue |
create(java.lang.String entityName,
java.util.Map<java.lang.String,? extends java.lang.Object> fields)
Creates a Entity in the form of a GenericValue and write it to the database |
|
GenericValue |
create(java.lang.String entityName,
java.lang.Object... fields)
Creates a Entity in the form of a GenericValue and write it to the database |
|
protected void |
createEntityAuditLogAll(GenericValue value,
boolean isUpdate,
boolean isRemove)
|
|
protected void |
createEntityAuditLogSingle(GenericValue value,
ModelField mf,
boolean isUpdate,
boolean isRemove)
|
|
protected static
|
createEntityEcaRuleRunner(EntityEcaHandler<T> entityEcaHandler,
java.lang.String entityName)
|
|
GenericValue |
createOrStore(GenericValue value)
Creates or stores an Entity |
|
GenericValue |
createOrStore(GenericValue value,
boolean doCacheClear)
Creates or stores an Entity |
|
GenericValue |
createSetNextSeqId(GenericValue value)
Sets the sequenced ID (for entity with one primary key field ONLY), and then does a create in the database as normal. |
|
GenericValue |
createSingle(java.lang.String entityName,
java.lang.Object singlePkValue)
Creates a Entity in the form of a GenericValue and write it to the database |
|
void |
decryptFields(GenericEntity entity)
|
|
void |
decryptFields(java.util.List<? extends GenericEntity> entities)
|
|
void |
encryptFields(GenericEntity entity)
|
|
void |
encryptFields(java.util.List<? extends GenericEntity> entities)
|
|
java.lang.Object |
encryptFieldValue(java.lang.String entityName,
java.lang.Object fieldValue)
|
|
EntityListIterator |
find(java.lang.String entityName,
EntityCondition whereEntityCondition,
EntityCondition havingEntityCondition,
java.util.Set<java.lang.String> fieldsToSelect,
java.util.List<java.lang.String> orderBy,
EntityFindOptions findOptions)
Finds GenericValues by the conditions specified in the EntityCondition object, the the EntityCondition javadoc for more details. |
|
java.util.List<GenericValue> |
findAll(java.lang.String entityName)
Finds all Generic entities NOTE 20080502: 14 references; all changed to findList |
|
java.util.List<GenericValue> |
findAll(java.lang.String entityName,
java.util.List<java.lang.String> orderBy)
Finds all Generic entities NOTE 20080502: 10 references; all changed to findList |
|
java.util.List<GenericValue> |
findAll(java.lang.String entityName,
java.lang.String... orderBy)
Finds all Generic entities NOTE 20080502: 0 references |
|
java.util.List<GenericValue> |
findAllByPrimaryKeys(java.util.Collection<GenericPK> primaryKeys)
Find a number of Generic Value objects by their Primary Keys, all at once NOTE 20080502: 0 references |
|
java.util.List<GenericValue> |
findAllByPrimaryKeysCache(java.util.Collection<GenericPK> primaryKeys)
Find a number of Generic Value objects by their Primary Keys, all at once; this first looks in the local cache for each PK and if there then it puts it in the return list rather than putting it in the batch to send to a given helper. |
|
java.util.List<GenericValue> |
findAllCache(java.lang.String entityName)
Finds all Generic entities, looking first in the cache NOTE 20080502: 4 references; all changed to findList |
|
java.util.List<GenericValue> |
findAllCache(java.lang.String entityName,
java.util.List<java.lang.String> orderBy)
Finds all Generic entities, looking first in the cache; uses orderBy for lookup, but only keys results on the entityName and fields NOTE 20080502: 2 references; all changed to findList |
|
java.util.List<GenericValue> |
findAllCache(java.lang.String entityName,
java.lang.String... orderBy)
Finds all Generic entities, looking first in the cache; uses orderBy for lookup, but only keys results on the entityName and fields NOTE 20080502: 0 references |
|
|
findByAnd(java.lang.String entityName,
java.util.List<T> expressions)
Finds Generic Entity records by all of the specified expressions (ie: combined using AND) NOTE 20080502: 11 references; all changed to findList |
|
|
findByAnd(java.lang.String entityName,
java.util.List<T> expressions,
java.util.List<java.lang.String> orderBy)
Finds Generic Entity records by all of the specified expressions (ie: combined using AND) NOTE 20080502: 24 references; all changed to findList |
|
java.util.List<GenericValue> |
findByAnd(java.lang.String entityName,
java.util.Map<java.lang.String,? extends java.lang.Object> fields)
Finds Generic Entity records by all of the specified fields (ie: combined using AND) NOTE 20080502: 264 references |
|
java.util.List<GenericValue> |
findByAnd(java.lang.String entityName,
java.util.Map<java.lang.String,? extends java.lang.Object> fields,
java.util.List<java.lang.String> orderBy)
Finds Generic Entity records by all of the specified fields (ie: combined using AND) NOTE 20080502: 72 references |
|
java.util.List<GenericValue> |
findByAnd(java.lang.String entityName,
java.lang.Object... fields)
Deprecated. |
|
|
findByAnd(java.lang.String entityName,
T... expressions)
Finds Generic Entity records by all of the specified expressions (ie: combined using AND) NOTE 20080502: 0 references |
|
java.util.List<GenericValue> |
findByAndCache(java.lang.String entityName,
java.util.Map<java.lang.String,? extends java.lang.Object> fields)
Finds Generic Entity records by all of the specified fields (ie: combined using AND), looking first in the cache; uses orderBy for lookup, but only keys results on the entityName and fields NOTE 20080502: 91 references |
|
java.util.List<GenericValue> |
findByAndCache(java.lang.String entityName,
java.util.Map<java.lang.String,? extends java.lang.Object> fields,
java.util.List<java.lang.String> orderBy)
Finds Generic Entity records by all of the specified fields (ie: combined using AND), looking first in the cache; uses orderBy for lookup, but only keys results on the entityName and fields NOTE 20080502: 56 references |
|
java.util.List<GenericValue> |
findByAndCache(java.lang.String entityName,
java.lang.Object... fields)
Finds Generic Entity records by all of the specified fields (ie: combined using AND), looking first in the cache; uses orderBy for lookup, but only keys results on the entityName and fields NOTE 20080502: 0 references |
|
java.util.List<GenericValue> |
findByCondition(java.lang.String entityName,
EntityCondition entityCondition,
java.util.Collection<java.lang.String> fieldsToSelect,
java.util.List<java.lang.String> orderBy)
Finds GenericValues by the conditions specified in the EntityCondition object, the the EntityCondition javadoc for more details. |
|
java.util.List<GenericValue> |
findByCondition(java.lang.String entityName,
EntityCondition whereEntityCondition,
EntityCondition havingEntityCondition,
java.util.Collection<java.lang.String> fieldsToSelect,
java.util.List<java.lang.String> orderBy,
EntityFindOptions findOptions)
Finds GenericValues by the conditions specified in the EntityCondition object, the the EntityCondition javadoc for more details. |
|
java.util.List<GenericValue> |
findByConditionCache(java.lang.String entityName,
EntityCondition entityCondition,
java.util.Collection<java.lang.String> fieldsToSelect,
java.util.List<java.lang.String> orderBy)
Finds GenericValues by the conditions specified in the EntityCondition object, looking first in the cache, see the EntityCondition javadoc for more details. |
|
java.util.List<GenericValue> |
findByLike(java.lang.String entityName,
java.util.Map<java.lang.String,? extends java.lang.Object> fields)
NOTE 20080502: 1 references; all changed to findList |
|
java.util.List<GenericValue> |
findByLike(java.lang.String entityName,
java.util.Map<java.lang.String,? extends java.lang.Object> fields,
java.util.List<java.lang.String> orderBy)
NOTE 20080502: 1 references; all changed to findList |
|
java.util.List<GenericValue> |
findByLike(java.lang.String entityName,
java.lang.Object... fields)
NOTE 20080502: 0 references |
|
|
findByOr(java.lang.String entityName,
java.util.List<T> expressions)
Finds Generic Entity records by all of the specified expressions (ie: combined using OR) NOTE 20080502: 2 references; all changed to findList |
|
|
findByOr(java.lang.String entityName,
java.util.List<T> expressions,
java.util.List<java.lang.String> orderBy)
Finds Generic Entity records by all of the specified expressions (ie: combined using OR) NOTE 20080502: 0 references |
|
java.util.List<GenericValue> |
findByOr(java.lang.String entityName,
java.util.Map<java.lang.String,? extends java.lang.Object> fields)
Finds Generic Entity records by all of the specified fields (ie: combined using OR) NOTE 20080502: 1 references; all changed to findList |
|
java.util.List<GenericValue> |
findByOr(java.lang.String entityName,
java.util.Map<java.lang.String,? extends java.lang.Object> fields,
java.util.List<java.lang.String> orderBy)
Finds Generic Entity records by all of the specified fields (ie: combined using OR) NOTE 20080502: 1 references; all changed to findList |
|
java.util.List<GenericValue> |
findByOr(java.lang.String entityName,
java.lang.Object... fields)
Deprecated. |
|
|
findByOr(java.lang.String entityName,
T... expressions)
Finds Generic Entity records by all of the specified expressions (ie: combined using OR) NOTE 20080502: 0 references |
|
GenericValue |
findByPrimaryKey(GenericPK primaryKey)
Find a Generic Entity by its Primary Key NOTE 20080502: 15 references; all changed to findOne |
|
GenericValue |
findByPrimaryKey(java.lang.String entityName,
java.util.Map<java.lang.String,? extends java.lang.Object> fields)
Find a Generic Entity by its Primary Key NOTE 20080502: 550 references (20080503 521 left); needs to be deprecated, should use findOne instead, but lots of stuff to replace! |
|
GenericValue |
findByPrimaryKey(java.lang.String entityName,
java.lang.Object... fields)
Find a Generic Entity by its Primary Key NOTE 20080502: 21 references; all changed to findOne |
|
GenericValue |
findByPrimaryKeyCache(GenericPK primaryKey)
Find a CACHED Generic Entity by its Primary Key NOTE 20080502: 2 references; all changed to findOne |
|
GenericValue |
findByPrimaryKeyCache(java.lang.String entityName,
java.util.Map<java.lang.String,? extends java.lang.Object> fields)
Find a CACHED Generic Entity by its Primary Key NOTE 20080502: 218 references |
|
GenericValue |
findByPrimaryKeyCache(java.lang.String entityName,
java.lang.Object... fields)
Find a CACHED Generic Entity by its Primary Key NOTE 20080502: 2 references |
|
GenericValue |
findByPrimaryKeyCacheSingle(java.lang.String entityName,
java.lang.Object singlePkValue)
Find a CACHED Generic Entity by its Primary Key NOTE 20080502: 0 references |
|
GenericValue |
findByPrimaryKeyPartial(GenericPK primaryKey,
java.util.Set<java.lang.String> keys)
Find a Generic Entity by its Primary Key and only returns the values requested by the passed keys (names) NOTE 20080502: 3 references |
|
GenericValue |
findByPrimaryKeyPartial(GenericPK primaryKey,
java.lang.String... keys)
Find a Generic Entity by its Primary Key and only returns the values requested by the passed keys (names) NOTE 20080502: 0 references |
|
GenericValue |
findByPrimaryKeySingle(java.lang.String entityName,
java.lang.Object singlePkValue)
Find a Generic Entity by its Primary Key NOTE 20080502: 0 references |
|
long |
findCountByAnd(java.lang.String entityName)
NOTE 20080502: 3 references; all changed to findCoundByCondition |
|
long |
findCountByAnd(java.lang.String entityName,
java.util.Map<java.lang.String,? extends java.lang.Object> fields)
NOTE 20080502: 8 references; all changed to use findCountByCondition |
|
long |
findCountByAnd(java.lang.String entityName,
java.lang.Object... fields)
NOTE 20080502: 1 references; all changed to use findCountByCondition |
|
long |
findCountByCondition(java.lang.String entityName,
EntityCondition whereEntityCondition,
EntityCondition havingEntityCondition)
NOTE 20080502: 17 references; all changed to use remaining findCountByCondition |
|
long |
findCountByCondition(java.lang.String entityName,
EntityCondition whereEntityCondition,
EntityCondition havingEntityCondition,
EntityFindOptions findOptions)
NOTE 20080502: 2 references |
|
java.util.List<GenericValue> |
findList(java.lang.String entityName,
EntityCondition entityCondition,
java.util.Set<java.lang.String> fieldsToSelect,
java.util.List<java.lang.String> orderBy,
EntityFindOptions findOptions,
boolean useCache)
Finds GenericValues by the conditions specified in the EntityCondition object, the the EntityCondition javadoc for more details. |
|
EntityListIterator |
findListIteratorByCondition(DynamicViewEntity dynamicViewEntity,
EntityCondition whereEntityCondition,
EntityCondition havingEntityCondition,
java.util.Collection<java.lang.String> fieldsToSelect,
java.util.List<java.lang.String> orderBy,
EntityFindOptions findOptions)
Finds GenericValues by the conditions specified in the EntityCondition object, the the EntityCondition javadoc for more details. |
|
EntityListIterator |
findListIteratorByCondition(java.lang.String entityName,
EntityCondition entityCondition,
java.util.Collection<java.lang.String> fieldsToSelect,
java.util.List<java.lang.String> orderBy)
Finds GenericValues by the conditions specified in the EntityCondition object, the the EntityCondition javadoc for more details. |
|
EntityListIterator |
findListIteratorByCondition(java.lang.String entityName,
EntityCondition whereEntityCondition,
EntityCondition havingEntityCondition,
java.util.Collection<java.lang.String> fieldsToSelect,
java.util.List<java.lang.String> orderBy,
EntityFindOptions findOptions)
Finds GenericValues by the conditions specified in the EntityCondition object, the the EntityCondition javadoc for more details. |
|
GenericValue |
findOne(java.lang.String entityName,
boolean useCache,
java.lang.Object... fields)
Find a Generic Entity by its Primary Key NOTE 20080502: 6 references |
|
GenericValue |
findOne(java.lang.String entityName,
java.util.Map<java.lang.String,? extends java.lang.Object> fields,
boolean useCache)
Find a Generic Entity by its Primary Key NOTE 20080502: 6 references |
|
Cache |
getCache()
|
|
static java.lang.String |
getCurrentSessionIdentifier()
|
|
static java.lang.String |
getCurrentUserIdentifier()
|
|
protected DelegatorInfo |
getDelegatorInfo()
|
|
java.lang.String |
getDelegatorName()
|
|
protected GenericDelegator.EntityEcaRuleRunner<?> |
getEcaRuleRunner(java.lang.String entityName)
|
|
EntityEcaHandler |
getEntityEcaHandler()
|
|
ModelFieldType |
getEntityFieldType(ModelEntity entity,
java.lang.String type)
Gets a field type instance by name from the helper that corresponds to the specified entity |
|
java.util.Collection<java.lang.String> |
getEntityFieldTypeNames(ModelEntity entity)
Gets field type names from the helper that corresponds to the specified entity |
|
java.lang.String |
getEntityGroupName(java.lang.String entityName)
Gets the helper name that corresponds to this delegator and the specified entityName |
|
GenericHelper |
getEntityHelper(ModelEntity entity)
Gets the an instance of helper that corresponds to this delegator and the specified entity |
|
GenericHelper |
getEntityHelper(java.lang.String entityName)
Gets the an instance of helper that corresponds to this delegator and the specified entityName |
|
java.lang.String |
getEntityHelperName(ModelEntity entity)
Gets the helper name that corresponds to this delegator and the specified entity |
|
java.lang.String |
getEntityHelperName(java.lang.String entityName)
Gets the helper name that corresponds to this delegator and the specified entityName |
|
GenericValue |
getFromPrimaryKeyCache(GenericPK primaryKey)
|
|
static GenericDelegator |
getGenericDelegator(java.lang.String delegatorName)
|
|
java.lang.String |
getGroupHelperName(java.lang.String groupName)
Gets the helper name that corresponds to this delegator and the specified entityName |
|
ModelEntity |
getModelEntity(java.lang.String entityName)
Gets the instance of ModelEntity that corresponds to this delegator and the specified entityName |
|
java.util.Map<java.lang.String,ModelEntity> |
getModelEntityMapByGroup(java.lang.String groupName)
Gets a Map of entity name & entity model pairs that are in the named group |
|
ModelGroupReader |
getModelGroupReader()
Gets the instance of ModelGroupReader that corresponds to this delegator |
|
ModelReader |
getModelReader()
Gets the instance of ModelReader that corresponds to this delegator |
|
java.util.List<GenericValue> |
getMultiRelation(GenericValue value,
java.lang.String relationNameOne,
java.lang.String relationNameTwo)
Get the named Related Entity for the GenericValue from the persistent store across another Relation. |
|
java.util.List<GenericValue> |
getMultiRelation(GenericValue value,
java.lang.String relationNameOne,
java.lang.String relationNameTwo,
java.util.List<java.lang.String> orderBy)
Get the named Related Entity for the GenericValue from the persistent store across another Relation. |
|
java.lang.String |
getNextSeqId(java.lang.String seqName)
Get the next guaranteed unique seq id from the sequence with the given sequence name; if the named sequence doesn't exist, it will be created |
|
java.lang.String |
getNextSeqId(java.lang.String seqName,
long staggerMax)
Get the next guaranteed unique seq id from the sequence with the given sequence name; if the named sequence doesn't exist, it will be created |
|
java.lang.Long |
getNextSeqIdLong(java.lang.String seqName)
Get the next guaranteed unique seq id from the sequence with the given sequence name; if the named sequence doesn't exist, it will be created |
|
java.lang.Long |
getNextSeqIdLong(java.lang.String seqName,
long staggerMax)
Get the next guaranteed unique seq id from the sequence with the given sequence name; if the named sequence doesn't exist, it will be created |
|
java.lang.String |
getOriginalDelegatorName()
Gets the name of the server configuration that corresponds to this delegator |
|
java.util.List<GenericValue> |
getRelated(java.lang.String relationName,
GenericValue value)
Get the named Related Entity for the GenericValue from the persistent store NOTE 20080502: 1 references; all changed to use remaining getRelated |
|
java.util.List<GenericValue> |
getRelated(java.lang.String relationName,
java.util.Map<java.lang.String,? extends java.lang.Object> byAndFields,
java.util.List<java.lang.String> orderBy,
GenericValue value)
Get the named Related Entity for the GenericValue from the persistent store NOTE 20080502: 5 references |
|
java.util.List<GenericValue> |
getRelatedByAnd(java.lang.String relationName,
java.util.Map<java.lang.String,? extends java.lang.Object> byAndFields,
GenericValue value)
Get the named Related Entity for the GenericValue from the persistent store NOTE 20080502: 1 references; all changed to use getRelated |
|
java.util.List<GenericValue> |
getRelatedCache(java.lang.String relationName,
GenericValue value)
Get the named Related Entity for the GenericValue from the persistent store, checking first in the cache to see if the desired value is there NOTE 20080502: 4 references |
|
GenericPK |
getRelatedDummyPK(java.lang.String relationName,
java.util.Map<java.lang.String,? extends java.lang.Object> byAndFields,
GenericValue value)
Get a dummy primary key for the named Related Entity for the GenericValue NOTE 20080502: 2 references |
|
GenericValue |
getRelatedOne(java.lang.String relationName,
GenericValue value)
Get related entity where relation is of type one, uses findByPrimaryKey NOTE 20080502: 7 references |
|
GenericValue |
getRelatedOneCache(java.lang.String relationName,
GenericValue value)
Get related entity where relation is of type one, uses findByPrimaryKey, checking first in the cache to see if the desired value is there NOTE 20080502: 1 references |
|
java.util.List<GenericValue> |
getRelatedOrderBy(java.lang.String relationName,
java.util.List<java.lang.String> orderBy,
GenericValue value)
Get the named Related Entity for the GenericValue from the persistent store NOTE 20080502: 1 references; all changed to use getRelated |
|
protected static java.util.List<java.lang.Object> |
getSessionIdentifierStack()
|
|
protected static java.util.List<java.lang.Object> |
getUserIdentifierStack()
|
|
void |
initEntityEcaHandler()
|
|
GenericPK |
makePK(org.w3c.dom.Element element)
|
|
GenericPK |
makePK(java.lang.String entityName)
Creates a Primary Key in the form of a GenericPK without persisting it |
|
GenericPK |
makePK(java.lang.String entityName,
java.util.Map<java.lang.String,? extends java.lang.Object> fields)
Creates a Primary Key in the form of a GenericPK without persisting it |
|
GenericPK |
makePK(java.lang.String entityName,
java.lang.Object... fields)
Creates a Primary Key in the form of a GenericPK without persisting it |
|
GenericPK |
makePKSingle(java.lang.String entityName,
java.lang.Object singlePkValue)
Creates a Primary Key in the form of a GenericPK without persisting it |
|
GenericDelegator |
makeTestDelegator(java.lang.String delegatorName)
|
|
GenericValue |
makeValidValue(java.lang.String entityName,
java.util.Map<java.lang.String,? extends java.lang.Object> fields)
Creates a Entity in the form of a GenericValue without persisting it; only valid fields will be pulled from the fields Map |
|
GenericValue |
makeValidValue(java.lang.String entityName,
java.lang.Object... fields)
Creates a Entity in the form of a GenericValue without persisting it; only valid fields will be pulled from the fields Map |
|
GenericValue |
makeValue(org.w3c.dom.Element element)
|
|
GenericValue |
makeValue(java.lang.String entityName)
Creates a Entity in the form of a GenericValue without persisting it |
|
GenericValue |
makeValue(java.lang.String entityName,
java.util.Map<java.lang.String,? extends java.lang.Object> fields)
Creates a Entity in the form of a GenericValue without persisting it |
|
GenericValue |
makeValue(java.lang.String entityName,
java.lang.Object... fields)
Creates a Entity in the form of a GenericValue without persisting it |
|
java.util.List<GenericValue> |
makeValues(org.w3c.dom.Document document)
|
|
GenericValue |
makeValueSingle(java.lang.String entityName,
java.lang.Object singlePkValue)
Creates a Entity in the form of a GenericValue without persisting it |
|
static java.lang.String |
popSessionIdentifier()
|
|
static java.lang.String |
popUserIdentifier()
|
|
static void |
pushSessionIdentifier(java.lang.String sessionIdentifier)
|
|
static void |
pushUserIdentifier(java.lang.String userIdentifier)
|
|
void |
putAllInPrimaryKeyCache(java.util.List<GenericValue> values)
|
|
void |
putInPrimaryKeyCache(GenericPK primaryKey,
GenericValue value)
|
|
java.util.List<GenericValue> |
readXmlDocument(java.net.URL url)
|
|
void |
refresh(GenericValue value)
Refresh the Entity for the GenericValue from the persistent store |
|
void |
refresh(GenericValue value,
boolean doCacheClear)
Refresh the Entity for the GenericValue from the persistent store |
|
void |
refreshFromCache(GenericValue value)
Refresh the Entity for the GenericValue from the cache |
|
void |
refreshSequencer()
Refreshes the ID sequencer clearing all cached bank values. |
|
int |
removeAll(java.util.List<? extends GenericEntity> dummyPKs)
Remove the Entities from the List from the persistent store. |
|
int |
removeAll(java.util.List<? extends GenericEntity> dummyPKs,
boolean doCacheClear)
Remove the Entities from the List from the persistent store. |
|
int |
removeAll(java.lang.String entityName)
|
|
int |
removeByAnd(java.lang.String entityName,
boolean doCacheClear,
java.lang.Object... fields)
Removes/deletes Generic Entity records found by all of the specified fields (ie: combined using AND) |
|
int |
removeByAnd(java.lang.String entityName,
java.util.Map<java.lang.String,? extends java.lang.Object> fields)
Removes/deletes Generic Entity records found by all of the specified fields (ie: combined using AND) |
|
int |
removeByAnd(java.lang.String entityName,
java.util.Map<java.lang.String,? extends java.lang.Object> fields,
boolean doCacheClear)
Removes/deletes Generic Entity records found by all of the specified fields (ie: combined using AND) |
|
int |
removeByAnd(java.lang.String entityName,
java.lang.Object... fields)
Removes/deletes Generic Entity records found by all of the specified fields (ie: combined using AND) |
|
int |
removeByCondition(java.lang.String entityName,
EntityCondition condition)
Removes/deletes Generic Entity records found by the condition |
|
int |
removeByCondition(java.lang.String entityName,
EntityCondition condition,
boolean doCacheClear)
Removes/deletes Generic Entity records found by the condition |
|
int |
removeByPrimaryKey(GenericPK primaryKey)
Remove a Generic Entity corresponding to the primaryKey |
|
int |
removeByPrimaryKey(GenericPK primaryKey,
boolean doCacheClear)
Remove a Generic Entity corresponding to the primaryKey |
|
int |
removeRelated(java.lang.String relationName,
GenericValue value)
Remove the named Related Entity for the GenericValue from the persistent store |
|
int |
removeRelated(java.lang.String relationName,
GenericValue value,
boolean doCacheClear)
Remove the named Related Entity for the GenericValue from the persistent store |
|
int |
removeValue(GenericValue value)
Remove a Generic Value from the database |
|
int |
removeValue(GenericValue value,
boolean doCacheClear)
Remove a Generic Value from the database |
|
void |
rollback()
|
|
protected void |
saveEntitySyncRemoveInfo(GenericEntity dummyPK)
|
|
void |
setDistributedCacheClear(DistributedCacheClear distributedCacheClear)
|
|
void |
setEntityCrypto(EntityCrypto crypto)
|
|
void |
setEntityEcaHandler(EntityEcaHandler entityEcaHandler)
|
|
void |
setNextSubSeqId(GenericValue value,
java.lang.String seqFieldName,
int numericPadding,
int incrementBy)
Look at existing values for a sub-entity with a sequenced secondary ID, and get the highest plus 1 |
|
void |
setSequencer(SequenceUtil sequencer)
Allows you to pass a SequenceUtil class (possibly one that overrides the getNextSeqId method); if null is passed will effectively refresh the sequencer. |
|
int |
store(GenericValue value)
Store the Entity from the GenericValue to the persistent store |
|
int |
store(GenericValue value,
boolean doCacheClear)
Store the Entity from the GenericValue to the persistent store |
|
int |
storeAll(java.util.List<GenericValue> values)
Store the Entities from the List GenericValue instances to the persistent store. |
|
int |
storeAll(java.util.List<GenericValue> values,
boolean doCacheClear)
Store the Entities from the List GenericValue instances to the persistent store. |
|
int |
storeAll(java.util.List<GenericValue> values,
boolean doCacheClear,
boolean createDummyFks)
Store the Entities from the List GenericValue instances to the persistent store. |
|
int |
storeByCondition(java.lang.String entityName,
java.util.Map<java.lang.String,? extends java.lang.Object> fieldsToSet,
EntityCondition condition)
Store a group of values |
|
int |
storeByCondition(java.lang.String entityName,
java.util.Map<java.lang.String,? extends java.lang.Object> fieldsToSet,
EntityCondition condition,
boolean doCacheClear)
Store a group of values |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String module
protected ModelReader modelReader
protected ModelGroupReader modelGroupReader
public static final boolean alwaysUseTransaction
protected static java.util.Map<java.lang.String,GenericDelegator> delegatorCache
protected java.lang.String delegatorName
protected DelegatorInfo delegatorInfo
protected Cache cache
protected java.util.Map andCacheFieldSets
protected DistributedCacheClear distributedCacheClear
protected EntityEcaHandler<?> entityEcaHandler
protected SequenceUtil sequencer
protected EntityCrypto crypto
protected static java.lang.ThreadLocal<java.util.List<java.lang.Object>> userIdentifierStack
protected static java.lang.ThreadLocal<java.util.List<java.lang.Object>> sessionIdentifierStack
Constructor Detail |
---|
protected GenericDelegator()
protected GenericDelegator(java.lang.String delegatorName) throws GenericEntityException
GenericEntityException
Method Detail |
---|
public static GenericDelegator getGenericDelegator(java.lang.String delegatorName)
protected static java.util.List<java.lang.Object> getUserIdentifierStack()
public static java.lang.String getCurrentUserIdentifier()
public static void pushUserIdentifier(java.lang.String userIdentifier)
public static java.lang.String popUserIdentifier()
public static void clearUserIdentifierStack()
protected static java.util.List<java.lang.Object> getSessionIdentifierStack()
public static java.lang.String getCurrentSessionIdentifier()
public static void pushSessionIdentifier(java.lang.String sessionIdentifier)
public static java.lang.String popSessionIdentifier()
public static void clearSessionIdentifierStack()
public void initEntityEcaHandler()
public java.lang.String getDelegatorName()
getDelegatorName
in interface DelegatorInterface
public java.lang.String getOriginalDelegatorName()
protected DelegatorInfo getDelegatorInfo()
public ModelReader getModelReader()
getModelReader
in interface DelegatorInterface
public ModelGroupReader getModelGroupReader()
getModelGroupReader
in interface DelegatorInterface
public ModelEntity getModelEntity(java.lang.String entityName)
getModelEntity
in interface DelegatorInterface
entityName
- The name of the entity to get
public java.lang.String getEntityGroupName(java.lang.String entityName)
getEntityGroupName
in interface DelegatorInterface
entityName
- The name of the entity to get the helper for
public java.util.Map<java.lang.String,ModelEntity> getModelEntityMapByGroup(java.lang.String groupName) throws GenericEntityException
getModelEntityMapByGroup
in interface DelegatorInterface
groupName
- The name of the group
GenericEntityException
public java.lang.String getGroupHelperName(java.lang.String groupName)
getGroupHelperName
in interface DelegatorInterface
groupName
- The name of the group to get the helper name for
public java.lang.String getEntityHelperName(java.lang.String entityName)
getEntityHelperName
in interface DelegatorInterface
entityName
- The name of the entity to get the helper name for
public java.lang.String getEntityHelperName(ModelEntity entity)
getEntityHelperName
in interface DelegatorInterface
entity
- The entity to get the helper for
public GenericHelper getEntityHelper(java.lang.String entityName) throws GenericEntityException
getEntityHelper
in interface DelegatorInterface
entityName
- The name of the entity to get the helper for
GenericEntityException
public GenericHelper getEntityHelper(ModelEntity entity) throws GenericEntityException
getEntityHelper
in interface DelegatorInterface
entity
- The entity to get the helper for
GenericEntityException
public ModelFieldType getEntityFieldType(ModelEntity entity, java.lang.String type) throws GenericEntityException
getEntityFieldType
in interface DelegatorInterface
entity
- The entitytype
- The name of the type
GenericEntityException
public java.util.Collection<java.lang.String> getEntityFieldTypeNames(ModelEntity entity) throws GenericEntityException
getEntityFieldTypeNames
in interface DelegatorInterface
entity
- The entity
GenericEntityException
public GenericValue makeValue(java.lang.String entityName)
makeValue
in interface DelegatorInterface
public GenericValue makeValue(java.lang.String entityName, java.lang.Object... fields)
makeValue
in interface DelegatorInterface
public GenericValue makeValue(java.lang.String entityName, java.util.Map<java.lang.String,? extends java.lang.Object> fields)
makeValue
in interface DelegatorInterface
public GenericValue makeValueSingle(java.lang.String entityName, java.lang.Object singlePkValue)
makeValueSingle
in interface DelegatorInterface
public GenericValue makeValidValue(java.lang.String entityName, java.lang.Object... fields)
makeValidValue
in interface DelegatorInterface
public GenericValue makeValidValue(java.lang.String entityName, java.util.Map<java.lang.String,? extends java.lang.Object> fields)
makeValidValue
in interface DelegatorInterface
public GenericPK makePK(java.lang.String entityName)
makePK
in interface DelegatorInterface
public GenericPK makePK(java.lang.String entityName, java.lang.Object... fields)
makePK
in interface DelegatorInterface
public GenericPK makePK(java.lang.String entityName, java.util.Map<java.lang.String,? extends java.lang.Object> fields)
makePK
in interface DelegatorInterface
public GenericPK makePKSingle(java.lang.String entityName, java.lang.Object singlePkValue)
makePKSingle
in interface DelegatorInterface
public GenericValue create(GenericPK primaryKey) throws GenericEntityException
create
in interface DelegatorInterface
primaryKey
- The GenericPK to create a value in the datasource from
GenericEntityException
public GenericValue create(GenericPK primaryKey, boolean doCacheClear) throws GenericEntityException
create
in interface DelegatorInterface
primaryKey
- The GenericPK to create a value in the datasource fromdoCacheClear
- boolean that specifies whether to clear related cache entries for this primaryKey to be created
GenericEntityException
public GenericValue create(java.lang.String entityName, java.lang.Object... fields) throws GenericEntityException
create
in interface DelegatorInterface
GenericEntityException
public GenericValue create(java.lang.String entityName, java.util.Map<java.lang.String,? extends java.lang.Object> fields) throws GenericEntityException
create
in interface DelegatorInterface
GenericEntityException
public GenericValue createSingle(java.lang.String entityName, java.lang.Object singlePkValue) throws GenericEntityException
createSingle
in interface DelegatorInterface
GenericEntityException
public GenericValue create(GenericValue value) throws GenericEntityException
create
in interface DelegatorInterface
value
- The GenericValue to create a value in the datasource from
GenericEntityException
public GenericValue createSetNextSeqId(GenericValue value) throws GenericEntityException
value
- The GenericValue to create a value in the datasource from
GenericEntityException
public GenericValue create(GenericValue value, boolean doCacheClear) throws GenericEntityException
create
in interface DelegatorInterface
value
- The GenericValue to create a value in the datasource fromdoCacheClear
- boolean that specifies whether or not to automatically clear cache entries related to this operation
GenericEntityException
public GenericValue createOrStore(GenericValue value, boolean doCacheClear) throws GenericEntityException
createOrStore
in interface DelegatorInterface
value
- The GenericValue instance containing the new or existing instancedoCacheClear
- boolean that specifies whether or not to automatically clear cache entries related to this operation
GenericEntityException
public GenericValue createOrStore(GenericValue value) throws GenericEntityException
createOrStore
in interface DelegatorInterface
value
- The GenericValue instance containing the new or existing instance
GenericEntityException
protected void saveEntitySyncRemoveInfo(GenericEntity dummyPK) throws GenericEntityException
GenericEntityException
public int removeByPrimaryKey(GenericPK primaryKey) throws GenericEntityException
removeByPrimaryKey
in interface DelegatorInterface
primaryKey
- The primary key of the entity to remove.
GenericEntityException
public int removeByPrimaryKey(GenericPK primaryKey, boolean doCacheClear) throws GenericEntityException
removeByPrimaryKey
in interface DelegatorInterface
primaryKey
- The primary key of the entity to remove.doCacheClear
- boolean that specifies whether to clear cache entries for this primaryKey to be removed
GenericEntityException
public int removeValue(GenericValue value) throws GenericEntityException
removeValue
in interface DelegatorInterface
value
- The GenericValue object of the entity to remove.
GenericEntityException
public int removeValue(GenericValue value, boolean doCacheClear) throws GenericEntityException
removeValue
in interface DelegatorInterface
value
- The GenericValue object of the entity to remove.doCacheClear
- boolean that specifies whether to clear cache entries for this value to be removed
GenericEntityException
public int removeByAnd(java.lang.String entityName, java.lang.Object... fields) throws GenericEntityException
removeByAnd
in interface DelegatorInterface
entityName
- The Name of the Entity as defined in the entity XML filefields
- The fields of the named entity to query by with their corresponging values
GenericEntityException
public int removeByAnd(java.lang.String entityName, java.util.Map<java.lang.String,? extends java.lang.Object> fields) throws GenericEntityException
removeByAnd
in interface DelegatorInterface
entityName
- The Name of the Entity as defined in the entity XML filefields
- The fields of the named entity to query by with their corresponging values
GenericEntityException
public int removeByAnd(java.lang.String entityName, boolean doCacheClear, java.lang.Object... fields) throws GenericEntityException
removeByAnd
in interface DelegatorInterface
entityName
- The Name of the Entity as defined in the entity XML filedoCacheClear
- boolean that specifies whether to clear cache entries for this value to be removedfields
- The fields of the named entity to query by with their corresponging values
GenericEntityException
public int removeByAnd(java.lang.String entityName, java.util.Map<java.lang.String,? extends java.lang.Object> fields, boolean doCacheClear) throws GenericEntityException
removeByAnd
in interface DelegatorInterface
entityName
- The Name of the Entity as defined in the entity XML filefields
- The fields of the named entity to query by with their corresponging valuesdoCacheClear
- boolean that specifies whether to clear cache entries for this value to be removed
GenericEntityException
public int removeByCondition(java.lang.String entityName, EntityCondition condition) throws GenericEntityException
removeByCondition
in interface DelegatorInterface
entityName
- The Name of the Entity as defined in the entity XML filecondition
- The condition used to restrict the removing
GenericEntityException
public int removeByCondition(java.lang.String entityName, EntityCondition condition, boolean doCacheClear) throws GenericEntityException
removeByCondition
in interface DelegatorInterface
entityName
- The Name of the Entity as defined in the entity XML filecondition
- The condition used to restrict the removingdoCacheClear
- boolean that specifies whether to clear cache entries for this value to be removed
GenericEntityException
public int removeRelated(java.lang.String relationName, GenericValue value) throws GenericEntityException
removeRelated
in interface DelegatorInterface
relationName
- String containing the relation name which is the
combination of relation.title and relation.rel-entity-name as
specified in the entity XML definition filevalue
- GenericValue instance containing the entity
GenericEntityException
public int removeRelated(java.lang.String relationName, GenericValue value, boolean doCacheClear) throws GenericEntityException
removeRelated
in interface DelegatorInterface
relationName
- String containing the relation name which is the
combination of relation.title and relation.rel-entity-name as
specified in the entity XML definition filevalue
- GenericValue instance containing the entitydoCacheClear
- boolean that specifies whether to clear cache entries for this value to be removed
GenericEntityException
public void refresh(GenericValue value) throws GenericEntityException
refresh
in interface DelegatorInterface
value
- GenericValue instance containing the entity to refresh
GenericEntityException
public void refresh(GenericValue value, boolean doCacheClear) throws GenericEntityException
refresh
in interface DelegatorInterface
value
- GenericValue instance containing the entity to refreshdoCacheClear
- boolean that specifies whether or not to automatically clear cache entries related to this operation
GenericEntityException
public void refreshFromCache(GenericValue value) throws GenericEntityException
value
- GenericValue instance containing the entity to refresh
GenericEntityException
public int storeByCondition(java.lang.String entityName, java.util.Map<java.lang.String,? extends java.lang.Object> fieldsToSet, EntityCondition condition) throws GenericEntityException
storeByCondition
in interface DelegatorInterface
entityName
- The name of the Entity as defined in the entity XML filefieldsToSet
- The fields of the named entity to set in the databasecondition
- The condition that restricts the list of stored values
GenericEntityException
public int storeByCondition(java.lang.String entityName, java.util.Map<java.lang.String,? extends java.lang.Object> fieldsToSet, EntityCondition condition, boolean doCacheClear) throws GenericEntityException
storeByCondition
in interface DelegatorInterface
entityName
- The name of the Entity as defined in the entity XML filefieldsToSet
- The fields of the named entity to set in the databasecondition
- The condition that restricts the list of stored valuesdoCacheClear
- boolean that specifies whether to clear cache entries for these values
GenericEntityException
public int store(GenericValue value) throws GenericEntityException
store
in interface DelegatorInterface
value
- GenericValue instance containing the entity
GenericEntityException
public int store(GenericValue value, boolean doCacheClear) throws GenericEntityException
store
in interface DelegatorInterface
value
- GenericValue instance containing the entitydoCacheClear
- boolean that specifies whether or not to automatically clear cache entries related to this operation
GenericEntityException
public int storeAll(java.util.List<GenericValue> values) throws GenericEntityException
storeAll
in interface DelegatorInterface
values
- List of GenericValue instances containing the entities to store
GenericEntityException
public int storeAll(java.util.List<GenericValue> values, boolean doCacheClear) throws GenericEntityException
storeAll
in interface DelegatorInterface
values
- List of GenericValue instances containing the entities to storedoCacheClear
- boolean that specifies whether or not to automatically clear cache entries related to this operation
GenericEntityException
public int storeAll(java.util.List<GenericValue> values, boolean doCacheClear, boolean createDummyFks) throws GenericEntityException
values
- List of GenericValue instances containing the entities to storedoCacheClear
- boolean that specifies whether or not to automatically clear cache entries related to this operationcreateDummyFks
- boolean that specifies whether or not to automatically create "dummy" place holder FKs
GenericEntityException
public int removeAll(java.lang.String entityName) throws GenericEntityException
removeAll
in interface DelegatorInterface
GenericEntityException
public int removeAll(java.util.List<? extends GenericEntity> dummyPKs) throws GenericEntityException
removeAll
in interface DelegatorInterface
dummyPKs
- Collection of GenericEntity instances containing the entities or by and fields to remove
GenericEntityException
public int removeAll(java.util.List<? extends GenericEntity> dummyPKs, boolean doCacheClear) throws GenericEntityException
removeAll
in interface DelegatorInterface
dummyPKs
- Collection of GenericEntity instances containing the entities or by and fields to removedoCacheClear
- boolean that specifies whether or not to automatically clear cache entries related to this operation
GenericEntityException
public GenericValue findOne(java.lang.String entityName, boolean useCache, java.lang.Object... fields) throws GenericEntityException
entityName
- The Name of the Entity as defined in the entity XML filefields
- The fields of the named entity to query by with their corresponging values
GenericEntityException
public GenericValue findOne(java.lang.String entityName, java.util.Map<java.lang.String,? extends java.lang.Object> fields, boolean useCache) throws GenericEntityException
findOne
in interface DelegatorInterface
entityName
- The Name of the Entity as defined in the entity XML filefields
- The fields of the named entity to query by with their corresponging values
GenericEntityException
public GenericValue findByPrimaryKey(GenericPK primaryKey) throws GenericEntityException
primaryKey
- The primary key to find by.
GenericEntityException
public GenericValue findByPrimaryKeyCache(GenericPK primaryKey) throws GenericEntityException
primaryKey
- The primary key to find by.
GenericEntityException
public GenericValue findByPrimaryKey(java.lang.String entityName, java.lang.Object... fields) throws GenericEntityException
entityName
- The Name of the Entity as defined in the entity XML filefields
- The fields of the named entity to query by with their corresponging values
GenericEntityException
public GenericValue findByPrimaryKey(java.lang.String entityName, java.util.Map<java.lang.String,? extends java.lang.Object> fields) throws GenericEntityException
findByPrimaryKey
in interface DelegatorInterface
entityName
- The Name of the Entity as defined in the entity XML filefields
- The fields of the named entity to query by with their corresponging values
GenericEntityException
public GenericValue findByPrimaryKeySingle(java.lang.String entityName, java.lang.Object singlePkValue) throws GenericEntityException
entityName
- The Name of the Entity as defined in the entity XML filesinglePkValue
-
GenericEntityException
public GenericValue findByPrimaryKeyCache(java.lang.String entityName, java.lang.Object... fields) throws GenericEntityException
findByPrimaryKeyCache
in interface DelegatorInterface
entityName
- The Name of the Entity as defined in the entity XML filefields
- The fields of the named entity to query by with their corresponging values
GenericEntityException
public GenericValue findByPrimaryKeyCache(java.lang.String entityName, java.util.Map<java.lang.String,? extends java.lang.Object> fields) throws GenericEntityException
findByPrimaryKeyCache
in interface DelegatorInterface
entityName
- The Name of the Entity as defined in the entity XML filefields
- The fields of the named entity to query by with their corresponging values
GenericEntityException
public GenericValue findByPrimaryKeyCacheSingle(java.lang.String entityName, java.lang.Object singlePkValue) throws GenericEntityException
entityName
- The Name of the Entity as defined in the entity XML filesinglePkValue
-
GenericEntityException
public GenericValue findByPrimaryKeyPartial(GenericPK primaryKey, java.lang.String... keys) throws GenericEntityException
primaryKey
- The primary key to find by.keys
- The keys, or names, of the values to retrieve; only these values will be retrieved
GenericEntityException
public GenericValue findByPrimaryKeyPartial(GenericPK primaryKey, java.util.Set<java.lang.String> keys) throws GenericEntityException
findByPrimaryKeyPartial
in interface DelegatorInterface
primaryKey
- The primary key to find by.keys
- The keys, or names, of the values to retrieve; only these values will be retrieved
GenericEntityException
public java.util.List<GenericValue> findAllByPrimaryKeys(java.util.Collection<GenericPK> primaryKeys) throws GenericEntityException
primaryKeys
- A Collection of primary keys to find by.
GenericEntityException
public java.util.List<GenericValue> findAllByPrimaryKeysCache(java.util.Collection<GenericPK> primaryKeys) throws GenericEntityException
primaryKeys
- A Collection of primary keys to find by.
GenericEntityException
public java.util.List<GenericValue> findAll(java.lang.String entityName) throws GenericEntityException
entityName
- The Name of the Entity as defined in the entity XML file
GenericEntityException
public java.util.List<GenericValue> findAll(java.lang.String entityName, java.lang.String... orderBy) throws GenericEntityException
entityName
- The Name of the Entity as defined in the entity XML fileorderBy
- The fields of the named entity to order the query by; optionally add a " ASC" for ascending or " DESC" for descending
GenericEntityException
public java.util.List<GenericValue> findAll(java.lang.String entityName, java.util.List<java.lang.String> orderBy) throws GenericEntityException
entityName
- The Name of the Entity as defined in the entity XML fileorderBy
- The fields of the named entity to order the query by; optionally add a " ASC" for ascending or " DESC" for descending
GenericEntityException
public java.util.List<GenericValue> findAllCache(java.lang.String entityName) throws GenericEntityException
entityName
- The Name of the Entity as defined in the entity XML file
GenericEntityException
public java.util.List<GenericValue> findAllCache(java.lang.String entityName, java.lang.String... orderBy) throws GenericEntityException
entityName
- The Name of the Entity as defined in the entity XML fileorderBy
- The fields of the named entity to order the query by; optionally add a " ASC" for ascending or " DESC" for descending
GenericEntityException
public java.util.List<GenericValue> findAllCache(java.lang.String entityName, java.util.List<java.lang.String> orderBy) throws GenericEntityException
entityName
- The Name of the Entity as defined in the entity XML fileorderBy
- The fields of the named entity to order the query by; optionally add a " ASC" for ascending or " DESC" for descending
GenericEntityException
@Deprecated public java.util.List<GenericValue> findByAnd(java.lang.String entityName, java.lang.Object... fields) throws GenericEntityException
findByAnd
in interface DelegatorInterface
entityName
- The Name of the Entity as defined in the entity XML filefields
- The fields of the named entity to query by with their corresponging values
GenericEntityException
public java.util.List<GenericValue> findByAnd(java.lang.String entityName, java.util.Map<java.lang.String,? extends java.lang.Object> fields) throws GenericEntityException
findByAnd
in interface DelegatorInterface
entityName
- The Name of the Entity as defined in the entity XML filefields
- The fields of the named entity to query by with their corresponging values
GenericEntityException
@Deprecated public java.util.List<GenericValue> findByOr(java.lang.String entityName, java.lang.Object... fields) throws GenericEntityException
entityName
- The Name of the Entity as defined in the entity XML filefields
- The fields of the named entity to query by with their corresponging values
GenericEntityException
public java.util.List<GenericValue> findByOr(java.lang.String entityName, java.util.Map<java.lang.String,? extends java.lang.Object> fields) throws GenericEntityException
entityName
- The Name of the Entity as defined in the entity XML filefields
- The fields of the named entity to query by with their corresponging values
GenericEntityException
public java.util.List<GenericValue> findByAnd(java.lang.String entityName, java.util.Map<java.lang.String,? extends java.lang.Object> fields, java.util.List<java.lang.String> orderBy) throws GenericEntityException
findByAnd
in interface DelegatorInterface
entityName
- The Name of the Entity as defined in the entity XML filefields
- The fields of the named entity to query by with their corresponging valuesorderBy
- The fields of the named entity to order the query by;
optionally add a " ASC" for ascending or " DESC" for descending
GenericEntityException
public java.util.List<GenericValue> findByOr(java.lang.String entityName, java.util.Map<java.lang.String,? extends java.lang.Object> fields, java.util.List<java.lang.String> orderBy) throws GenericEntityException
findByOr
in interface DelegatorInterface
entityName
- The Name of the Entity as defined in the entity XML filefields
- The fields of the named entity to query by with their corresponging valuesorderBy
- The fields of the named entity to order the query by;
optionally add a " ASC" for ascending or " DESC" for descending
GenericEntityException
public java.util.List<GenericValue> findByAndCache(java.lang.String entityName, java.lang.Object... fields) throws GenericEntityException
entityName
- The Name of the Entity as defined in the entity XML filefields
- The fields of the named entity to query by with their corresponging values
GenericEntityException
public java.util.List<GenericValue> findByAndCache(java.lang.String entityName, java.util.Map<java.lang.String,? extends java.lang.Object> fields) throws GenericEntityException
findByAndCache
in interface DelegatorInterface
entityName
- The Name of the Entity as defined in the entity XML filefields
- The fields of the named entity to query by with their corresponging values
GenericEntityException
public java.util.List<GenericValue> findByAndCache(java.lang.String entityName, java.util.Map<java.lang.String,? extends java.lang.Object> fields, java.util.List<java.lang.String> orderBy) throws GenericEntityException
findByAndCache
in interface DelegatorInterface
entityName
- The Name of the Entity as defined in the entity XML filefields
- The fields of the named entity to query by with their corresponging valuesorderBy
- The fields of the named entity to order the query by; optionally add a " ASC" for ascending or " DESC" for descending
GenericEntityException
public <T extends EntityCondition> java.util.List<GenericValue> findByAnd(java.lang.String entityName, T... expressions) throws GenericEntityException
entityName
- The Name of the Entity as defined in the entity XML fileexpressions
- The expressions to use for the lookup, each consisting of at least a field name, an EntityOperator, and a value to compare to
GenericEntityException
public <T extends EntityCondition> java.util.List<GenericValue> findByAnd(java.lang.String entityName, java.util.List<T> expressions) throws GenericEntityException
entityName
- The Name of the Entity as defined in the entity XML fileexpressions
- The expressions to use for the lookup, each consisting of at least a field name, an EntityOperator, and a value to compare to
GenericEntityException
public <T extends EntityCondition> java.util.List<GenericValue> findByAnd(java.lang.String entityName, java.util.List<T> expressions, java.util.List<java.lang.String> orderBy) throws GenericEntityException
entityName
- The Name of the Entity as defined in the entity XML fileexpressions
- The expressions to use for the lookup, each consisting of at least a field name, an EntityOperator, and a value to compare toorderBy
- The fields of the named entity to order the query by; optionally add a " ASC" for ascending or " DESC" for descending
GenericEntityException
public <T extends EntityCondition> java.util.List<GenericValue> findByOr(java.lang.String entityName, T... expressions) throws GenericEntityException
entityName
- The Name of the Entity as defined in the entity XML fileexpressions
- The expressions to use for the lookup, each consisting of at least a field name, an EntityOperator, and a value to compare to
GenericEntityException
public <T extends EntityCondition> java.util.List<GenericValue> findByOr(java.lang.String entityName, java.util.List<T> expressions) throws GenericEntityException
entityName
- The Name of the Entity as defined in the entity XML fileexpressions
- The expressions to use for the lookup, each consisting of at least a field name, an EntityOperator, and a value to compare to
GenericEntityException
public <T extends EntityCondition> java.util.List<GenericValue> findByOr(java.lang.String entityName, java.util.List<T> expressions, java.util.List<java.lang.String> orderBy) throws GenericEntityException
entityName
- The Name of the Entity as defined in the entity XML fileexpressions
- The expressions to use for the lookup, each consisting of at least a field name, an EntityOperator, and a value to compare toorderBy
- The fields of the named entity to order the query by; optionally add a " ASC" for ascending or " DESC" for descending
GenericEntityException
public java.util.List<GenericValue> findByLike(java.lang.String entityName, java.lang.Object... fields) throws GenericEntityException
GenericEntityException
public java.util.List<GenericValue> findByLike(java.lang.String entityName, java.util.Map<java.lang.String,? extends java.lang.Object> fields) throws GenericEntityException
GenericEntityException
public java.util.List<GenericValue> findByLike(java.lang.String entityName, java.util.Map<java.lang.String,? extends java.lang.Object> fields, java.util.List<java.lang.String> orderBy) throws GenericEntityException
GenericEntityException
public java.util.List<GenericValue> findByCondition(java.lang.String entityName, EntityCondition entityCondition, java.util.Collection<java.lang.String> fieldsToSelect, java.util.List<java.lang.String> orderBy) throws GenericEntityException
entityName
- The Name of the Entity as defined in the entity model XML fileentityCondition
- The EntityCondition object that specifies how to constrain this queryfieldsToSelect
- The fields of the named entity to get from the database; if empty or null all fields will be retreivedorderBy
- The fields of the named entity to order the query by; optionally add a " ASC" for ascending or " DESC" for descending
GenericEntityException
public java.util.List<GenericValue> findByCondition(java.lang.String entityName, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition, java.util.Collection<java.lang.String> fieldsToSelect, java.util.List<java.lang.String> orderBy, EntityFindOptions findOptions) throws GenericEntityException
entityName
- The name of the Entity as defined in the entity XML filewhereEntityCondition
- 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)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)fieldsToSelect
- The fields of the named entity to get from the database; if empty or null all fields will be retreivedorderBy
- The fields of the named entity to order the query by; optionally add a " ASC" for ascending or " DESC" for descendingfindOptions
- An instance of EntityFindOptions that specifies advanced query options. See the EntityFindOptions JavaDoc for more details.
GenericEntityException
public java.util.List<GenericValue> findByConditionCache(java.lang.String entityName, EntityCondition entityCondition, java.util.Collection<java.lang.String> fieldsToSelect, java.util.List<java.lang.String> orderBy) throws GenericEntityException
entityName
- The Name of the Entity as defined in the entity model XML fileentityCondition
- The EntityCondition object that specifies how to constrain this queryfieldsToSelect
- The fields of the named entity to get from the database; if empty or null all fields will be retreivedorderBy
- The fields of the named entity to order the query by; optionally add a " ASC" for ascending or " DESC" for descending
GenericEntityException
public EntityListIterator findListIteratorByCondition(java.lang.String entityName, EntityCondition entityCondition, java.util.Collection<java.lang.String> fieldsToSelect, java.util.List<java.lang.String> orderBy) throws GenericEntityException
entityName
- The Name of the Entity as defined in the entity model XML fileentityCondition
- 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)fieldsToSelect
- The fields of the named entity to get from the database; if empty or null all fields will be retreivedorderBy
- The fields of the named entity to order the query by; optionally add a " ASC" for ascending or " DESC" for descending
GenericEntityException
public EntityListIterator findListIteratorByCondition(java.lang.String entityName, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition, java.util.Collection<java.lang.String> fieldsToSelect, java.util.List<java.lang.String> orderBy, EntityFindOptions findOptions) throws GenericEntityException
entityName
- The name of the Entity as defined in the entity XML filewhereEntityCondition
- 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)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)fieldsToSelect
- The fields of the named entity to get from the database; if empty or null all fields will be retreivedorderBy
- The fields of the named entity to order the query by; optionally add a " ASC" for ascending or " DESC" for descendingfindOptions
- An instance of EntityFindOptions that specifies advanced query options. See the EntityFindOptions JavaDoc for more details.
GenericEntityException
public EntityListIterator find(java.lang.String entityName, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition, java.util.Set<java.lang.String> fieldsToSelect, java.util.List<java.lang.String> orderBy, EntityFindOptions findOptions) throws GenericEntityException
find
in interface DelegatorInterface
entityName
- The name of the Entity as defined in the entity XML filewhereEntityCondition
- 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)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)fieldsToSelect
- The fields of the named entity to get from the database; if empty or null all fields will be retreivedorderBy
- The fields of the named entity to order the query by; optionally add a " ASC" for ascending or " DESC" for descendingfindOptions
- An instance of EntityFindOptions that specifies advanced query options. See the EntityFindOptions JavaDoc for more details.
GenericEntityException
public java.util.List<GenericValue> findList(java.lang.String entityName, EntityCondition entityCondition, java.util.Set<java.lang.String> fieldsToSelect, java.util.List<java.lang.String> orderBy, EntityFindOptions findOptions, boolean useCache) throws GenericEntityException
findList
in interface DelegatorInterface
entityName
- The name of the Entity as defined in the entity XML fileentityCondition
- 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)fieldsToSelect
- The fields of the named entity to get from the database; if empty or null all fields will be retreivedorderBy
- The fields of the named entity to order the query by; optionally add a " ASC" for ascending or " DESC" for descendingfindOptions
- An instance of EntityFindOptions that specifies advanced query options. See the EntityFindOptions JavaDoc for more details.
GenericEntityException
public EntityListIterator findListIteratorByCondition(DynamicViewEntity dynamicViewEntity, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition, java.util.Collection<java.lang.String> fieldsToSelect, java.util.List<java.lang.String> orderBy, EntityFindOptions findOptions) throws GenericEntityException
dynamicViewEntity
- The DynamicViewEntity to use for the entity model for this query; generally created on the fly for limited usewhereEntityCondition
- 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)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)fieldsToSelect
- The fields of the named entity to get from the database; if empty or null all fields will be retreivedorderBy
- The fields of the named entity to order the query by; optionally add a " ASC" for ascending or " DESC" for descendingfindOptions
- An instance of EntityFindOptions that specifies advanced query options. See the EntityFindOptions JavaDoc for more details.
GenericEntityException
public long findCountByAnd(java.lang.String entityName) throws GenericEntityException
GenericEntityException
public long findCountByAnd(java.lang.String entityName, java.lang.Object... fields) throws GenericEntityException
GenericEntityException
public long findCountByAnd(java.lang.String entityName, java.util.Map<java.lang.String,? extends java.lang.Object> fields) throws GenericEntityException
GenericEntityException
public long findCountByCondition(java.lang.String entityName, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition) throws GenericEntityException
GenericEntityException
public long findCountByCondition(java.lang.String entityName, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition, EntityFindOptions findOptions) throws GenericEntityException
GenericEntityException
public java.util.List<GenericValue> getMultiRelation(GenericValue value, java.lang.String relationNameOne, java.lang.String relationNameTwo, java.util.List<java.lang.String> orderBy) throws GenericEntityException
getMultiRelation
in interface DelegatorInterface
relationNameOne
- String containing the relation name which is the
combination of relation.title and relation.rel-entity-name as
specified in the entity XML definition file, for first relationrelationNameTwo
- String containing the relation name for second relationvalue
- GenericValue instance containing the entityorderBy
- The fields of the named entity to order the query by; may be null;
optionally add a " ASC" for ascending or " DESC" for descending
GenericEntityException
public java.util.List<GenericValue> getMultiRelation(GenericValue value, java.lang.String relationNameOne, java.lang.String relationNameTwo) throws GenericEntityException
relationNameOne
- String containing the relation name which is the
combination of relation.title and relation.rel-entity-name as
specified in the entity XML definition file, for first relationrelationNameTwo
- String containing the relation name for second relationvalue
- GenericValue instance containing the entity
GenericEntityException
public java.util.List<GenericValue> getRelated(java.lang.String relationName, GenericValue value) throws GenericEntityException
relationName
- String containing the relation name which is the
combination of relation.title and relation.rel-entity-name as
specified in the entity XML definition filevalue
- GenericValue instance containing the entity
GenericEntityException
public java.util.List<GenericValue> getRelatedByAnd(java.lang.String relationName, java.util.Map<java.lang.String,? extends java.lang.Object> byAndFields, GenericValue value) throws GenericEntityException
relationName
- String containing the relation name which is the
combination of relation.title and relation.rel-entity-name as
specified in the entity XML definition filebyAndFields
- the fields that must equal in order to keep; may be nullvalue
- GenericValue instance containing the entity
GenericEntityException
public java.util.List<GenericValue> getRelatedOrderBy(java.lang.String relationName, java.util.List<java.lang.String> orderBy, GenericValue value) throws GenericEntityException
relationName
- String containing the relation name which is the
combination of relation.title and relation.rel-entity-name as
specified in the entity XML definition fileorderBy
- The fields of the named entity to order the query by; may be null;
optionally add a " ASC" for ascending or " DESC" for descendingvalue
- GenericValue instance containing the entity
GenericEntityException
public java.util.List<GenericValue> getRelated(java.lang.String relationName, java.util.Map<java.lang.String,? extends java.lang.Object> byAndFields, java.util.List<java.lang.String> orderBy, GenericValue value) throws GenericEntityException
getRelated
in interface DelegatorInterface
relationName
- String containing the relation name which is the
combination of relation.title and relation.rel-entity-name as
specified in the entity XML definition filebyAndFields
- the fields that must equal in order to keep; may be nullorderBy
- The fields of the named entity to order the query by; may be null;
optionally add a " ASC" for ascending or " DESC" for descendingvalue
- GenericValue instance containing the entity
GenericEntityException
public GenericPK getRelatedDummyPK(java.lang.String relationName, java.util.Map<java.lang.String,? extends java.lang.Object> byAndFields, GenericValue value) throws GenericEntityException
getRelatedDummyPK
in interface DelegatorInterface
relationName
- String containing the relation name which is the
combination of relation.title and relation.rel-entity-name as
specified in the entity XML definition filebyAndFields
- the fields that must equal in order to keep; may be nullvalue
- GenericValue instance containing the entity
GenericEntityException
public java.util.List<GenericValue> getRelatedCache(java.lang.String relationName, GenericValue value) throws GenericEntityException
getRelatedCache
in interface DelegatorInterface
relationName
- String containing the relation name which is the
combination of relation.title and relation.rel-entity-name as
specified in the entity XML definition filevalue
- GenericValue instance containing the entity
GenericEntityException
public GenericValue getRelatedOne(java.lang.String relationName, GenericValue value) throws GenericEntityException
getRelatedOne
in interface DelegatorInterface
java.lang.IllegalArgumentException
- if the list found has more than one item
GenericEntityException
public GenericValue getRelatedOneCache(java.lang.String relationName, GenericValue value) throws GenericEntityException
getRelatedOneCache
in interface DelegatorInterface
java.lang.IllegalArgumentException
- if the list found has more than one item
GenericEntityException
public void clearAllCaches()
clearAllCaches
in interface DelegatorInterface
public void clearAllCaches(boolean distribute)
clearAllCaches
in interface DelegatorInterface
public void clearCacheLine(java.lang.String entityName)
clearCacheLine
in interface DelegatorInterface
entityName
- The Name of the Entity as defined in the entity XML filepublic void clearCacheLine(java.lang.String entityName, java.lang.Object... fields)
clearCacheLine
in interface DelegatorInterface
entityName
- The Name of the Entity as defined in the entity XML filefields
- The fields of the named entity to query by with their corresponging valuespublic void clearCacheLine(java.lang.String entityName, java.util.Map<java.lang.String,? extends java.lang.Object> fields)
clearCacheLine
in interface DelegatorInterface
entityName
- The Name of the Entity as defined in the entity XML filefields
- The fields of the named entity to query by with their corresponging valuespublic void clearCacheLineFlexible(GenericEntity dummyPK)
clearCacheLineFlexible
in interface DelegatorInterface
dummyPK
- The dummy primary key to clear by.public void clearCacheLineFlexible(GenericEntity dummyPK, boolean distribute)
clearCacheLineFlexible
in interface DelegatorInterface
protected void clearCacheValues(UtilCache cache, java.lang.String entityName, EntityCondition condition)
public void clearCacheLineByCondition(java.lang.String entityName, EntityCondition condition)
clearCacheLineByCondition
in interface DelegatorInterface
public void clearCacheLineByCondition(java.lang.String entityName, EntityCondition condition, boolean distribute)
public void clearCacheLine(GenericPK primaryKey)
clearCacheLine
in interface DelegatorInterface
primaryKey
- The primary key to clear by.public void clearCacheLine(GenericPK primaryKey, boolean distribute)
clearCacheLine
in interface DelegatorInterface
public void clearCacheLine(GenericValue value)
clearCacheLine
in interface DelegatorInterface
value
- The GenericValue to clear by.public void clearCacheLine(GenericValue value, boolean distribute)
clearCacheLine
in interface DelegatorInterface
public void clearAllCacheLinesByDummyPK(java.util.Collection<GenericPK> dummyPKs)
clearAllCacheLinesByDummyPK
in interface DelegatorInterface
public void clearAllCacheLinesByValue(java.util.Collection<GenericValue> values)
clearAllCacheLinesByValue
in interface DelegatorInterface
public GenericValue getFromPrimaryKeyCache(GenericPK primaryKey)
getFromPrimaryKeyCache
in interface DelegatorInterface
public void putInPrimaryKeyCache(GenericPK primaryKey, GenericValue value)
public void putAllInPrimaryKeyCache(java.util.List<GenericValue> values)
public void setDistributedCacheClear(DistributedCacheClear distributedCacheClear)
public java.util.List<GenericValue> readXmlDocument(java.net.URL url) throws org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException, java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
public java.util.List<GenericValue> makeValues(org.w3c.dom.Document document)
public GenericPK makePK(org.w3c.dom.Element element)
public GenericValue makeValue(org.w3c.dom.Element element)
protected GenericDelegator.EntityEcaRuleRunner<?> getEcaRuleRunner(java.lang.String entityName)
protected static <T> GenericDelegator.EntityEcaRuleRunner<T> createEntityEcaRuleRunner(EntityEcaHandler<T> entityEcaHandler, java.lang.String entityName)
public void setEntityEcaHandler(EntityEcaHandler entityEcaHandler)
public EntityEcaHandler getEntityEcaHandler()
public java.lang.String getNextSeqId(java.lang.String seqName)
getNextSeqId
in interface DelegatorInterface
seqName
- The name of the sequence to get the next seq id from
public java.lang.String getNextSeqId(java.lang.String seqName, long staggerMax)
getNextSeqId
in interface DelegatorInterface
seqName
- The name of the sequence to get the next seq id fromstaggerMax
- The maximum amount to stagger the sequenced ID, if 1 the sequence will be incremented by 1, otherwise the current sequence ID will be incremented by a value between 1 and staggerMax
public java.lang.Long getNextSeqIdLong(java.lang.String seqName)
getNextSeqIdLong
in interface DelegatorInterface
seqName
- The name of the sequence to get the next seq id from
public java.lang.Long getNextSeqIdLong(java.lang.String seqName, long staggerMax)
getNextSeqIdLong
in interface DelegatorInterface
seqName
- The name of the sequence to get the next seq id fromstaggerMax
- The maximum amount to stagger the sequenced ID, if 1 the sequence will be incremented by 1, otherwise the current sequence ID will be incremented by a value between 1 and staggerMax
public void setSequencer(SequenceUtil sequencer)
setSequencer
in interface DelegatorInterface
public void refreshSequencer()
refreshSequencer
in interface DelegatorInterface
public void setNextSubSeqId(GenericValue value, java.lang.String seqFieldName, int numericPadding, int incrementBy)
public void encryptFields(java.util.List<? extends GenericEntity> entities) throws GenericEntityException
GenericEntityException
public void encryptFields(GenericEntity entity) throws GenericEntityException
GenericEntityException
public java.lang.Object encryptFieldValue(java.lang.String entityName, java.lang.Object fieldValue) throws EntityCryptoException
EntityCryptoException
public void decryptFields(java.util.List<? extends GenericEntity> entities) throws GenericEntityException
GenericEntityException
public void decryptFields(GenericEntity entity) throws GenericEntityException
GenericEntityException
public void setEntityCrypto(EntityCrypto crypto)
protected void absorbList(java.util.List<GenericValue> lst)
public Cache getCache()
getCache
in interface DelegatorInterface
protected void createEntityAuditLogAll(GenericValue value, boolean isUpdate, boolean isRemove) throws GenericEntityException
GenericEntityException
protected void createEntityAuditLogSingle(GenericValue value, ModelField mf, boolean isUpdate, boolean isRemove) throws GenericEntityException
GenericEntityException
public GenericDelegator cloneDelegator(java.lang.String delegatorName)
public GenericDelegator cloneDelegator()
public GenericDelegator makeTestDelegator(java.lang.String delegatorName)
public void rollback()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |