Methods Summary |
---|
protected org.hibernate.property.Getter | buildGetter(org.hibernate.mapping.Component component, org.hibernate.mapping.Property prop)
return prop.getGetter( component.getComponentClass() );
|
protected org.hibernate.tuple.Instantiator | buildInstantiator(org.hibernate.mapping.Component component)
if ( component.isEmbedded() && ReflectHelper.isAbstractClass( component.getComponentClass() ) ) {
return new ProxiedInstantiator( component );
}
if ( optimizer == null ) {
return new PojoInstantiator( component, null );
}
else {
return new PojoInstantiator( component, optimizer.getInstantiationOptimizer() );
}
|
protected org.hibernate.property.Setter | buildSetter(org.hibernate.mapping.Component component, org.hibernate.mapping.Property prop)
return prop.getSetter( component.getComponentClass() );
|
public java.lang.Class | getMappedClass()
return componentClass;
|
public java.lang.Object | getParent(java.lang.Object component)
return parentGetter.get( component );
|
public java.lang.Object[] | getPropertyValues(java.lang.Object component)
if ( component == BackrefPropertyAccessor.UNKNOWN ) {
return new Object[ propertySpan ];
}
if ( optimizer != null && optimizer.getAccessOptimizer() != null ) {
return optimizer.getAccessOptimizer().getPropertyValues( component );
}
else {
return super.getPropertyValues(component);
}
|
public boolean | hasParentProperty()
return parentGetter!=null;
|
public boolean | isMethodOf(java.lang.reflect.Method method)
for ( int i=0; i<propertySpan; i++ ) {
final Method getterMethod = getters[i].getMethod();
if ( getterMethod!=null && getterMethod.equals(method) ) return true;
}
return false;
|
public void | setParent(java.lang.Object component, java.lang.Object parent, org.hibernate.engine.SessionFactoryImplementor factory)
parentSetter.set(component, parent, factory);
|
public void | setPropertyValues(java.lang.Object component, java.lang.Object[] values)
if ( optimizer != null && optimizer.getAccessOptimizer() != null ) {
optimizer.getAccessOptimizer().setPropertyValues( component, values );
}
else {
super.setPropertyValues(component, values);
}
|