EntityPersister getPropertyTypes - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for EntityPersister getPropertyTypes method.

This code example shows how to use the following methods:getPropertyTypes, getPropertyValues
	 * @param persister 
	 * @throws HibernateException 
	 */ 
	void process(Object object, EntityPersister persister)
	throws HibernateException {
		processEntityPropertyValues( 
			persister.getPropertyValues( object ),
			persister.getPropertyTypes()
		); 
	} 
 
	/** 
	 * Visit a collection. Default superclass 
	 * implementation is a no-op. 
	 * @param collection 
	 * @param type 
	 * @throws HibernateException 
	 */ 
	Object processCollection(Object collection, CollectionType type)
	throws HibernateException {
6
CodeRank
This code example shows how to use the following methods:getPropertyTypes, getPropertyValues, setPropertyValues
		return null; 
	} 
 
	@Override 
    void process(Object object, EntityPersister persister) throws HibernateException { 
		final Object[] values = persister.getPropertyValues( object ); 
		final Type[] types = persister.getPropertyTypes(); 
		processEntityPropertyValues( values, types ); 
		if ( isSubstitutionRequired() ) { 
			persister.setPropertyValues( object, values ); 
		} 
	} 
} 
5
CodeRank
This code example shows how to use the following methods:getPropertyNames, getPropertyTypes
This code example shows how to use the following methods:getEntityName, getIdentifier, getPropertyNames, getPropertyTypes, getPropertyValues
 
		if ( entityEntry == null ) { 
            LOG.trace("Entity was not persistent in delete processing"); 
 
			persister = source.getEntityPersister( event.getEntityName(), entity ); 
 
			if ( ForeignKeys.isTransient( persister.getEntityName(), entity, null, source ) ) { 
				deleteTransientEntity( source, entity, event.isCascadeDeleteEnabled(), persister, transientEntities ); 
				// EARLY EXIT!!! 
				return; 
			} 
            performDetachedEntityDeletionCheck(event); 
 
			id = persister.getIdentifier( entity, source ); 
 
			if ( id == null ) { 
				throw new TransientObjectException( 
						"the detached instance passed to delete() had a null identifier" 
				); 
			} 

4
CodeRank
getPropertyTypes Method Overview
Get the Hibernate types of the class properties
See Code Examples for other Hibernate ORM EntityPersister Methods: