java.lang.Object | |
↳ | org.hibernate.persister.entity.AbstractEntityPersister |
Known Direct Subclasses |
Basic functionality for persisting an entity via JDBC through either generated or custom SQL
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AbstractEntityPersister.InclusionChecker |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ENTITY_CLASS |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.hibernate.persister.entity.EntityPersister
| |||||||||||
From interface
org.hibernate.persister.entity.Loadable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
customSQLDelete | |||||||||||
customSQLInsert | |||||||||||
customSQLUpdate | |||||||||||
deleteCallable | |||||||||||
deleteResultCheckStyles | |||||||||||
insertCallable | |||||||||||
insertResultCheckStyles | |||||||||||
propertyMapping | |||||||||||
rowIdName | |||||||||||
updateCallable | |||||||||||
updateResultCheckStyles |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.hibernate.intercept.LazyPropertyInitializer
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called just after the entities properties have been initialized
| |||||||||||
Called just after the entity has been reassociated with the session
| |||||||||||
Determine whether detached instances of this entity carry their own
identifier value.
| |||||||||||
Very, very, very ugly...
| |||||||||||
Very, very, very ugly...
| |||||||||||
How many properties are there, for this class and all subclasses?
| |||||||||||
Create a new proxy instance
| |||||||||||
Delete an object
| |||||||||||
Get the where clause filter, given a query alias and considering enabled session filters
| |||||||||||
Locate the property-indices of all properties considered to be dirty.
| |||||||||||
Locate the property-indices of all properties considered to be dirty.
| |||||||||||
Get the from clause part of any joins
(optional operation)
| |||||||||||
The alias used for any filter conditions (mapped where-fragments or
enabled-filters).
| |||||||||||
Get the cache (optional operation)
| |||||||||||
Get the cache structure
| |||||||||||
Get the cascade style of this (subclass closure) property
| |||||||||||
Get the user-visible metadata for the class (optional operation)
| |||||||||||
Get the proxy interface that instances of this concrete class will be
cast to (optional operation).
| |||||||||||
Retrieve the version number
| |||||||||||
Get the current database state of the object, in a "hydrated" form, without
resolving identifiers
| |||||||||||
Get the result set aliases used for the identifier columns, given a suffix
| |||||||||||
Retrieve the underlying entity metamodel instance...
| |||||||||||
The entity name which this persister maps.
| |||||||||||
Return the SessionFactory to which this persister "belongs".
| |||||||||||
May this (subclass closure) property be fetched using an SQL outerjoin?
| |||||||||||
Get the identifier of an instance (throw an exception if no identifier property)
| |||||||||||
Get the identifier of an instance (throw an exception if no identifier property)
| |||||||||||
Get the result set aliases used for the identifier columns, given a suffix
| |||||||||||
Get the names of columns used to persist the identifier
| |||||||||||
Determine which identifier generation strategy is used for this entity.
| |||||||||||
Get the name of the identifier property (or return null) - need not return the
name of an actual Java property
| |||||||||||
Get the identifier type
| |||||||||||
Get the database-specific SQL command to retrieve the last
generated IDENTITY value.
| |||||||||||
The columns to join on
| |||||||||||
The persistent class, or null
| |||||||||||
Get the class that this class is mapped as a subclass of -
not necessarily the direct superclass
| |||||||||||
An identifying name; a class name or collection role name.
| |||||||||||
If the entity defines a natural id (
hasNaturalIdentifier() ), which
properties make up the natural id. | |||||||||||
Retrieve the current state of the natural-id properties from the database.
| |||||||||||
Get the result set aliases used for the property columns, given a suffix (properties of this class, only).
| |||||||||||
Get the cascade styles of the properties (optional operation)
| |||||||||||
Get the "checkability" of the properties of this class
(is the property dirty checked, does the cache need
to be updated)
| |||||||||||
Get the column names for the given property path
| |||||||||||
Get the result set column names mapped for this property (properties of this class, only).
| |||||||||||
Get the property number of the unique key property
| |||||||||||
Which of the properties of this class are database generated values on insert?
| |||||||||||
Get the "insertability" of the properties of this class
(does the property appear in an SQL INSERT)
| |||||||||||
Get the "laziness" of the properties of this class
| |||||||||||
Get the names of the class properties - doesn't have to be the names of the
actual Java properties (used for XML generation only)
| |||||||||||
Get the nullability of the properties of this class
| |||||||||||
Get the type of a particular property by name.
| |||||||||||
Get the Hibernate types of the class properties
| |||||||||||
Which of the properties of this class are database generated values on update?
| |||||||||||
Get the "updateability" of the properties of this class
(does the property appear in an SQL UPDATE)
| |||||||||||
Get the value of a particular property
| |||||||||||
Get the value of a particular property
| |||||||||||
Return the (loaded) values of the mapped properties of the object (not including backrefs)
| |||||||||||
Return the values of the insertable properties of the object (including backrefs)
| |||||||||||
Get the "versionability" of the properties of this class
(is the property optimistic-locked)
| |||||||||||
Returns an array of objects that identify spaces in which properties of
this entity are persisted, for instances of this class and its subclasses.
| |||||||||||
Returns an object that identifies the space in which identifiers of
this entity hierarchy are unique.
| |||||||||||
Get the SQL alias this persister would use for the root table
given the passed driving alias.
| |||||||||||
Get the names of columns on the root table used to persist the identifier.
| |||||||||||
The names of the primary key columns in the root table.
| |||||||||||
Locks are always applied to the "root table".
| |||||||||||
Get a SQL select string that performs a select based on a unique
key determined by the given property name).
| |||||||||||
A request has already identified the entity-name of this persister as the mapping for the given instance.
| |||||||||||
Return the column alias names used to persist/query the named property of the class or a subclass (optional operation).
| |||||||||||
Return the column names used to persist the numbered property of the
class or a subclass.
| |||||||||||
Return the column names used to persist/query the named property of the class or a subclass (optional operation).
| |||||||||||
Determine whether the given property is declared by our
mapped class, our super class, or one of our subclasses...
| |||||||||||
Get the name of the numbered property of the class or a subclass.
| |||||||||||
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.
| |||||||||||
Get the type of the numbered property of the class or a subclass.
| |||||||||||
Get the name of the table with the given index from the internal
array.
| |||||||||||
Get the appropriate DDL command for generating the temporary table to
be used to (potentially) store id values when performing bulk update/deletes.
| |||||||||||
Get the name of the temporary table to be used to (potentially) store id values
when performing bulk update/deletes.
| |||||||||||
Get the type of the thing containing the properties
| |||||||||||
Retrieve the information needed to properly deal with this entity's discriminator
in a query.
| |||||||||||
Get the version number (or timestamp) from the object's version property (or return null if not versioned)
| |||||||||||
For versioned entities, get the name of the column (again, expected on the
root table) used to store the version values.
| |||||||||||
Get the comparator used to compare two different version values.
| |||||||||||
If
isVersioned() , then what is the index of the property
holding the locking value. | |||||||||||
If
isVersioned() , then what is the type of the property
holding the locking value. | |||||||||||
Try to discover the entity mode from the entity instance
| |||||||||||
Does this class have a cache.
| |||||||||||
Determine whether this entity has any non-none cascading.
| |||||||||||
Determine whether this entity contains references to persistent collections.
| |||||||||||
Determine whether the entity has a particular property holding
the identifier value.
| |||||||||||
Does this entity define any properties as being database generated on insert?
| |||||||||||
Determine whether this entity defines any lazy properties (ala
bytecode instrumentation).
| |||||||||||
Determine whether any properties of this entity are considered mutable.
| |||||||||||
Determine whether this entity defines a natural identifier.
| |||||||||||
Determine whether this entity supports dynamic proxies.
| |||||||||||
Does the result set contain rowids?
| |||||||||||
Does this entity have mapped subclasses?
| |||||||||||
Determine whether this entity contains references to persistent collections
which are fetchable by subselect?
| |||||||||||
Does the given instance have any uninitialized lazy properties?
| |||||||||||
Does this entity define any properties as being database generated on update?
| |||||||||||
Unmarshall the fields of a persistent instance from a result set,
without resolving associations or collections.
| |||||||||||
Given a query alias and an identifying suffix, render the intentifier select fragment.
| |||||||||||
Does the class implement the Lifecycle interface.
| |||||||||||
Does the class implement the Validatable interface.
| |||||||||||
Initialize the property, and return its new value
| |||||||||||
Persist an instance
| |||||||||||
Persist an instance, using a natively generated identifier (optional operation)
| |||||||||||
Create a class instance initialized with the given identifier
| |||||||||||
Create a class instance initialized with the given identifier
| |||||||||||
Is this an abstract class?
| |||||||||||
Is batch loading enabled?
| |||||||||||
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.
| |||||||||||
Is this instance actually a CollectionPersister?
| |||||||||||
Is this property defined on a subclass of the mapped class.
| |||||||||||
Is this class explicit polymorphism only?
| |||||||||||
Are identifiers of this entity assigned known before the insert execution?
Or, are they generated (in the database) by the insert execution.
| |||||||||||
Determine whether the entity is inherited one or more other entities.
| |||||||||||
Is the given object an instance of this entity?
| |||||||||||
Has the class actually been bytecode instrumented?
| |||||||||||
Should lazy properties of this entity be cached?
| |||||||||||
Is the inheritence hierarchy described by this persister contained across
multiple tables?
| |||||||||||
Determine whether instances of this entity are considered mutable.
| |||||||||||
Is select snapshot before update enabled?
| |||||||||||
Determine whether the given name represents a subclass entity
(or this entity itself) of the entity mapped by this persister.
| |||||||||||
Is the numbered property of the class of subclass nullable?
| |||||||||||
Is this a new transient instance?
| |||||||||||
Does this entity contain a version property that is defined
to be database generated?
| |||||||||||
Is the version property included in insert statements?
| |||||||||||
Determine whether optimistic locking by column is enabled for this
entity.
| |||||||||||
Load an instance using either the forUpdateLoader or the outer joining loader,
depending upon the value of the lock parameter
| |||||||||||
Load an instance using either the forUpdateLoader or the outer joining loader,
depending upon the value of the lock parameter
| |||||||||||
Load an instance of the persistent class, by a unique key other
than the primary key.
| |||||||||||
Do a version check (optional operation)
| |||||||||||
Do a version check (optional operation)
| |||||||||||
Finish the initialization of this object.
| |||||||||||
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 . | |||||||||||
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 . | |||||||||||
Given a query alias and an identifying suffix, render the property select fragment.
| |||||||||||
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.
| |||||||||||
Set the identifier and version of the given instance back to its "unsaved" value.
| |||||||||||
Set the identifier and version of the given instance back to its "unsaved" value.
| |||||||||||
Generate a list of collection index, key and element columns
| |||||||||||
All columns to select, when loading.
| |||||||||||
Inject the identifier value into the given entity.
| |||||||||||
Inject the identifier value into the given entity.
| |||||||||||
Set the value of a particular (named) property
| |||||||||||
Set the value of a particular property
| |||||||||||
Set the given values to the mapped properties of the given object
| |||||||||||
Given the number of a property of a subclass, and a table alias,
return the aliased column names.
| |||||||||||
Given a query alias and a property path, return the qualified
column name
| |||||||||||
Given a property path, return the corresponding column name(s).
| |||||||||||
Given a component path expression, get the type of the property
| |||||||||||
Update an object
| |||||||||||
Get the where clause part of any joins
(optional operation)
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.hibernate.cache.OptimisticCacheSource
| |||||||||||
From interface
org.hibernate.id.PostInsertIdentityPersister
| |||||||||||
From interface
org.hibernate.intercept.LazyPropertyInitializer
| |||||||||||
From interface
org.hibernate.metadata.ClassMetadata
| |||||||||||
From interface
org.hibernate.persister.entity.EntityPersister
| |||||||||||
From interface
org.hibernate.persister.entity.Joinable
| |||||||||||
From interface
org.hibernate.persister.entity.Loadable
| |||||||||||
From interface
org.hibernate.persister.entity.Lockable
| |||||||||||
From interface
org.hibernate.persister.entity.OuterJoinLoadable
| |||||||||||
From interface
org.hibernate.persister.entity.PropertyMapping
| |||||||||||
From interface
org.hibernate.persister.entity.Queryable
| |||||||||||
From interface
org.hibernate.persister.entity.SQLLoadable
| |||||||||||
From interface
org.hibernate.persister.entity.UniqueKeyLoadable
|
HibernateException |
---|
Called just after the entities properties have been initialized
Called just after the entity has been reassociated with the session
Determine whether detached instances of this entity carry their own identifier value.
The other option is the deprecated feature where users could supply the id during session calls.hasIdentifierProperty()
or
(2) the identifier is an embedded composite identifier; false otherwise.
Very, very, very ugly...
Very, very, very ugly...
How many properties are there, for this class and all subclasses?
Create a new proxy instance
HibernateException |
---|
Delete an object
HibernateException |
---|
Get the where clause filter, given a query alias and considering enabled session filters
MappingException |
---|
Locate the property-indices of all properties considered to be dirty.
currentState | The current state of the entity (the state to be checked). |
---|---|
previousState | The previous state of the entity (the state to be checked against). |
entity | The entity for which we are checking state dirtiness. |
session | The session in which the check is ccurring. |
HibernateException |
---|
Locate the property-indices of all properties considered to be dirty.
old | The old state of the entity. |
---|---|
current | The current state of the entity. |
entity | The entity for which we are checking state modification. |
session | The session in which the check is ccurring. |
HibernateException |
---|
Get the from clause part of any joins (optional operation)
The alias used for any filter conditions (mapped where-fragments or enabled-filters).
This may or may not be different from the root alias depending upon the inheritence mapping strategy.rootAlias | The root alias |
---|
Get the cascade style of this (subclass closure) property
Get the user-visible metadata for the class (optional operation)
Get the proxy interface that instances of this concrete class will be cast to (optional operation).
Retrieve the version number
HibernateException |
---|
Get the current database state of the object, in a "hydrated" form, without resolving identifiers
HibernateException |
---|
Get the result set aliases used for the identifier columns, given a suffix
Retrieve the underlying entity metamodel instance...
The entity name which this persister maps.
Return the SessionFactory to which this persister "belongs".
May this (subclass closure) property be fetched using an SQL outerjoin?
Get the identifier of an instance (throw an exception if no identifier property)
HibernateException |
---|
Get the identifier of an instance (throw an exception if no identifier property)
entity | The entity for which to get the identifier |
---|---|
session | The session from which the request originated |
Get the result set aliases used for the identifier columns, given a suffix
Determine which identifier generation strategy is used for this entity.
HibernateException |
---|
Get the name of the identifier property (or return null) - need not return the name of an actual Java property
Get the database-specific SQL command to retrieve the last generated IDENTITY value.
Get the class that this class is mapped as a subclass of - not necessarily the direct superclass
If the entity defines a natural id (hasNaturalIdentifier()
), which
properties make up the natural id.
Retrieve the current state of the natural-id properties from the database.
id | The identifier of the entity for which to retrieve the natural-id values. |
---|---|
session | The session from which the request originated. |
HibernateException |
---|
Get the result set aliases used for the property columns, given a suffix (properties of this class, only).
Get the cascade styles of the properties (optional operation)
Get the "checkability" of the properties of this class (is the property dirty checked, does the cache need to be updated)
Get the column names for the given property path
Get the result set column names mapped for this property (properties of this class, only).
Get the property number of the unique key property
Which of the properties of this class are database generated values on insert?
Get the "insertability" of the properties of this class (does the property appear in an SQL INSERT)
Get the "laziness" of the properties of this class
Get the names of the class properties - doesn't have to be the names of the actual Java properties (used for XML generation only)
Get the nullability of the properties of this class
Get the type of a particular property by name.
propertyName | The name of the property for which to retrieve the type. |
---|
MappingException |
---|
Which of the properties of this class are database generated values on update?
Get the "updateability" of the properties of this class (does the property appear in an SQL UPDATE)
Get the value of a particular property
HibernateException |
---|
Get the value of a particular property
HibernateException |
---|
Return the (loaded) values of the mapped properties of the object (not including backrefs)
HibernateException |
---|
Return the values of the insertable properties of the object (including backrefs)
HibernateException |
---|
Get the "versionability" of the properties of this class (is the property optimistic-locked)
Returns an array of objects that identify spaces in which properties of this entity are persisted, for instances of this class and its subclasses.
Much likegetPropertySpaces()
, except that here we include subclass
entity spaces.Returns an object that identifies the space in which identifiers of this entity hierarchy are unique. Might be a table name, a JNDI URL, etc.
Get the SQL alias this persister would use for the root table given the passed driving alias.
drivingAlias | The driving alias; or the alias for the table mapped by this persister in the hierarchy. |
---|
Get the names of columns on the root table used to persist the identifier.
The names of the primary key columns in the root table.
Locks are always applied to the "root table".
Get a SQL select string that performs a select based on a unique key determined by the given property name).
propertyName | The name of the property which maps to the column(s) to use in the select statement restriction. |
---|
A request has already identified the entity-name of this persister as the mapping for the given instance. However, we still need to account for possible subclassing and potentially re-route to the more appropriate persister.
For example, a request names Animal as the entity-name which gets resolved to this persister. But the actual instance is really an instance of Cat which is a subclass of Animal. So, here the Animal persister is being asked to return the persister specific to Cat. It is also possible that the instance is actually an Animal instance in the above example in which case we would return this from this method.instance | The entity instance |
---|---|
factory | Reference to the SessionFactory |
entityMode | The entity mode represented by the entity instance. |
Return the column alias names used to persist/query the named property of the class or a subclass (optional operation).
Return the column names used to persist the numbered property of the class or a subclass.
Return the column names used to persist/query the named property of the class or a subclass (optional operation).
Determine whether the given property is declared by our mapped class, our super class, or one of our subclasses...
Note: the method is called 'subclass property...' simply for consistency sake (e.g.getSubclassPropertyTableNumber(String)
propertyPath | The property name. |
---|
Get the name of the numbered property of the class or a subclass.
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.
propertyPath | The name of the property. |
---|
Get the type of the numbered property of the class or a subclass.
Get the name of the table with the given index from the internal array.
j | The index into the internal array. |
---|
Get the appropriate DDL command for generating the temporary table to be used to (potentially) store id values when performing bulk update/deletes.
Get the name of the temporary table to be used to (potentially) store id values when performing bulk update/deletes.
Retrieve the information needed to properly deal with this entity's discriminator in a query.
Get the version number (or timestamp) from the object's version property (or return null if not versioned)
HibernateException |
---|
For versioned entities, get the name of the column (again, expected on the root table) used to store the version values.
Get the comparator used to compare two different version values.
May return null ifisVersioned()
returns false.If isVersioned()
, then what is the index of the property
holding the locking value.
If isVersioned()
, then what is the type of the property
holding the locking value.
Try to discover the entity mode from the entity instance
Does this class have a cache.
Determine whether this entity has any non-none cascading.
Determine whether this entity contains references to persistent collections.
Determine whether the entity has a particular property holding the identifier value.
Does this entity define any properties as being database generated on insert?
Determine whether this entity defines any lazy properties (ala bytecode instrumentation).
Determine whether any properties of this entity are considered mutable.
Determine whether this entity defines a natural identifier.
Determine whether this entity supports dynamic proxies.
Does the result set contain rowids?
Does this entity have mapped subclasses?
Determine whether this entity contains references to persistent collections which are fetchable by subselect?
Does the given instance have any uninitialized lazy properties?
Does this entity define any properties as being database generated on update?
Unmarshall the fields of a persistent instance from a result set, without resolving associations or collections. Question: should this really be here, or should it be sent back to Loader?
HibernateException | |
---|---|
SQLException |
Given a query alias and an identifying suffix, render the intentifier select fragment.
Does the class implement the Lifecycle interface.
Does the class implement the Validatable interface.
Initialize the property, and return its new value
HibernateException |
---|
Persist an instance
HibernateException |
---|
Persist an instance, using a natively generated identifier (optional operation)
HibernateException |
---|
Create a class instance initialized with the given identifier
HibernateException |
---|
Create a class instance initialized with the given identifier
id | The identifier value to use (may be null to represent no value) |
---|---|
session | The session from which the request originated. |
HibernateException |
---|
Is this an abstract class?
Is batch loading enabled?
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. This can happen if (a) the item is not versioned and either (b) we have dynamic update enabled or (c) we have multiple tables holding the state of the item.
Is this instance actually a CollectionPersister?
Is this property defined on a subclass of the mapped class.
Is this class explicit polymorphism only?
Are identifiers of this entity assigned known before the insert execution? Or, are they generated (in the database) by the insert execution.
Determine whether the entity is inherited one or more other entities. In other words, is this entity a subclass of other entities.
Is the given object an instance of this entity?
Has the class actually been bytecode instrumented?
Should lazy properties of this entity be cached?
Is the inheritence hierarchy described by this persister contained across multiple tables?
Determine whether instances of this entity are considered mutable.
Is select snapshot before update enabled?
Determine whether the given name represents a subclass entity (or this entity itself) of the entity mapped by this persister.
entityName | The entity name to be checked. |
---|
Is the numbered property of the class of subclass nullable?
Is this a new transient instance?
HibernateException |
---|
Does this entity contain a version property that is defined to be database generated?
Is the version property included in insert statements?
Determine whether optimistic locking by column is enabled for this entity.
Load an instance using either the forUpdateLoader or the outer joining loader, depending upon the value of the lock parameter
HibernateException |
---|
Load an instance using either the forUpdateLoader or the outer joining loader, depending upon the value of the lock parameter
Load an instance of the persistent class, by a unique key other than the primary key.
HibernateException |
---|
Do a version check (optional operation)
HibernateException |
---|
Do a version check (optional operation)
HibernateException |
---|
Finish the initialization of this object.
Called only once perSessionFactory
lifecycle,
after all entity persisters have been instantiated.MappingException |
---|
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
.
id | The entity's id value. |
---|---|
entity | The entity for which to get the state. |
session | The 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
.
id | The entity's id value. |
---|---|
entity | The entity for which to get the state. |
session | The session |
Given a query alias and an identifying suffix, render the property select fragment.
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.
fetchProfileName | The name of the profile affecting this. |
---|
Set the identifier and version of the given instance back to its "unsaved" value.
entity | The entity instance |
---|---|
currentId | The currently assigned identifier value. |
currentVersion | The currently assigned version value. |
session | The session from which the request originated. |
Set the identifier and version of the given instance back to its "unsaved" value.
entity | The entity instance |
---|---|
currentId | The currently assigned identifier value. |
currentVersion | The currently assigned version value. |
entityMode | The entity mode represented by the entity instance. |
Generate a list of collection index, key and element columns
All columns to select, when loading.
Inject the identifier value into the given entity.
entity | The entity to inject with the identifier value. |
---|---|
id | The value to be injected as the identifier. |
session | The session from which is requests originates |
Inject the identifier value into the given entity.
Has no effect if the entity does not define an identifier propertyentity | The entity to inject with the identifier value. |
---|---|
id | The value to be injected as the identifier. |
entityMode | The entity mode |
HibernateException |
---|
Set the value of a particular (named) property
HibernateException |
---|
Set the value of a particular property
HibernateException |
---|
Set the given values to the mapped properties of the given object
HibernateException |
---|
Given the number of a property of a subclass, and a table alias, return the aliased column names.
Given a query alias and a property path, return the qualified column name
QueryException |
---|
Given a property path, return the corresponding column name(s).
QueryException |
---|
Given a component path expression, get the type of the property
QueryException |
---|
Update an object
HibernateException |
---|
Get the where clause part of any joins (optional operation)
HibernateException |
---|
MappingException |
---|
MappingException |
---|
HibernateException | |
---|---|
SQLException |
Marshall the fields of a persistent instance to a prepared statement
HibernateException | |
---|---|
SQLException |
Perform an SQL DELETE
HibernateException |
---|
Generate the SQL that deletes a row by id (and version)
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.
includeProperty | indices of the properties to include in the insert statement. |
---|
Generate the SQL that inserts a row
Generate the SQL that selects the version number by id
Generate the SQL that updates a row by id (and version)
Transform the array of property indexes to an array of booleans, true when the property is insertable and non-null
Transform the array of property indexes to an array of booleans, true when the property is dirty
Which properties appear in the SQL update? (Initialized, updateable ones!)
The query that inserts a row, letting the database generate an id
Decide which tables need to be updated.
The return here is an array of boolean values with each index corresponding to a given table in the scope of this persister.dirtyProperties | The indices of all the entity properties considered dirty. |
---|---|
hasDirtyCollection | Whether any collections owned by the entity which were considered dirty. |
Must be called by subclasses, at the end of their constructors
MappingException |
---|
Perform an SQL INSERT.
This for is used for all non-root tables as well as the root table in cases where the identifier value is known before the insert occurs.HibernateException |
---|
Perform an SQL INSERT, and then retrieve a generated identifier.
This form is used for PostInsertIdentifierGenerator-style ids (IDENTITY, select, etc).HibernateException |
---|
HibernateException |
---|
Perform an SQL UPDATE or SQL INSERT
HibernateException |
---|