The implementation of the GORM instance API contract for Hibernate.
| Modifiers | Name | Description |
|---|---|---|
protected org.grails.orm.hibernate.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, org.grails.orm.hibernate.HibernateDatastore datastore, java.lang.ClassLoader classLoader) |
| Type Params | Return 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 |
setObjectToReadOnly(java.lang.Object target) |
|
void |
setObjectToReadWrite(java.lang.Object target) |
| Methods inherited from class | Name |
|---|---|
class AbstractHibernateGormInstanceApi |
attach, delete, discard, flushSession, getAssumedUnsaved, getSessionFactory, handleValidationError, incrementVersion, insert, instanceOf, isAttached, lock, markInsertActive, merge, performInsert, performMerge, performSave, refresh, resetInsertActive, save, setErrorsOnInstance, setObjectToReadOnly, setObjectToReadWrite, shouldFail, shouldFlush |
class GormInstanceApi |
attach, delete, delete, discard, doSave, getDirtyPropertyNames, getPersistentValue, ident, insert, insert, instanceOf, isAttached, isDirty, isDirty, lock, merge, merge, mutex, propertyMissing, refresh, save, save, save |
class AbstractGormApi |
getExtendedMethods, getMethods, initializeMethods |
class AbstractDatastoreApi |
execute, execute, getDatastore |
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