/** * Returns the value of the attribute on the specified object. */ public Object getAttributeValueFromObject(Object object) { return ((PersistenceObject)object)._persistence_get(this.attributeName); }
/** * Build and return a new instance, using the factory */ public Object buildNewInstance() { return factory._persistence_new(factory); } }
/** * Sets the value of the instance variable in the object to the value. */ public void setAttributeValueInObject(Object object, Object value) { ((PersistenceObject)object)._persistence_set(this.attributeName, value); } }
public Object buildWorkingCopyClone(Object object, Session session) throws DescriptorException { return ((PersistenceObject)object)._persistence_shallow_clone(); }
public Object buildWorkingCopyClone(Object object, Session session) throws DescriptorException { return ((PersistenceObject)object)._persistence_shallow_clone(); }
public Object buildClone(Object object, Session session) throws DescriptorException { return ((PersistenceObject)object)._persistence_shallow_clone(); }
/** * Build and return a new instance, using the factory */ public Object buildNewInstance() { return factory._persistence_new(factory); } }
/** * Sets the value of the instance variable in the object to the value. */ public void setAttributeValueInObject(Object object, Object value) { ((PersistenceObject)object)._persistence_set(this.attributeName, value); } }
/** * Returns the value of the attribute on the specified object. */ public Object getAttributeValueFromObject(Object object) { return ((PersistenceObject)object)._persistence_get(this.attributeName); }
public Object buildWorkingCopyClone(Object object, Session session) throws DescriptorException { return ((PersistenceObject)object)._persistence_shallow_clone(); }
/** * Build and return a new instance, using the factory */ public Object buildNewInstance() { return factory._persistence_new(factory); } }
/** * Sets the value of the instance variable in the object to the value. */ public void setAttributeValueInObject(Object object, Object value) { if (shouldLogFinest) { ClassLoader contextClassLoader; ClassLoader objectClassLoader; if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()) { try { contextClassLoader = AccessController.doPrivileged( new PrivilegedGetClassLoaderFromCurrentThread()); objectClassLoader = AccessController.doPrivileged( new PrivilegedGetClassLoaderForClass(object.getClass())); } catch (PrivilegedActionException ex) { throw (RuntimeException) ex.getCause(); } } else { contextClassLoader = Thread.currentThread().getContextClassLoader(); objectClassLoader = object.getClass().getClassLoader(); } WeaverLogger.log(SessionLog.FINEST, "weaving_call_persistence_set", object.getClass().getName(), Integer.toHexString(System.identityHashCode(contextClassLoader)), Integer.toHexString(System.identityHashCode(objectClassLoader))); } ((PersistenceObject)object)._persistence_set(this.attributeName, value); } }
/** * Returns the value of the attribute on the specified object. */ public Object getAttributeValueFromObject(Object object) { if (shouldLogFinest) { ClassLoader contextClassLoader; ClassLoader objectClassLoader; if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()) { try { contextClassLoader = AccessController.doPrivileged( new PrivilegedGetClassLoaderFromCurrentThread()); objectClassLoader = AccessController.doPrivileged( new PrivilegedGetClassLoaderForClass(object.getClass())); } catch (PrivilegedActionException ex) { throw (RuntimeException) ex.getCause(); } } else { contextClassLoader = Thread.currentThread().getContextClassLoader(); objectClassLoader = object.getClass().getClassLoader(); } WeaverLogger.log(SessionLog.FINEST, "weaving_call_persistence_get", object.getClass().getName(), Integer.toHexString(System.identityHashCode(contextClassLoader)), Integer.toHexString(System.identityHashCode(objectClassLoader))); } return ((PersistenceObject)object)._persistence_get(this.attributeName); }
public Object buildClone(Object object, Session session) throws DescriptorException { return ((PersistenceObject)object)._persistence_shallow_clone(); }
public Object buildClone(Object object, Session session) throws DescriptorException { return ((PersistenceObject)object)._persistence_shallow_clone(); }