com.u2d.persist.type
Class ComplexTypePersister

java.lang.Object
  extended by com.u2d.persist.type.EntityPersisterAdapter
      extended by com.u2d.persist.type.ComplexTypePersister
All Implemented Interfaces:
org.hibernate.persister.entity.EntityPersister

public class ComplexTypePersister
extends EntityPersisterAdapter

Created by IntelliJ IDEA. User: eitan Date: Sep 14, 2005 Time: 10:06:40 AM


Field Summary
protected  org.hibernate.engine.SessionFactoryImplementor factory
           
protected static java.lang.String[] NAMES
           
 
Fields inherited from class com.u2d.persist.type.EntityPersisterAdapter
GENERATION, GENERATOR, INSERTABILITY, MUTABILITY, NATURALIDENTIFIERS, TYPES
 
Fields inherited from interface org.hibernate.persister.entity.EntityPersister
ENTITY_ID
 
Constructor Summary
ComplexTypePersister(org.hibernate.mapping.PersistentClass model, org.hibernate.cache.CacheConcurrencyStrategy cache, org.hibernate.engine.SessionFactoryImplementor factory, org.hibernate.engine.Mapping mapping)
           
 
Method Summary
 java.lang.Object getCurrentVersion(java.io.Serializable id, org.hibernate.engine.SessionImplementor session)
           
 org.hibernate.engine.SessionFactoryImplementor getFactory()
           
 java.io.Serializable getIdentifier(java.lang.Object object, org.hibernate.EntityMode entityMode)
           
 java.lang.String getIdentifierPropertyName()
           
 java.lang.Class getMappedClass()
           
 java.lang.Class getMappedClass(org.hibernate.EntityMode entityMode)
           
 java.lang.String[] getPropertyNames()
           
 java.io.Serializable[] getPropertySpaces()
           
 java.lang.Object getPropertyValue(java.lang.Object object, int i, org.hibernate.EntityMode entityMode)
           
 java.lang.Object getPropertyValue(java.lang.Object object, java.lang.String propertyName, org.hibernate.EntityMode entityMode)
           
 java.lang.Object[] getPropertyValues(java.lang.Object object, org.hibernate.EntityMode entityMode)
           
 java.io.Serializable[] getQuerySpaces()
           
 java.lang.String getRootEntityName()
           
 void insert(java.io.Serializable id, java.lang.Object[] fields, java.lang.Object object, org.hibernate.engine.SessionImplementor session)
           
 java.lang.Object instantiate(java.io.Serializable id, org.hibernate.EntityMode entityMode)
           
 boolean isInstance(java.lang.Object object, org.hibernate.EntityMode entityMode)
           
 java.lang.Object load(java.io.Serializable id, java.lang.Object optionalObject, org.hibernate.LockMode lockMode, org.hibernate.engine.SessionImplementor session)
           
 
Methods inherited from class com.u2d.persist.type.EntityPersisterAdapter
afterInitialize, afterReassociate, applyFilters, applyFilters, checkEntityMode, createProxy, delete, findDirty, findModified, getCache, getCacheEntryStructure, getClassMetadata, getConcreteProxyClass, getDatabaseSnapshot, getEntityName, getIdentifierGenerator, getIdentifierType, getNaturalIdentifierProperties, getNaturalIdentifierSnapshot, getNaturalIdentifierTypes, getPropertyCascadeStyles, getPropertyCheckability, getPropertyGeneration, getPropertyInsertability, getPropertyInsertGeneration, getPropertyLaziness, getPropertyNullability, getPropertyType, getPropertyTypes, getPropertyUpdateability, getPropertyUpdateGeneration, getPropertyValue, getPropertyValuesToInsert, getPropertyVersionability, getSubclassEntityPersister, getVersion, getVersionProperty, getVersionType, guessEntityMode, hasCache, hasCascades, hasCollections, hasGeneratedProperties, hasIdentifierProperty, hasIdentifierPropertyOrEmbeddedCompositeIdentifier, hasInsertGeneratedProperties, hasLazyProperties, hasMutableProperties, hasNaturalIdentifier, hasProxy, hasSubselectLoadableCollections, hasUninitializedLazyProperties, hasUpdateGeneratedProperties, implementsLifecycle, implementsValidatable, insert, isBatchLoadable, isCacheInvalidationRequired, isDynamic, isIdentifierAssignedByInsert, isInherited, isInstrumented, isLazyPropertiesCacheable, isMutable, isSelectBeforeUpdateRequired, isSubclassEntityName, isTransient, isVersioned, isVersionPropertyGenerated, lock, postInstantiate, processInsertGeneratedProperties, processUpdateGeneratedProperties, resetIdentifier, retrieveGeneratedProperties, setIdentifier, setPropertyValue, setPropertyValues, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

protected org.hibernate.engine.SessionFactoryImplementor factory

NAMES

protected static final java.lang.String[] NAMES
Constructor Detail

ComplexTypePersister

public ComplexTypePersister(org.hibernate.mapping.PersistentClass model,
                            org.hibernate.cache.CacheConcurrencyStrategy cache,
                            org.hibernate.engine.SessionFactoryImplementor factory,
                            org.hibernate.engine.Mapping mapping)
Method Detail

getFactory

public org.hibernate.engine.SessionFactoryImplementor getFactory()

getMappedClass

public java.lang.Class getMappedClass(org.hibernate.EntityMode entityMode)

getMappedClass

public java.lang.Class getMappedClass()
Specified by:
getMappedClass in class EntityPersisterAdapter

getPropertyValues

public java.lang.Object[] getPropertyValues(java.lang.Object object,
                                            org.hibernate.EntityMode entityMode)
                                     throws org.hibernate.HibernateException
Throws:
org.hibernate.HibernateException

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.Object object,
                                         int i,
                                         org.hibernate.EntityMode entityMode)
                                  throws org.hibernate.HibernateException
Throws:
org.hibernate.HibernateException

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.Object object,
                                         java.lang.String propertyName,
                                         org.hibernate.EntityMode entityMode)
                                  throws org.hibernate.HibernateException
Throws:
org.hibernate.HibernateException

getIdentifier

public java.io.Serializable getIdentifier(java.lang.Object object,
                                          org.hibernate.EntityMode entityMode)
                                   throws org.hibernate.HibernateException
Throws:
org.hibernate.HibernateException

instantiate

public java.lang.Object instantiate(java.io.Serializable id,
                                    org.hibernate.EntityMode entityMode)
                             throws org.hibernate.HibernateException
Throws:
org.hibernate.HibernateException

isInstance

public boolean isInstance(java.lang.Object object,
                          org.hibernate.EntityMode entityMode)

load

public java.lang.Object load(java.io.Serializable id,
                             java.lang.Object optionalObject,
                             org.hibernate.LockMode lockMode,
                             org.hibernate.engine.SessionImplementor session)
                      throws org.hibernate.HibernateException
Throws:
org.hibernate.HibernateException

insert

public void insert(java.io.Serializable id,
                   java.lang.Object[] fields,
                   java.lang.Object object,
                   org.hibernate.engine.SessionImplementor session)
            throws org.hibernate.HibernateException
Throws:
org.hibernate.HibernateException

getPropertyNames

public java.lang.String[] getPropertyNames()

getIdentifierPropertyName

public java.lang.String getIdentifierPropertyName()

getRootEntityName

public java.lang.String getRootEntityName()

getPropertySpaces

public java.io.Serializable[] getPropertySpaces()

getQuerySpaces

public java.io.Serializable[] getQuerySpaces()

getCurrentVersion

public java.lang.Object getCurrentVersion(java.io.Serializable id,
                                          org.hibernate.engine.SessionImplementor session)
                                   throws org.hibernate.HibernateException
Throws:
org.hibernate.HibernateException