@groovy.transform.CompileStatic class HibernateGormStaticApi<D> extends AbstractHibernateGormStaticApi<D>
The implementation of the GORM static method contract for Hibernate
| Modifiers | Name | Description |
|---|---|---|
protected java.lang.ClassLoader |
classLoader |
|
protected org.springframework.core.convert.ConversionService |
conversionService |
|
protected java.lang.Class |
identityType |
|
protected java.lang.String |
qualifier |
|
protected org.hibernate.SessionFactory |
sessionFactory |
| Constructor and description |
|---|
HibernateGormStaticApi(java.lang.Class<D> persistentClass, HibernateDatastore datastore, java.util.List<FinderMethod> finders, java.lang.ClassLoader classLoader, org.springframework.transaction.PlatformTransactionManager transactionManager, java.lang.String qualifier) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
BuildableCriteria |
createCriteria() |
|
protected HibernateHqlQuery |
createHqlQuery(org.hibernate.Session session, org.hibernate.query.Query q) |
|
java.lang.Integer |
executeUpdate(java.lang.CharSequence query, java.util.Map params, java.util.Map args) |
|
java.lang.Integer |
executeUpdate(java.lang.CharSequence query, java.util.Collection params, java.util.Map args) |
|
protected void |
firePostQueryEvent(org.hibernate.Session session, org.hibernate.Criteria criteria, java.lang.Object result) |
|
protected void |
firePreQueryEvent(org.hibernate.Session session, org.hibernate.Criteria criteria) |
|
GrailsHibernateTemplate |
getHibernateTemplate() |
|
java.lang.String |
getQualifier()The connection this api was created for. |
|
java.util.List<D> |
list(java.util.Map params) |
|
D |
lock(java.io.Serializable id) |
|
D |
lock(java.util.Map args, java.io.Serializable id) |
|
java.lang.Object |
propertyMissing(java.lang.String name) |
|
protected void |
setResultTransformer(org.hibernate.Criteria c) |
<T> |
protected T |
withQueryEvents(org.hibernate.query.Query query, groovy.lang.Closure<T> callable) |
The connection this api was created for. AbstractGormApi records DEFAULT for every api
built through the deprecated constructor this class uses, so the qualifier is kept here instead, and
an entity mapped to a single named datasource reports that one when no qualifier was given.