@groovy.transform.CompileStatic abstract class AbstractHibernateGormStaticApi<D> extends GormStaticApi<D>
Abstract implementation of the Hibernate static API for GORM, providing String-based method implementations
Modifiers | Name | Description |
---|---|---|
class |
AbstractHibernateGormStaticApi.1 |
Modifiers | Name | Description |
---|---|---|
protected org.springframework.core.convert.ConversionService |
conversionService |
|
protected HibernateSession |
hibernateSession |
|
protected GrailsHibernateTemplate |
hibernateTemplate |
|
protected ProxyHandler |
proxyHandler |
Constructor and description |
---|
AbstractHibernateGormStaticApi(java.lang.Class<D> persistentClass, HibernateDatastore datastore, java.util.List<FinderMethod> finders) |
AbstractHibernateGormStaticApi(java.lang.Class<D> persistentClass, HibernateDatastore datastore, java.util.List<FinderMethod> finders, org.springframework.transaction.PlatformTransactionManager transactionManager) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected java.lang.String |
buildNamedParameterQueryFromGString(groovy.lang.GString query, java.util.Map params) Processes a query converting GString expressions into parameters |
|
protected java.lang.String |
buildOrdinalParameterQueryFromGString(groovy.lang.GString query, java.util.List params) Processes a query converting GString expressions into parameters |
|
protected java.io.Serializable |
convertIdentifier(java.io.Serializable id) |
|
java.lang.Integer |
count() |
|
protected abstract HibernateHqlQuery |
createHqlQuery(org.hibernate.Session session, Query q) |
|
java.util.List |
executeQuery(java.lang.CharSequence query) |
|
java.util.List |
executeQuery(java.lang.CharSequence query, java.util.Map args) |
|
java.util.List |
executeQuery(java.lang.CharSequence query, java.util.Map params, java.util.Map args) |
|
java.util.List |
executeQuery(java.lang.CharSequence query, java.util.Collection params, java.util.Map args) |
|
java.lang.Integer |
executeUpdate(java.lang.CharSequence query) |
|
java.lang.Integer |
executeUpdate(java.lang.CharSequence query, java.util.Map args) |
|
boolean |
exists(java.io.Serializable id) |
|
protected java.util.Map |
filterQueryArgumentMap(java.util.Map query) |
|
D |
find(java.lang.CharSequence query, java.util.Map queryNamedArgs, java.util.Map args) Implements the 'find(String' method to use HQL queries with named arguments |
|
D |
find(java.lang.CharSequence query, java.util.Collection params, java.util.Map args) |
|
D |
find(java.lang.CharSequence query) |
|
D |
find(java.lang.CharSequence query, java.util.Map params) |
|
D |
find(D exampleObject, java.util.Map args) |
|
java.util.List<D> |
findAll(java.lang.CharSequence query, java.util.Map params, java.util.Map args) |
|
java.util.List<D> |
findAll(java.lang.CharSequence query) |
|
java.util.List<D> |
findAll(java.lang.CharSequence query, java.util.Map params) |
|
java.util.List<D> |
findAll(java.lang.CharSequence query, java.util.Collection params, java.util.Map args) |
|
java.util.List<D> |
findAll(D exampleObject, java.util.Map args) |
|
java.util.List<D> |
findAllWhere(java.util.Map queryMap, java.util.Map args) |
|
java.util.List<D> |
findAllWithSql(java.lang.CharSequence sql, java.util.Map args) Finds all results for this entity for the given SQL query |
|
D |
findWhere(java.util.Map queryMap, java.util.Map args) |
<D> |
D |
findWithSql(java.lang.CharSequence sql, java.util.Map args) |
|
protected abstract void |
firePostQueryEvent(org.hibernate.Session session, org.hibernate.Criteria criteria, java.lang.Object result) Fire a post query event |
|
protected abstract void |
firePreQueryEvent(org.hibernate.Session session, org.hibernate.Criteria criteria) Fire a pre query event |
|
D |
first(java.util.Map m) |
|
D |
get(java.io.Serializable id) |
|
java.util.List<D> |
getAll() |
|
java.util.List<D> |
getAll(java.util.List ids) |
|
java.util.List<D> |
getAll(java.lang.Long[] ids) |
|
java.util.List<D> |
getAll(java.io.Serializable[] ids) |
|
IHibernateTemplate |
getHibernateTemplate() |
|
protected java.lang.Integer |
intValue(java.util.Map args, java.lang.String key) |
|
D |
last(java.util.Map m) |
|
D |
load(java.io.Serializable id) |
|
protected void |
populateQueryArguments(Query q, java.util.Map args) |
|
protected void |
populateQueryWithNamedArguments(Query q, java.util.Map queryNamedArgs) |
|
D |
read(java.io.Serializable id) |
|
protected java.util.List<java.lang.String> |
removeNullNames(java.util.Map query) |
<T> |
T |
withNewSession(groovy.lang.Closure<T> callable) |
<T> |
T |
withSession(groovy.lang.Closure<T> callable) |
Processes a query converting GString expressions into parameters
query
- The queryparams
- The parametersProcesses a query converting GString expressions into parameters
query
- The queryparams
- The parametersImplements the 'find(String' method to use HQL queries with named arguments
query
- The queryqueryNamedArgs
- The named argumentsargs
- Any additional query argumentsFinds all results for this entity for the given SQL query
sql
- The SQL queryargs
- The argumentsFire a post query event
session
- The sessioncriteria
- The criteriaresult
- The resultFire a pre query event
session
- The sessioncriteria
- The criteria