void
|
addDiscriminatorToInsert(Insert insert)
|
void
|
addDiscriminatorToSelect(SelectFragment select, String name, String suffix)
|
void
|
afterInitialize(Object entity, boolean lazyPropertiesAreUnfetched, SessionImplementor session)
Called just after the entities properties have been initialized
|
void
|
afterReassociate(Object entity, SessionImplementor session)
Called just after the entity has been reassociated with the session
|
boolean
|
canExtractIdOutOfEntity()
Determine whether detached instances of this entity carry their own
identifier value.
|
boolean
|
check(int rows, Serializable id, int tableNumber, Expectation expectation, PreparedStatement statement)
|
String
|
concretePropertySelectFragment(String alias, AbstractEntityPersister.InclusionChecker inclusionChecker)
|
String
|
concretePropertySelectFragment(String alias, boolean[] includeProperty)
|
String
|
concretePropertySelectFragment(String alias, ValueInclusion[] inclusions)
|
String
|
concretePropertySelectFragmentSansLeadingComma(String alias, boolean[] include)
|
boolean
|
consumesCollectionAlias()
Very, very, very ugly...
|
boolean
|
consumesEntityAlias()
Very, very, very ugly...
|
int
|
countSubclassProperties()
How many properties are there, for this class and all subclasses?
|
UniqueEntityLoader
|
createEntityLoader(LockMode lockMode, LoadQueryInfluencers loadQueryInfluencers)
|
UniqueEntityLoader
|
createEntityLoader(LockMode lockMode)
|
UniqueEntityLoader
|
createEntityLoader(LockOptions lockOptions, LoadQueryInfluencers loadQueryInfluencers)
|
String
|
createFrom(int tableNumber, String alias)
|
JoinFragment
|
createJoin(String name, boolean innerJoin, boolean includeSubclasses)
|
JoinFragment
|
createJoin(int[] tableNumbers, String drivingAlias)
|
void
|
createLoaders()
|
Object
|
createProxy(Serializable id, SessionImplementor session)
Create a new proxy instance
|
void
|
createQueryLoader()
|
SelectFragment
|
createSelect(int[] subclassColumnNumbers, int[] subclassFormulaNumbers)
|
void
|
createUniqueKeyLoaders()
|
String
|
createWhereByKey(int tableNumber, String alias)
|
int
|
dehydrate(Serializable id, Object[] fields, boolean[] includeProperty, boolean[][] includeColumns, int j, PreparedStatement st, SessionImplementor session)
|
int
|
dehydrate(Serializable id, Object[] fields, Object rowId, boolean[] includeProperty, boolean[][] includeColumns, int j, PreparedStatement ps, SessionImplementor session, int index)
Marshall the fields of a persistent instance to a prepared statement
|
void
|
delete(Serializable id, Object version, Object object, SessionImplementor session)
Delete an object
|
void
|
delete(Serializable id, Object version, int j, Object object, String sql, SessionImplementor session, Object[] loadedState)
Perform an SQL DELETE
|
String
|
filterFragment(String alias, Map enabledFilters)
Get the where clause filter, given a query alias and considering enabled session filters
|
abstract
String
|
filterFragment(String alias)
|
int[]
|
findDirty(Object[] currentState, Object[] previousState, Object entity, SessionImplementor session)
Locate the property-indices of all properties considered to be dirty.
|
int[]
|
findModified(Object[] old, Object[] current, Object entity, SessionImplementor session)
Locate the property-indices of all properties considered to be dirty.
|
Object
|
forceVersionIncrement(Serializable id, Object currentVersion, SessionImplementor session)
|
String
|
fromJoinFragment(String alias, boolean innerJoin, boolean includeSubclasses)
Get the from clause part of any joins
(optional operation)
|
String
|
generateDeleteString(int j)
Generate the SQL that deletes a row by id (and version)
|
String
|
generateFilterConditionAlias(String rootAlias)
The alias used for any filter conditions (mapped where-fragments or
enabled-filters).
|
String
|
generateIdentityInsertString(boolean[] includeProperty)
Used to generate an insery statement against the root table in the
case of identifier generation strategies where the insert statement
executions actually generates the identifier value.
|
String
|
generateInsertGeneratedValuesSelectString()
|
String
|
generateInsertString(boolean[] includeProperty, int j)
|
String
|
generateInsertString(boolean identityInsert, boolean[] includeProperty)
|
String
|
generateInsertString(boolean identityInsert, boolean[] includeProperty, int j)
Generate the SQL that inserts a row
|
String
|
generateLazySelectString()
|
LockingStrategy
|
generateLocker(LockMode lockMode)
|
String
|
generateSelectVersionString()
Generate the SQL that selects the version number by id
|
String
|
generateSnapshotSelectString()
|
String
|
generateTableAlias(String rootAlias, int tableNumber)
|
String
|
generateUpdateGeneratedValuesSelectString()
|
String
|
generateUpdateString(boolean[] includeProperty, int j, boolean useRowId)
|
String
|
generateUpdateString(boolean[] includeProperty, int j, Object[] oldFields, boolean useRowId)
Generate the SQL that updates a row by id (and version)
|
EntityRegionAccessStrategy
|
getCacheAccessStrategy()
Get the cache (optional operation)
|
CacheEntryStructure
|
getCacheEntryStructure()
Get the cache structure
|
CascadeStyle
|
getCascadeStyle(int i)
Get the cascade style of this (subclass closure) property
|
ClassMetadata
|
getClassMetadata()
Get the user-visible metadata for the class (optional operation)
|
Class
|
getConcreteProxyClass(EntityMode entityMode)
Get the proxy interface that instances of this concrete class will be
cast to (optional operation).
|
Object
|
getCurrentVersion(Serializable id, SessionImplementor session)
Retrieve the version number
|
Object[]
|
getDatabaseSnapshot(Serializable id, SessionImplementor session)
Get the current database state of the object, in a "hydrated" form, without
resolving identifiers
|
String
|
getDiscriminatorAlias()
|
String
|
getDiscriminatorAlias(String suffix)
Get the result set aliases used for the identifier columns, given a suffix
|
String
|
getDiscriminatorColumnName()
|
String
|
getDiscriminatorColumnReaderTemplate()
|
String
|
getDiscriminatorColumnReaders()
|
String
|
getDiscriminatorFormulaTemplate()
|
EntityMetamodel
|
getEntityMetamodel()
Retrieve the underlying entity metamodel instance...
|
final
String
|
getEntityName()
The entity name which this persister maps.
|
EntityType
|
getEntityType()
|
SessionFactoryImplementor
|
getFactory()
Return the SessionFactory to which this persister "belongs".
|
FetchMode
|
getFetchMode(int i)
May this (subclass closure) property be fetched using an SQL outerjoin?
|
Serializable
|
getIdentifier(Object object, EntityMode entityMode)
Get the identifier of an instance (throw an exception if no identifier property)
|
Serializable
|
getIdentifier(Object entity, SessionImplementor session)
Get the identifier of an instance (throw an exception if no identifier property)
|
String[]
|
getIdentifierAliases(String suffix)
Get the result set aliases used for the identifier columns, given a suffix
|
String[]
|
getIdentifierAliases()
|
String[]
|
getIdentifierColumnNames()
Get the names of columns used to persist the identifier
|
String[]
|
getIdentifierColumnReaderTemplates()
|
String[]
|
getIdentifierColumnReaders()
|
int
|
getIdentifierColumnSpan()
|
IdentifierGenerator
|
getIdentifierGenerator()
Determine which identifier generation strategy is used for this entity.
|
String
|
getIdentifierPropertyName()
Get the name of the identifier property (or return null) - need not return the
name of an actual Java property
|
Type
|
getIdentifierType()
Get the identifier type
|
String
|
getIdentitySelectString()
Get the database-specific SQL command to retrieve the last
generated IDENTITY value.
|
String[]
|
getKeyColumnNames()
The columns to join on
|
abstract
String[]
|
getKeyColumns(int j)
|
Set
|
getLazyProperties()
|
Map
|
getLoaders()
|
final
Class
|
getMappedClass(EntityMode entityMode)
The persistent class, or null
|
String
|
getMappedSuperclass()
Get the class that this class is mapped as a subclass of -
not necessarily the direct superclass
|
String
|
getName()
An identifying name; a class name or collection role name.
|
int[]
|
getNaturalIdentifierProperties()
|
Object[]
|
getNaturalIdentifierSnapshot(Serializable id, SessionImplementor session)
Retrieve the current state of the natural-id properties from the database.
|
boolean[]
|
getNonLazyPropertyUpdateability()
|
boolean[]
|
getPropertiesToInsert(Object[] fields)
Transform the array of property indexes to an array of booleans,
true when the property is insertable and non-null
|
final
boolean[]
|
getPropertiesToUpdate(int[] dirtyProperties, boolean hasDirtyCollection)
Transform the array of property indexes to an array of booleans,
true when the property is dirty
|
String[]
|
getPropertyAliases(String suffix, int i)
Get the result set aliases used for the property columns, given a suffix (properties of this class, only).
|
CascadeStyle[]
|
getPropertyCascadeStyles()
Get the cascade styles of the properties (optional operation)
|
boolean[]
|
getPropertyCheckability()
Get the "checkability" of the properties of this class
(is the property dirty checked, does the cache need
to be updated)
|
boolean[][]
|
getPropertyColumnInsertable()
|
String[]
|
getPropertyColumnNames(String propertyName)
Get the column names for the given property path
|
String[]
|
getPropertyColumnNames(int i)
Get the result set column names mapped for this property (properties of this class, only).
|
int
|
getPropertyColumnSpan(int i)
|
boolean[][]
|
getPropertyColumnUpdateable()
|
String[]
|
getPropertyColumnWriters(int i)
|
int
|
getPropertyIndex(String propertyName)
Get the property number of the unique key property
|
ValueInclusion[]
|
getPropertyInsertGenerationInclusions()
Which of the properties of this class are database generated values on insert?
|
boolean[]
|
getPropertyInsertability()
Get the "insertability" of the properties of this class
(does the property appear in an SQL INSERT)
|
boolean[]
|
getPropertyLaziness()
Get the "laziness" of the properties of this class
|
String[]
|
getPropertyNames()
Get the names of the class properties - doesn't have to be the names of the
actual Java properties (used for XML generation only)
|
boolean[]
|
getPropertyNullability()
Get the nullability of the properties of this class
|
boolean[]
|
getPropertySelectable()
|
int
|
getPropertySpan()
|
String[]
|
getPropertySubclassNames()
|
abstract
int[]
|
getPropertyTableNumbers()
|
abstract
int[]
|
getPropertyTableNumbersInSelect()
|
Type
|
getPropertyType(String propertyName)
Get the type of a particular property by name.
|
Type[]
|
getPropertyTypes()
Get the Hibernate types of the class properties
|
boolean[]
|
getPropertyUniqueness()
|
ValueInclusion[]
|
getPropertyUpdateGenerationInclusions()
Which of the properties of this class are database generated values on update?
|
boolean[]
|
getPropertyUpdateability(Object entity, EntityMode entityMode)
Which properties appear in the SQL update?
(Initialized, updateable ones!)
|
boolean[]
|
getPropertyUpdateability()
Get the "updateability" of the properties of this class
(does the property appear in an SQL UPDATE)
|
Object
|
getPropertyValue(Object object, int i, EntityMode entityMode)
Get the value of a particular property
|
Object
|
getPropertyValue(Object object, String propertyName, EntityMode entityMode)
Get the value of a particular property
|
Object[]
|
getPropertyValues(Object object, EntityMode entityMode)
Return the (loaded) values of the mapped properties of the object (not including backrefs)
|
Object[]
|
getPropertyValuesToInsert(Object object, Map mergeMap, SessionImplementor session)
Return the values of the insertable properties of the object (including backrefs)
|
boolean[]
|
getPropertyVersionability()
Get the "versionability" of the properties of this class
(is the property optimistic-locked)
|
Serializable[]
|
getQuerySpaces()
Returns an array of objects that identify spaces in which properties of
this entity are persisted, for instances of this class and its subclasses.
|
String
|
getRootEntityName()
Returns an object that identifies the space in which identifiers of
this entity hierarchy are unique.
|
String
|
getRootTableAlias(String drivingAlias)
Get the SQL alias this persister would use for the root table
given the passed driving alias.
|
String[]
|
getRootTableIdentifierColumnNames()
Get the names of columns on the root table used to persist the identifier.
|
String[]
|
getRootTableKeyColumnNames()
The names of the primary key columns in the root table.
|
String
|
getRootTableName()
Locks are always applied to the "root table".
|
String[]
|
getSQLDeleteStrings()
|
String
|
getSQLIdentityInsertString()
The query that inserts a row, letting the database generate an id
|
String[]
|
getSQLInsertStrings()
|
String
|
getSQLLazySelectString()
|
String[]
|
getSQLLazyUpdateByRowIdStrings()
|
String[]
|
getSQLLazyUpdateStrings()
|
String
|
getSQLSnapshotSelectString()
|
String[]
|
getSQLUpdateByRowIdStrings()
|
String[]
|
getSQLUpdateStrings()
|
String
|
getSQLWhereString(String alias)
|
String
|
getSelectByUniqueKeyString(String propertyName)
Get a SQL select string that performs a select based on a unique
key determined by the given property name).
|
String
|
getSequentialSelect(String entityName)
|
String[]
|
getSubclassColumnAliasClosure()
|
String[]
|
getSubclassColumnClosure()
|
boolean[]
|
getSubclassColumnLazyiness()
|
String[]
|
getSubclassColumnReaderTemplateClosure()
|
abstract
int[]
|
getSubclassColumnTableNumberClosure()
|
EntityPersister
|
getSubclassEntityPersister(Object instance, SessionFactoryImplementor factory, EntityMode entityMode)
A request has already identified the entity-name of this persister as the mapping for the given instance.
|
String[]
|
getSubclassFormulaAliasClosure()
|
String[]
|
getSubclassFormulaClosure()
|
boolean[]
|
getSubclassFormulaLazyiness()
|
abstract
int[]
|
getSubclassFormulaTableNumberClosure()
|
String[]
|
getSubclassFormulaTemplateClosure()
|
String[]
|
getSubclassPropertyColumnAliases(String propertyName, String suffix)
Return the column alias names used to persist/query the named property of the class or a subclass (optional operation).
|
String[][]
|
getSubclassPropertyColumnNameClosure()
|
String[]
|
getSubclassPropertyColumnNames(int i)
Return the column names used to persist the numbered property of the
class or a subclass.
|
String[]
|
getSubclassPropertyColumnNames(String propertyName)
Return the column names used to persist/query the named property of the class or a subclass (optional operation).
|
String[][]
|
getSubclassPropertyColumnReaderClosure()
|
String[][]
|
getSubclassPropertyColumnReaderTemplateClosure()
|
Queryable.Declarer
|
getSubclassPropertyDeclarer(String propertyPath)
Determine whether the given property is declared by our
mapped class, our super class, or one of our subclasses...
|
String[][]
|
getSubclassPropertyFormulaTemplateClosure()
|
String
|
getSubclassPropertyName(int i)
Get the name of the numbered property of the class or a subclass.
|
String[]
|
getSubclassPropertyNameClosure()
|
String[]
|
getSubclassPropertySubclassNameClosure()
|
abstract
int
|
getSubclassPropertyTableNumber(int i)
|
int
|
getSubclassPropertyTableNumber(String propertyPath)
Warning:
When there are duplicated property names in the subclasses
of the class, this method may return the wrong table
number for the duplicated subclass property (note that
SingleTableEntityPersister defines an overloaded form
which takes the entity name.
|
Type
|
getSubclassPropertyType(int i)
Get the type of the numbered property of the class or a subclass.
|
Type[]
|
getSubclassPropertyTypeClosure()
|
abstract
String[]
|
getSubclassTableKeyColumns(int j)
|
abstract
String
|
getSubclassTableName(int j)
Get the name of the table with the given index from the internal
array.
|
abstract
int
|
getSubclassTableSpan()
|
abstract
String
|
getTableName(int j)
|
abstract
int
|
getTableSpan()
|
boolean[]
|
getTableUpdateNeeded(int[] dirtyProperties, boolean hasDirtyCollection)
Decide which tables need to be updated.
|
String
|
getTemporaryIdTableDDL()
Get the appropriate DDL command for generating the temporary table to
be used to (potentially) store id values when performing bulk update/deletes.
|
String
|
getTemporaryIdTableName()
Get the name of the temporary table to be used to (potentially) store id values
when performing bulk update/deletes.
|
EntityTuplizer
|
getTuplizer(EntityMode entityMode)
|
EntityTuplizer
|
getTuplizer(SessionImplementor session)
|
Type
|
getType()
Get the type of the thing containing the properties
|
DiscriminatorMetadata
|
getTypeDiscriminatorMetadata()
Retrieve the information needed to properly deal with this entity's discriminator
in a query.
|
Object
|
getVersion(Object object, EntityMode entityMode)
Get the version number (or timestamp) from the object's version property (or return null if not versioned)
|
String
|
getVersionColumnName()
For versioned entities, get the name of the column (again, expected on the
root table) used to store the version values.
|
Comparator
|
getVersionComparator()
Get the comparator used to compare two different version values.
|
int
|
getVersionProperty()
If isVersioned() , then what is the index of the property
holding the locking value.
|
String
|
getVersionSelectString()
|
VersionType
|
getVersionType()
If isVersioned() , then what is the type of the property
holding the locking value.
|
String
|
getVersionedTableName()
|
EntityMode
|
guessEntityMode(Object object)
Try to discover the entity mode from the entity instance
|
boolean
|
hasCache()
Does this class have a cache.
|
boolean
|
hasCascades()
Determine whether this entity has any non-none cascading.
|
boolean
|
hasCollections()
Determine whether this entity contains references to persistent collections.
|
boolean
|
hasEmbeddedCompositeIdentifier()
|
boolean
|
hasFormulaProperties()
|
boolean
|
hasIdentifierProperty()
Determine whether the entity has a particular property holding
the identifier value.
|
boolean
|
hasInsertGeneratedProperties()
Does this entity define any properties as being database generated on insert?
|
boolean
|
hasLazyProperties()
Determine whether this entity defines any lazy properties (ala
bytecode instrumentation).
|
boolean
|
hasMutableProperties()
Determine whether any properties of this entity are considered mutable.
|
boolean
|
hasNaturalIdentifier()
Determine whether this entity defines a natural identifier.
|
boolean
|
hasProxy()
Determine whether this entity supports dynamic proxies.
|
boolean
|
hasRowId()
Does the result set contain rowids?
|
boolean
|
hasSequentialSelect()
|
boolean
|
hasSubclasses()
Does this entity have mapped subclasses?
|
boolean
|
hasSubselectLoadableCollections()
Determine whether this entity contains references to persistent collections
which are fetchable by subselect?
|
boolean
|
hasUninitializedLazyProperties(Object object, EntityMode entityMode)
Does the given instance have any uninitialized lazy properties?
|
boolean
|
hasUpdateGeneratedProperties()
Does this entity define any properties as being database generated on update?
|
boolean
|
hasWhere()
|
Object[]
|
hydrate(ResultSet rs, Serializable id, Object object, Loadable rootLoadable, String[][] suffixedPropertyColumns, boolean allProperties, SessionImplementor session)
Unmarshall the fields of a persistent instance from a result set,
without resolving associations or collections.
|
String
|
identifierSelectFragment(String name, String suffix)
Given a query alias and an identifying suffix, render the intentifier select fragment.
|
boolean
|
implementsLifecycle(EntityMode entityMode)
Does the class implement the Lifecycle interface.
|
boolean
|
implementsValidatable(EntityMode entityMode)
Does the class implement the Validatable interface.
|
void
|
initLockers()
|
void
|
initPropertyPaths(Mapping mapping)
|
void
|
initSubclassPropertyAliasesMap(PersistentClass model)
Must be called by subclasses, at the end of their constructors
|
Object
|
initializeLazyProperty(String fieldName, Object entity, SessionImplementor session)
Initialize the property, and return its new value
|
void
|
insert(Serializable id, Object[] fields, boolean[] notNull, int j, String sql, Object object, SessionImplementor session)
Perform an SQL INSERT.
|
void
|
insert(Serializable id, Object[] fields, Object object, SessionImplementor session)
Persist an instance
|
Serializable
|
insert(Object[] fields, boolean[] notNull, String sql, Object object, SessionImplementor session)
Perform an SQL INSERT, and then retrieve a generated identifier.
|
Serializable
|
insert(Object[] fields, Object object, SessionImplementor session)
Persist an instance, using a natively generated identifier (optional operation)
|
Object
|
instantiate(Serializable id, EntityMode entityMode)
Create a class instance initialized with the given identifier
|
Object
|
instantiate(Serializable id, SessionImplementor session)
Create a class instance initialized with the given identifier
|
boolean
|
isAbstract()
Is this an abstract class?
|
boolean
|
isBatchLoadable()
Is batch loading enabled?
|
boolean
|
isBatchable()
|
boolean
|
isCacheInvalidationRequired()
We can't immediately add to the cache if we have formulas
which must be evaluated, or if we have the possibility of
two concurrent updates to the same item being merged on
the database.
|
abstract
boolean
|
isClassOrSuperclassTable(int j)
|
boolean
|
isCollection()
Is this instance actually a CollectionPersister?
|
boolean
|
isDefinedOnSubclass(int i)
Is this property defined on a subclass of the mapped class.
|
boolean
|
isDeleteCallable(int j)
|
boolean
|
isExplicitPolymorphism()
Is this class explicit polymorphism only?
|
boolean
|
isIdentifierAssignedByInsert()
Are identifiers of this entity assigned known before the insert execution?
Or, are they generated (in the database) by the insert execution.
|
boolean
|
isInherited()
Determine whether the entity is inherited one or more other entities.
|
boolean
|
isInsertCallable(int j)
|
boolean
|
isInstance(Object object, EntityMode entityMode)
Is the given object an instance of this entity?
|
boolean
|
isInstrumented(EntityMode entityMode)
Has the class actually been bytecode instrumented?
|
boolean
|
isInverseSubclassTable(int j)
|
boolean
|
isInverseTable(int j)
|
boolean
|
isLazyPropertiesCacheable()
Should lazy properties of this entity be cached?
|
boolean
|
isMultiTable()
Is the inheritence hierarchy described by this persister contained across
multiple tables?
|
boolean
|
isMutable()
Determine whether instances of this entity are considered mutable.
|
boolean
|
isNullableSubclassTable(int j)
|
boolean
|
isNullableTable(int j)
|
boolean
|
isPolymorphic()
|
abstract
boolean
|
isPropertyOfTable(int property, int j)
|
boolean
|
isSelectBeforeUpdateRequired()
Is select snapshot before update enabled?
|
boolean
|
isSubclassEntityName(String entityName)
Determine whether the given name represents a subclass entity
(or this entity itself) of the entity mapped by this persister.
|
boolean
|
isSubclassPropertyDeferred(String propertyName, String entityName)
|
boolean
|
isSubclassPropertyNullable(int i)
Is the numbered property of the class of subclass nullable?
|
boolean
|
isSubclassTableLazy(int j)
|
boolean
|
isSubclassTableSequentialSelect(int j)
|
abstract
boolean
|
isTableCascadeDeleteEnabled(int j)
|
Boolean
|
isTransient(Object entity, SessionImplementor session)
Is this a new transient instance?
|
boolean
|
isUpdateCallable(int j)
|
boolean
|
isVersionPropertyGenerated()
Does this entity contain a version property that is defined
to be database generated?
|
boolean
|
isVersionPropertyInsertable()
Is the version property included in insert statements?
|
boolean
|
isVersioned()
Determine whether optimistic locking by column is enabled for this
entity.
|
Object
|
load(Serializable id, Object optionalObject, LockOptions lockOptions, SessionImplementor session)
Load an instance using either the forUpdateLoader or the outer joining loader,
depending upon the value of the lock parameter
|
Object
|
load(Serializable id, Object optionalObject, LockMode lockMode, SessionImplementor session)
Load an instance using either the forUpdateLoader or the outer joining loader,
depending upon the value of the lock parameter
|
Object
|
loadByUniqueKey(String propertyName, Object uniqueKey, SessionImplementor session)
Load an instance of the persistent class, by a unique key other
than the primary key.
|
void
|
lock(Serializable id, Object version, Object object, LockOptions lockOptions, SessionImplementor session)
Do a version check (optional operation)
|
void
|
lock(Serializable id, Object version, Object object, LockMode lockMode, SessionImplementor session)
Do a version check (optional operation)
|
void
|
logStaticSQL()
|
String
|
oneToManyFilterFragment(String alias)
|
final
int
|
optimisticLockMode()
|
void
|
postConstruct(Mapping mapping)
|
void
|
postInstantiate()
Finish the initialization of this object.
|
void
|
processInsertGeneratedProperties(Serializable id, Object entity, Object[] state, SessionImplementor session)
Perform a select to retrieve the values of any generated properties
back from the database, injecting these generated values into the
given entity as well as writing this state to the
PersistenceContext .
|
void
|
processUpdateGeneratedProperties(Serializable id, Object entity, Object[] state, SessionImplementor session)
Perform a select to retrieve the values of any generated properties
back from the database, injecting these generated values into the
given entity as well as writing this state to the
PersistenceContext .
|
String
|
propertySelectFragment(String tableAlias, String suffix, boolean allProperties)
Given a query alias and an identifying suffix, render the property select fragment.
|
SelectFragment
|
propertySelectFragmentFragment(String tableAlias, String suffix, boolean allProperties)
|
void
|
registerAffectingFetchProfile(String fetchProfileName)
Register the name of a fetch profile determined to have an affect on the
underlying loadable in regards to the fact that the underlying load SQL
needs to be adjust when the given fetch profile is enabled.
|
String
|
renderSelect(int[] tableNumbers, int[] columnNumbers, int[] formulaNumbers)
|
void
|
resetIdentifier(Object entity, Serializable currentId, Object currentVersion, SessionImplementor session)
Set the identifier and version of the given instance back to its "unsaved" value.
|
void
|
resetIdentifier(Object entity, Serializable currentId, Object currentVersion, EntityMode entityMode)
Set the identifier and version of the given instance back to its "unsaved" value.
|
String
|
selectFragment(String alias, String suffix)
Generate a list of collection index, key and element columns
|
final
String
|
selectFragment(Joinable rhs, String rhsAlias, String lhsAlias, String entitySuffix, String collectionSuffix, boolean includeCollectionColumns)
All columns to select, when loading.
|
void
|
setIdentifier(Object entity, Serializable id, SessionImplementor session)
Inject the identifier value into the given entity.
|
void
|
setIdentifier(Object entity, Serializable id, EntityMode entityMode)
Inject the identifier value into the given entity.
|
void
|
setPropertyValue(Object object, String propertyName, Object value, EntityMode entityMode)
Set the value of a particular (named) property
|
void
|
setPropertyValue(Object object, int i, Object value, EntityMode entityMode)
Set the value of a particular property
|
void
|
setPropertyValues(Object object, Object[] values, EntityMode entityMode)
Set the given values to the mapped properties of the given object
|
String[]
|
toColumns(String name, int i)
Given the number of a property of a subclass, and a table alias,
return the aliased column names.
|
String[]
|
toColumns(String alias, String propertyName)
Given a query alias and a property path, return the qualified
column name
|
String[]
|
toColumns(String propertyName)
Given a property path, return the corresponding column name(s).
|
String
|
toString()
|
Type
|
toType(String propertyName)
Given a component path expression, get the type of the property
|
boolean
|
update(Serializable id, Object[] fields, Object[] oldFields, Object rowId, boolean[] includeProperty, int j, Object oldVersion, Object object, String sql, SessionImplementor session)
|
void
|
update(Serializable id, Object[] fields, int[] dirtyFields, boolean hasDirtyCollection, Object[] oldFields, Object oldVersion, Object object, Object rowId, SessionImplementor session)
Update an object
|
void
|
updateOrInsert(Serializable id, Object[] fields, Object[] oldFields, Object rowId, boolean[] includeProperty, int j, Object oldVersion, Object object, String sql, SessionImplementor session)
Perform an SQL UPDATE or SQL INSERT
|
boolean
|
useDynamicInsert()
|
boolean
|
useDynamicUpdate()
|
boolean
|
useGetGeneratedKeys()
|
boolean
|
useInsertSelectIdentity()
|
String
|
whereJoinFragment(String alias, boolean innerJoin, boolean includeSubclasses)
Get the where clause part of any joins
(optional operation)
|