org.progeeks.hibernate
Class MetaObjectTuplizer

java.lang.Object
  extended by org.hibernate.tuple.AbstractEntityTuplizer
      extended by org.progeeks.hibernate.MetaObjectTuplizer
All Implemented Interfaces:
org.hibernate.tuple.EntityTuplizer, org.hibernate.tuple.Tuplizer

public class MetaObjectTuplizer
extends org.hibernate.tuple.AbstractEntityTuplizer

Implementation of a tuplizer for MetaObjects

Version:
$Revision: 1.2 $
Author:
Matt Veitas

Field Summary
 
Fields inherited from class org.hibernate.tuple.AbstractEntityTuplizer
getters, hasCustomAccessors, propertySpan, setters
 
Constructor Summary
MetaObjectTuplizer(org.hibernate.tuple.EntityMetamodel entityMetamodel, org.hibernate.mapping.PersistentClass mappedEntity)
           
 
Method Summary
protected  org.hibernate.tuple.Instantiator buildInstantiator(org.hibernate.mapping.PersistentClass mappingInfo)
          Build an appropriate Instantiator for the given mapped entity.
protected  org.hibernate.property.Getter buildPropertyGetter(org.hibernate.mapping.Property mappedProperty, org.hibernate.mapping.PersistentClass mappedEntity)
          Build an appropriate Getter for the given property.
protected  org.hibernate.property.Setter buildPropertySetter(org.hibernate.mapping.Property mappedProperty, org.hibernate.mapping.PersistentClass mappedEntity)
          Build an appropriate Setter for the given property.
protected  org.hibernate.proxy.ProxyFactory buildProxyFactory(org.hibernate.mapping.PersistentClass mappingInfo, org.hibernate.property.Getter idGetter, org.hibernate.property.Setter idSetter)
           
 java.lang.Class getConcreteProxyClass()
           
protected  org.hibernate.EntityMode getEntityMode()
          Return the entity-mode handled by this tuplizer instance.
 java.lang.Class getMappedClass()
           
 java.lang.Object getPropertyValue(java.lang.Object entity, int i)
          Extract the value of a particular property from the given entity.
 java.lang.Object getPropertyValue(java.lang.Object entity, java.lang.String propertyName)
          Extract the value of a particular property from the given entity.
 java.lang.Object[] getPropertyValues(java.lang.Object entity)
           
 boolean isInstrumented()
          Is it an instrumented POJO?
 boolean isLazyPropertyLoadingAvailable()
           
 
Methods inherited from class org.hibernate.tuple.AbstractEntityTuplizer
afterInitialize, createProxy, getComponentValue, getEntityMetamodel, getEntityName, getFactory, getIdentifier, getInstantiator, getPropertyValuesToInsert, getProxyFactory, getSubclassEntityNames, getVersion, hasProxy, hasUninitializedLazyProperties, instantiate, instantiate, isInstance, isLifecycleImplementor, isValidatableImplementor, resetIdentifier, setIdentifier, setPropertyValue, setPropertyValue, setPropertyValues, shouldGetAllProperties, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MetaObjectTuplizer

public MetaObjectTuplizer(org.hibernate.tuple.EntityMetamodel entityMetamodel,
                          org.hibernate.mapping.PersistentClass mappedEntity)
Method Detail

getEntityMode

protected org.hibernate.EntityMode getEntityMode()
Return the entity-mode handled by this tuplizer instance.

Specified by:
getEntityMode in class org.hibernate.tuple.AbstractEntityTuplizer

buildPropertyGetter

protected org.hibernate.property.Getter buildPropertyGetter(org.hibernate.mapping.Property mappedProperty,
                                                            org.hibernate.mapping.PersistentClass mappedEntity)
Build an appropriate Getter for the given property.

Specified by:
buildPropertyGetter in class org.hibernate.tuple.AbstractEntityTuplizer

buildPropertySetter

protected org.hibernate.property.Setter buildPropertySetter(org.hibernate.mapping.Property mappedProperty,
                                                            org.hibernate.mapping.PersistentClass mappedEntity)
Build an appropriate Setter for the given property.

Specified by:
buildPropertySetter in class org.hibernate.tuple.AbstractEntityTuplizer

buildInstantiator

protected org.hibernate.tuple.Instantiator buildInstantiator(org.hibernate.mapping.PersistentClass mappingInfo)
Build an appropriate Instantiator for the given mapped entity.

Specified by:
buildInstantiator in class org.hibernate.tuple.AbstractEntityTuplizer

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.Object entity,
                                         int i)
                                  throws org.hibernate.HibernateException
Extract the value of a particular property from the given entity.

Specified by:
getPropertyValue in interface org.hibernate.tuple.Tuplizer
Overrides:
getPropertyValue in class org.hibernate.tuple.AbstractEntityTuplizer
Throws:
org.hibernate.HibernateException

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.Object entity,
                                         java.lang.String propertyName)
                                  throws org.hibernate.HibernateException
Extract the value of a particular property from the given entity.

Specified by:
getPropertyValue in interface org.hibernate.tuple.EntityTuplizer
Overrides:
getPropertyValue in class org.hibernate.tuple.AbstractEntityTuplizer
Throws:
org.hibernate.HibernateException

getPropertyValues

public java.lang.Object[] getPropertyValues(java.lang.Object entity)
                                     throws org.hibernate.HibernateException
Specified by:
getPropertyValues in interface org.hibernate.tuple.Tuplizer
Overrides:
getPropertyValues in class org.hibernate.tuple.AbstractEntityTuplizer
Throws:
org.hibernate.HibernateException

buildProxyFactory

protected org.hibernate.proxy.ProxyFactory buildProxyFactory(org.hibernate.mapping.PersistentClass mappingInfo,
                                                             org.hibernate.property.Getter idGetter,
                                                             org.hibernate.property.Setter idSetter)
Specified by:
buildProxyFactory in class org.hibernate.tuple.AbstractEntityTuplizer

getConcreteProxyClass

public java.lang.Class getConcreteProxyClass()

isLazyPropertyLoadingAvailable

public boolean isLazyPropertyLoadingAvailable()

getMappedClass

public java.lang.Class getMappedClass()

isInstrumented

public boolean isInstrumented()
Is it an instrumented POJO?



Copyright © 2002-2003 Paul Speed. All Rights Reserved.