The implementation of the GORM instance API contract for Hibernate.
Modifiers | Name | Description |
---|---|---|
protected InstanceApiHelper |
instanceApiHelper |
Fields inherited from class | Fields |
---|---|
class AbstractHibernateGormInstanceApi |
EMPTY_ARRAY, classLoader, hibernateTemplate, proxyHandler, sessionFactory |
class AbstractGormApi |
persistentClass, persistentEntity |
class AbstractDatastoreApi |
datastore |
Constructor and description |
---|
HibernateGormInstanceApi
(java.lang.Class<D> persistentClass, HibernateDatastore datastore, java.lang.ClassLoader classLoader) |
Type | Name and description |
---|---|
protected org.hibernate.engine.spi.EntityEntry |
findEntityEntry(D instance, org.hibernate.engine.spi.SessionImplementor session, boolean forDirtyCheck = true) |
java.util.List |
getDirtyPropertyNames(D instance) Obtains a list of property names that are dirty |
java.lang.Object |
getPersistentValue(D instance, java.lang.String fieldName) Gets the original persisted value of a field. |
boolean |
isDirty(D instance, java.lang.String fieldName) Checks whether a field is dirty |
boolean |
isDirty(D instance) Checks whether an entity is dirty |
void |
setObjectToReadWrite(java.lang.Object target) |
Obtains a list of property names that are dirty
instance
- The instanceGets the original persisted value of a field.
fieldName
- The field nameChecks whether a field is dirty
instance
- The instancefieldName
- The name of the fieldChecks whether an entity is dirty
instance
- The instance