Top Description Fields Constructors Methods
org.hibernate.tuple

public Class Dom4jInstantiator

extends Object
implements Instantiator
Class Inheritance
All Implemented Interfaces
org.hibernate.tuple.Instantiator, java.io.Serializable
Imports
java.io.Serializable, java.util.HashSet, .Iterator, org.dom4j.Element, org.hibernate.util.XMLHelper, org.hibernate.mapping.PersistentClass, .Component

Performs "instantiation" based on DOM4J elements.

Field Summary

Modifier and TypeField and Description
private final HashSet<E>
private final String

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public Object
instantiate(Serializable
The id of the entity to be instantiated.
id
)

Implements org.hibernate.tuple.Instantiator.instantiate.

Perform the requested entity instantiation.
public Object
instantiate()

Implements org.hibernate.tuple.Instantiator.instantiate.

Perform the requested instantiation.
public boolean
isInstance(Object
The object to be checked.
object
)

Implements org.hibernate.tuple.Instantiator.isInstance.

Performs check to see if the given object is an instance of the entity or component which this Instantiator instantiates.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

isInstanceNodeNamesback to summary
private final HashSet<E> isInstanceNodeNames
nodeNameback to summary
private final String nodeName

Constructor Detail

Dom4jInstantiatorback to summary
public Dom4jInstantiator(Component component)
Dom4jInstantiatorback to summary
public Dom4jInstantiator(PersistentClass mappingInfo)

Method Detail

instantiateback to summary
public Object instantiate(Serializable id)

Implements org.hibernate.tuple.Instantiator.instantiate.

Doc from org.hibernate.tuple.Instantiator.instantiate.

Perform the requested entity instantiation.

This form is never called for component instantiation, only entity instantiation.

Parameters
id:Serializable

The id of the entity to be instantiated.

Returns:Object

An appropriately instantiated entity.

instantiateback to summary
public Object instantiate()

Implements org.hibernate.tuple.Instantiator.instantiate.

Doc from org.hibernate.tuple.Instantiator.instantiate.

Perform the requested instantiation.

Returns:Object

The instantiated data structure.

isInstanceback to summary
public boolean isInstance(Object object)

Implements org.hibernate.tuple.Instantiator.isInstance.

Doc from org.hibernate.tuple.Instantiator.isInstance.

Performs check to see if the given object is an instance of the entity or component which this Instantiator instantiates.

Parameters
object:Object

The object to be checked.

Returns:boolean

True is the object does represent an instance of the underlying entity/component.