Code example for CollectionType

Methods: isArrayType

0
 
	Object processCollection(Object collection, CollectionType type)
		throws HibernateException {
 
		if (collection!=null) { 
 
			SessionImplementor session = getSession();
 
			final PersistentCollection persistentCollection;
			if ( type.isArrayType() ) {
				 persistentCollection = session.getPersistenceContext().getCollectionHolder(collection);
				// if no array holder we found an unwrappered array (this can't occur, 
				// because we now always call wrap() before getting to here) 
				// return (ah==null) ? true : searchForDirtyCollections(ah, type); 
			} 
			else { 
				// if not wrappered yet, its dirty (this can't occur, because 
				// we now always call wrap() before getting to here) 
				// return ( ! (obj instanceof PersistentCollection) ) ? 
				//true : searchForDirtyCollections( (PersistentCollection) obj, type ); 
Experience pair programming with AI  Get Codota for Java