Package ubic.gemma.persistence.hibernate
Class HibernateUtils
java.lang.Object
ubic.gemma.persistence.hibernate.HibernateUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetBatchSize(ClassMetadata classMetadata, SessionFactory sessionFactory) Obtain the batch fetch size for the given class.static booleanisStateless(ClassMetadata classMetadata, SessionFactory sessionFactory) Check if querying a particular entity is stateless, which means that upon being performed, no additional queries will be issued.static booleanisStateless(Query query, SessionFactory sessionFactory) Determine if aQueryis stateless, which means that upon being performed, no additional queries will be issued.
-
Constructor Details
-
HibernateUtils
public HibernateUtils()
-
-
Method Details
-
getBatchSize
Obtain the batch fetch size for the given class. -
isStateless
Determine if aQueryis stateless, which means that upon being performed, no additional queries will be issued.You can prevent additional queries by proactively retrieving associated entities in the session.
-
isStateless
Check if querying a particular entity is stateless, which means that upon being performed, no additional queries will be issued.
-