/** * Dispatch each property value to processValue(). * * @param values * @param types * @throws HibernateException */ public void processEntityPropertyValues(Object[] values, Type[] types) throws HibernateException { for ( int i=0; i<types.length; i++ ) { if ( includeEntityProperty(values, i) ) { processValue( i, values, types ); } } }
/** * Dispatch each property value to processValue(). * * @param values * @param types * @throws HibernateException */ void processValues(Object[] values, Type[] types) throws HibernateException { for ( int i=0; i<types.length; i++ ) { if ( includeProperty(values, i) ) { processValue( i, values, types ); } } }
/** * Visit a property value. Dispatch to the * correct handler for the property type. * @param value * @param type * @throws HibernateException */ final Object processValue(Object value, Type type) throws HibernateException { if ( type.isCollectionType() ) { //even process null collections return processCollection( value, (CollectionType) type ); } else if ( type.isEntityType() ) { return processEntity( value, (EntityType) type ); } else if ( type.isComponentType() ) { return processComponent( value, (CompositeType) type ); } else { return null; } }
boolean includeEntityProperty(Object[] values, int i) { return propertyVersionability[i] && super.includeEntityProperty( values, i ); } }
/** * Walk the tree starting from the given entity. * * @param object * @param persister * @throws HibernateException */ void process(Object object, EntityPersister persister) throws HibernateException { processEntityPropertyValues( persister.getPropertyValues( object ), persister.getPropertyTypes() ); }
void processValue(int i, Object[] values, Type[] types) { processValue( values[i], types[i] ); }
boolean includeEntityProperty(Object[] values, int i) { return includeProperty(values, i); }
/** * Visit a component. Dispatch each property * to processValue(). * @param component * @param componentType * @throws HibernateException */ Object processComponent(Object component, CompositeType componentType) throws HibernateException { if (component!=null) { processValues( componentType.getPropertyValues(component, session), componentType.getSubtypes() ); } return null; }
@Override boolean includeEntityProperty(Object[] values, int i) { return propertyVersionability[i] && super.includeEntityProperty( values, i ); } }
/** * Walk the tree starting from the given entity. * * @param object * @param entityDescriptor * @throws HibernateException */ void process(Object object, EntityTypeDescriptor entityDescriptor) throws HibernateException { processEntityPropertyValues( entityDescriptor.getPropertyValues( object ), entityDescriptor.getPersistentAttributes() ); }
void processValue(int i, Object[] values, PersistentAttributeDescriptor attribute) throws HibernateException { processValue( values[i], attribute ); }
boolean includeEntityProperty(Object[] values, int i) { return includeProperty(values, i); }
/** * Visit a component. Dispatch each property * to processValue(). * @param component * @param componentType * @throws HibernateException */ Object processComponent(Object component, CompositeType componentType) throws HibernateException { if (component!=null) { processValues( componentType.getPropertyValues(component, session), componentType.getSubtypes() ); } return null; }
/** * Visit a property value. Dispatch to the * correct handler for the property type. * @param value * @param attribute * @throws HibernateException */ final Object processValue(Object value, PersistentAttributeDescriptor attribute) throws HibernateException { if ( attribute instanceof PluralPersistentAttribute ) { return processCollection( value, (PluralPersistentAttribute) attribute ); } if ( attribute instanceof EntityTypeDescriptor ) { return processEntity( value, (EntityTypeDescriptor) attribute ); } else if ( attribute instanceof EmbeddedTypeDescriptor ) { return processComponent( value, (EmbeddedTypeDescriptor) attribute ); } else { return null; } }
/** * Dispatch each property value to processValue(). * * @param values * @param types * @throws HibernateException */ public void processEntityPropertyValues(Object[] values, Type[] types) throws HibernateException { for ( int i=0; i<types.length; i++ ) { if ( includeEntityProperty(values, i) ) { processValue( i, values, types ); } } }
/** * Dispatch each property value to processValue(). * * @param values * @param types * @throws HibernateException */ void processValues(Object[] values, Type[] types) throws HibernateException { for ( int i=0; i<types.length; i++ ) { if ( includeProperty(values, i) ) { processValue( i, values, types ); } } }
boolean includeEntityProperty(Object[] values, int i) { return propertyVersionability[i] && super.includeEntityProperty(values, i); } }
/** * Walk the tree starting from the given entity. * * @param object * @param persister * @throws HibernateException */ void process(Object object, EntityPersister persister) throws HibernateException { processEntityPropertyValues( persister.getPropertyValues( object ), persister.getPropertyTypes() ); }
void processValue(int i, Object[] values, Type[] types) { processValue( values[i], types[i] ); }
boolean includeEntityProperty(Object[] values, int i) { return includeProperty(values, i); }