Object
|
assemble(Serializable cached, SessionImplementor session, Object owner)
Reconstruct the object from its cached "disassembled" state.
|
int
|
compare(Object x, Object y, EntityMode entityMode)
Perform a Comparator style comparison between values
|
boolean
|
contains(Object collection, Object childObject, SessionImplementor session)
|
Object
|
deepCopy(Object value, EntityMode entityMode, SessionFactoryImplementor factory)
Return a deep copy of the persistent state, stopping at entities and at
collections.
|
Serializable
|
disassemble(Object value, SessionImplementor session, Object owner)
Return a cacheable "disassembled" representation of the object.
|
Object
|
fromXMLNode(Node xml, Mapping factory)
Parse the XML representation of an instance.
|
String
|
getAssociatedEntityName(SessionFactoryImplementor factory)
Get the entity name of the associated entity
|
Joinable
|
getAssociatedJoinable(SessionFactoryImplementor factory)
Get the "persister" for this association - a class or
collection persister
|
Object
|
getCollection(Serializable key, SessionImplementor session, Object owner)
instantiate a collection wrapper (called when loading an object)
|
int
|
getColumnSpan(Mapping session)
How many columns are used to persist this type.
|
final
Type
|
getElementType(SessionFactoryImplementor factory)
Get the Hibernate type of the collection elements
|
Iterator
|
getElementsIterator(Object collection)
Get an iterator over the element set of the collection in POJO mode
|
Iterator
|
getElementsIterator(Object collection, SessionImplementor session)
Get an iterator over the element set of the collection, which may not yet be wrapped
|
ForeignKeyDirection
|
getForeignKeyDirection()
Get the foreign key directionality of this association
|
int
|
getHashCode(Object x, EntityMode entityMode)
Get a hash code, consistent with persistence "equality".
|
Serializable
|
getIdOfOwnerOrNull(Serializable key, SessionImplementor session)
Get the id value from the owning entity key, usually the same as the key, but might be some
other property, in the case of property-ref
|
Serializable
|
getKeyOfOwner(Object owner, SessionImplementor session)
Get the key value from the owning entity instance, usually the identifier, but might be some
other unique key, in the case of property-ref
|
String
|
getLHSPropertyName()
Get the name of a property in the owning entity
that provides the join key (null if the identifier)
|
String
|
getName()
Returns the abbreviated name of the type.
|
String
|
getOnCondition(String alias, SessionFactoryImplementor factory, Map enabledFilters)
Get the "filtering" SQL fragment that is applied in the
SQL on clause, in addition to the usual join condition
|
String
|
getRHSUniqueKeyPropertyName()
The name of a unique property of the associated entity
that provides the join key (null if the identifier of
an entity, or key of a collection)
|
String
|
getRole()
|
boolean
|
hasHolder(EntityMode entityMode)
|
Object
|
hydrate(ResultSet rs, String[] name, SessionImplementor session, Object owner)
Retrieve an instance of the mapped class, or the identifier of an entity or collection,
from a JDBC resultset.
|
Object
|
indexOf(Object collection, Object element)
|
boolean
|
initializeImmediately(EntityMode entityMode)
|
abstract
PersistentCollection
|
instantiate(SessionImplementor session, CollectionPersister persister, Serializable key)
Instantiate an uninitialized collection wrapper or holder.
|
abstract
Object
|
instantiate(int anticipatedSize)
Instantiate an empty instance of the "underlying" collection (not a wrapper),
but with the given anticipated size (i.e.
|
Object
|
instantiateResult(Object original)
Instantiate a new "underlying" collection exhibiting the same capacity
charactersitcs and the passed "original".
|
boolean
|
isAlwaysDirtyChecked()
We always need to dirty check the collection because we sometimes
need to incremement version number of owner and also because of
how assemble/disassemble is implemented for uks
|
boolean
|
isArrayType()
|
boolean
|
isAssociationType()
Note: return true because this type is castable to AssociationType.
|
boolean
|
isCollectionType()
|
boolean
|
isDirty(Object old, Object current, boolean[] checkable, SessionImplementor session)
Should the parent be considered dirty, given both the old and current value?
|
boolean
|
isDirty(Object old, Object current, SessionImplementor session)
Should the parent be considered dirty, given both the old and current value?
|
boolean
|
isEmbeddedInXML()
|
final
boolean
|
isEqual(Object x, Object y, EntityMode entityMode)
Compare two instances of the class mapped by this type for persistence "equality" (equality of persistent
state).
|
boolean
|
isModified(Object old, Object current, boolean[] checkable, SessionImplementor session)
|
boolean
|
isMutable()
Are objects of this type mutable.
|
boolean
|
isXMLElement()
|
Object
|
nullSafeGet(ResultSet rs, String[] name, SessionImplementor session, Object owner)
Retrieve an instance of the mapped class from a JDBC resultset.
|
Object
|
nullSafeGet(ResultSet rs, String name, SessionImplementor session, Object owner)
Retrieve an instance of the mapped class from a JDBC resultset.
|
void
|
nullSafeSet(PreparedStatement st, Object value, int index, SessionImplementor session)
Write an instance of the mapped class to a prepared statement.
|
final
void
|
nullSafeSet(PreparedStatement st, Object value, int index, boolean[] settable, SessionImplementor session)
Write an instance of the mapped class to a prepared statement, ignoring some columns.
|
String
|
renderLoggableString(Object value, SessionFactoryImplementor factory)
|
Object
|
replace(Object original, Object target, SessionImplementor session, Object owner, Map copyCache)
During merge, replace the existing (target) value in the entity we are merging to
with a new (original) value from the detached entity we are merging.
|
Object
|
replaceElements(Object original, Object target, Object owner, Map copyCache, SessionImplementor session)
Replace the elements of a collection with the elements of another collection.
|
Object
|
resolve(Object value, SessionImplementor session, Object owner)
Map identifiers to entities or collections.
|
Object
|
semiResolve(Object value, SessionImplementor session, Object owner)
Given a hydrated, but unresolved value, return a value that may be used to
reconstruct property-ref associations.
|
void
|
setToXMLNode(Node node, Object value, SessionFactoryImplementor factory)
A representation of the value to be embedded in an XML element.
|
int[]
|
sqlTypes(Mapping session)
Return the JDBC types codes (per java.sql.Types) for the columns mapped by this type.
|
boolean[]
|
toColumnNullness(Object value, Mapping mapping)
Given an instance of the type, return an array of boolean, indicating
which mapped columns would be null.
|
String
|
toLoggableString(Object value, SessionFactoryImplementor factory)
A representation of the value to be embedded in a log file.
|
String
|
toString()
|
boolean
|
useLHSPrimaryKey()
Is the primary key of the owning entity table
to be used in the join?
|
abstract
PersistentCollection
|
wrap(SessionImplementor session, Object collection)
Wrap the naked collection instance in a wrapper, or instantiate a
holder.
|