Best code examples for Hibernate ORM PersistentList class (org.hibernate.collection.internal.PersistentList)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM PersistentList class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Hibernate ORM PersistentList examples from Open Source projects
This code example shows how to use the following methods:
			IllegalAccessException, InvocationTargetException, 
			SecurityException, NoSuchMethodException { 
		 
		PersistentCollectionSnapshot snapshot = new JMFPersistentCollectionSnapshot(null); 
		snapshot.readInitializationData(in); 
		return (snapshot.isInitialized() ? new PersistentList(null, new ArrayList<Object>()) : new PersistentList(null)); 
	} 
} 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
	public ListType(TypeFactory.TypeScope typeScope, String role, String propertyRef, boolean isEmbeddedInXML) { 
		super( typeScope, role, propertyRef, isEmbeddedInXML ); 
	} 
 
	public PersistentCollection instantiate(SessionImplementor session, CollectionPersister persister, Serializable key) { 
		return new PersistentList(session); 
	} 
 
	public Class getReturnedClass() { 
		return List.class; 
	} 
 
	public PersistentCollection wrap(SessionImplementor session, Object collection) { 
		return new PersistentList( session, (List) collection ); 
	} 
 
	public Object instantiate(int anticipatedSize) { 
		return anticipatedSize <= 0 ? new ArrayList() : new ArrayList( anticipatedSize + 1 ); 
	} 
	 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
 
	public PersistentDefaultableList(SessionImplementor session, List list) { 
		super( session, list ); 
	} 
 
	public PersistentDefaultableList() { 
	} 
 
	public String getDefaultValue() { 
		return ( ( DefaultableList ) this.list ).getDefaultValue(); 
	} 
} 
Full Snippet Info
4
CodeRank