Package ubic.gemma.persistence.hibernate
Class HibernateUtils
java.lang.Object
ubic.gemma.persistence.hibernate.HibernateUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
getBatchSize
(ClassMetadata classMetadata, SessionFactory sessionFactory) Obtain the batch fetch size for the given class.static boolean
isStateless
(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 boolean
isStateless
(Query query, SessionFactory sessionFactory) Determine if aQuery
is 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 aQuery
is 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.
-