/** * INTERNAL: * Used to updated any attributes that may be cached on a woven entity */ public void updateCachedAttributes(PersistenceEntity persistenceEntity, CacheKey cacheKey, Object primaryKey){ persistenceEntity._persistence_setCacheKey(cacheKey); persistenceEntity._persistence_setId(primaryKey); }
/** * Clear any primary key cache data in the object. */ public void clearPrimaryKey(Object object) { // PERF: If PersistenceEntity is caching the primary key this must be cleared as the primary key has changed. if (object instanceof PersistenceEntity) { ((PersistenceEntity)object)._persistence_setPKVector(null); ((PersistenceEntity)object)._persistence_setCacheKey(null); } }
/** * Clear any primary key cache data in the object. */ public void clearPrimaryKey(Object object) { // PERF: If PersistenceEntity is caching the primary key this must be cleared as the primary key has changed. if (object instanceof PersistenceEntity) { ((PersistenceEntity)object)._persistence_setId(null); } }
Object primaryKey = ((PersistenceEntity)domainObject)._persistence_getId(); if (primaryKey != null) { return primaryKey; ((PersistenceEntity)domainObject)._persistence_setId(keyValue); if (cacheKeyType == CacheKeyType.ID_VALUE) { if (isPersistenceEntity && (!isNull)) { ((PersistenceEntity)domainObject)._persistence_setId(value); ((PersistenceEntity)domainObject)._persistence_setId(id);
protected Object getAndCloneCacheKeyFromParent(Object primaryKey, Object objectToClone, Class theClass, boolean shouldReturnInvalidatedObjects, ClassDescriptor descriptor) { CacheKey cacheKey = null; if (objectToClone != null && objectToClone instanceof PersistenceEntity){ cacheKey = ((PersistenceEntity)objectToClone)._persistence_getCacheKey(); ((PersistenceEntity)workingClone)._persistence_setId(cacheKey.getKey());
cacheKey = ((PersistenceEntity)objectToRegister)._persistence_getCacheKey();
boolean isPersistenceEntity = domainObject instanceof PersistenceEntity; if (isPersistenceEntity) { Vector key = ((PersistenceEntity)domainObject)._persistence_getPKVector(); if (key != null) { return key; ((PersistenceEntity)domainObject)._persistence_setPKVector(primaryKeyValues);
((PersistenceEntity)workingClone)._persistence_setPKVector(primaryKey);
/** * Clear any primary key cache data in the object. */ public void clearPrimaryKey(Object object) { // PERF: If PersistenceEntity is caching the primary key this must be cleared as the primary key has changed. if (object instanceof PersistenceEntity) { ((PersistenceEntity)object)._persistence_setId(null); } }
Object primaryKey = ((PersistenceEntity)domainObject)._persistence_getId(); if (primaryKey != null) { return primaryKey; ((PersistenceEntity)domainObject)._persistence_setId(keyValue); if (cacheKeyType == CacheKeyType.ID_VALUE) { if (isPersistenceEntity && (!isNull)) { ((PersistenceEntity)domainObject)._persistence_setId(value); ((PersistenceEntity)domainObject)._persistence_setId(id);
protected Object getAndCloneCacheKeyFromParent(Object primaryKey, Object objectToClone, Class theClass, boolean shouldReturnInvalidatedObjects, ClassDescriptor descriptor) { CacheKey cacheKey = null; if (objectToClone != null && objectToClone instanceof PersistenceEntity){ cacheKey = ((PersistenceEntity)objectToClone)._persistence_getCacheKey(); ((PersistenceEntity)workingClone)._persistence_setId(cacheKey.getKey());
cacheKey = ((PersistenceEntity)objectToRegister)._persistence_getCacheKey();
((PersistenceEntity)workingClone)._persistence_setPKVector(parentCacheKey.getKey());
((PersistenceEntity) entity)._persistence_setId(id);
/** * INTERNAL: * Used to updated any attributes that may be cached on a woven entity */ public void updateCachedAttributes(PersistenceEntity persistenceEntity, CacheKey cacheKey, Object primaryKey){ persistenceEntity._persistence_setCacheKey(cacheKey); persistenceEntity._persistence_setId(primaryKey); }
((PersistenceEntity)domainObject)._persistence_setCacheKey(cacheKey); ((PersistenceEntity)domainObject)._persistence_setPKVector(primaryKey);
CacheKey cacheKey = null; if (objectToClone != null && objectToClone instanceof PersistenceEntity){ cacheKey = ((PersistenceEntity)objectToClone)._persistence_getCacheKey();
((PersistenceEntity)workingClone)._persistence_setPKVector(primaryKey);
((PersistenceEntity) entity)._persistence_setId(id);
CacheKey cacheKey = null; if (objectToClone != null && objectToClone instanceof PersistenceEntity){ cacheKey = ((PersistenceEntity)objectToClone)._persistence_getCacheKey();