Abstract implementation of the Hibernate static API for GORM, providing String-based method implementations
Modifiers | Name | Description |
---|---|---|
protected org.springframework.core.convert.ConversionService |
conversionService |
|
protected IHibernateTemplate |
hibernateTemplate |
|
protected ProxyHandler |
proxyHandler |
|
protected java.util.regex.Pattern |
queryPattern |
Fields inherited from class | Fields |
---|---|
class GormStaticApi |
gormDynamicFinders, transactionManager |
class AbstractGormApi |
persistentClass, persistentEntity |
class AbstractDatastoreApi |
datastore |
Constructor and description |
---|
AbstractHibernateGormStaticApi
(java.lang.Class<D> persistentClass, Datastore datastore, java.util.List<FinderMethod> finders, IHibernateTemplate hibernateTemplate) |
AbstractHibernateGormStaticApi
(java.lang.Class<D> persistentClass, Datastore datastore, java.util.List<FinderMethod> finders, org.springframework.transaction.PlatformTransactionManager transactionManager, IHibernateTemplate hibernateTemplate) |
Type | Name and description |
---|---|
protected java.io.Serializable |
convertIdentifier(java.io.Serializable id) |
java.lang.Integer |
count() |
protected D |
executeHibernateQuery(org.hibernate.Query q, java.util.Map args) |
java.util.List<D> |
executeQuery(java.lang.String query, java.util.Map params, java.util.Map args) |
java.util.List<D> |
executeQuery(java.lang.String query, java.util.Collection params, java.util.Map args) |
boolean |
exists(java.io.Serializable id) |
protected java.util.Map |
filterQueryArgumentMap(java.util.Map query) |
D |
find(java.lang.String 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.String query, java.util.Collection params, java.util.Map args) |
D |
find(D exampleObject, java.util.Map args) |
java.util.List<D> |
findAll(java.lang.String query, java.util.Map params, java.util.Map args) |
java.util.List<D> |
findAll(java.lang.String 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) |
D |
findWhere(java.util.Map queryMap, java.util.Map args) |
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) |
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(org.hibernate.Query q, java.util.Map args) |
protected void |
populateQueryWithNamedArguments(org.hibernate.Query q, java.util.Map queryNamedArgs) |
D |
read(java.io.Serializable id) |
protected java.util.List<java.lang.String> |
removeNullNames(java.util.Map query) |
Implements the 'find(String' method to use HQL queries with named arguments
query
- The queryqueryNamedArgs
- The named argumentsargs
- Any additional query arguments