A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _

A

addMonths(Date, int) - Method in DateUtil
Add the specified number of months to given date.
addQuickSearchFields(List<String>, List<PersistentEntity>) - Method in GormToolsPluginHelper
Adds quickSearch fields to domains from config, if domain has such properties.
addUnderscore(String, String) - Method in GrailsDomainBinder
AfterBindEvent - Class in gorm.tools.repository.events
Fired After a bind and save/persist.
AfterBindEvent(RepositoryApi, D, Map, BindAction, Map) - Constructor in AfterBindEvent
AfterPersistEvent - Class in gorm.tools.repository.events
Fired after successful repository.persist may or may not have the data and bindAction set
AfterPersistEvent(RepositoryApi, D, Map) - Constructor in AfterPersistEvent
AfterRemoveEvent - Class in gorm.tools.repository.events
Fired right after a repository delete
AfterRemoveEvent(RepositoryApi, D, Map) - Constructor in AfterRemoveEvent
and(DetachedCriteria, List) - Method in MangoBuilder
Handles a conjunction
AppCtx - Class in gorm.tools.beans
A static that uses the Holder to get the spring ApplicationContext it beans and the GrailsApplication when in those cases where its not practical or possible to inject them (such as Traits for a persitenceEntity) Obviously it highly recommended to not use this and use DI whenever possible.
applyField(DetachedCriteria, String, Object) - Method in MangoBuilder
applyMap(DetachedCriteria, Map) - Method in MangoBuilder
applies the map just like running a closure.call on this.
applyMapOrList(DetachedCriteria, Object) - Method in MangoBuilder
applyOrder(Map, Object, List) - Method in CriteriaUtils
applies sorting for several columns free-jqgrid that is used on frontend side has feature for multi row sorting By default free-jqrid prepared sorting properties with next pattern sort = columnName(id, name, etc) order(asc|desc), next column order of the last column name is in `order` parametr Example: if user first sorted by name and then by id sort params will be look like [sort: 'name asc, id', order: 'asc']
AsyncSupport - Trait in gorm.tools.async
a trait to be used for colating/slicing a list into "batches" to then asynchronously with Transactions insert or update for maximum performance.
AutoHibernateSpec - Class in gorm.tools.testing.hibernate
automatically runs tests on persist(), create(), update(), delete()

B

BACKTICK - Field in GrailsDomainBinder
badge(Serializable, GormEntity) - Method in RepoMessage
batchCreate(Map, List<Map>) - Method in GormBatchRepo
batchCreate(List<Map>) - Method in RepositoryApi
batchPersist(Map, List<D>) - Method in GormBatchRepo
batchPersist(List<D>) - Method in RepositoryApi
batchRemove(Map, List) - Method in GormBatchRepo
batchRemove(List) - Method in RepositoryApi
batchTrx(Map, List, Closure) - Method in AsyncSupport
runs {@link #doBatch ) in a Transaction and flush and clear is called after doBatch but before commit.
batchTrx(List, Closure) - Method in GormBatchRepo
Transactional, Iterates over list and runs closure for each item
batchUpdate(Map, List<Map>) - Method in GormBatchRepo
batchUpdate(List<Map>) - Method in RepositoryApi
BeanPathTools - Class in gorm.tools.beans
BeanPathTools contains a set of static helpers, which provides a convenient way for manipulating with object's properties.
BeforeBindEvent - Class in gorm.tools.repository.events
Fired before a bind and save/persist.
BeforeBindEvent(RepositoryApi, D, Map, BindAction, Map) - Constructor in BeforeBindEvent
BeforePersistEvent - Class in gorm.tools.repository.events
Fired right before enitity save inside repository.persist
BeforePersistEvent(RepositoryApi, D, Map) - Constructor in BeforePersistEvent
BeforeRemoveEvent - Class in gorm.tools.repository.events
BeforeRemoveEvent(RepositoryApi, D, Map) - Constructor in BeforeRemoveEvent
between(DetachedCriteria, String, List) - Method in MangoBuilder
bind(Map, Object, Map<String, Object>) - Method in EntityMapBinder
Binds data from a map on target object.
bind(Map, D, Map, BindAction) - Method in GormRepo
binds by calling doBind and fires before and after events better to override doBind in implementing classes for custom binding logic.
bind(Map, Map) - Method in GormRepoEntity
bind(GormEntity<T>, Map<String, Object>, Map<String, Object>, boolean) - Method in GormUtils
Faster, simplier binder.
bind(Object, Map<String, Object>) - Method in MapBinder
Binds data from a map on target object.
bind(Map, D, Map, BindAction) - Method in RepositoryApi
binds by calling doBind and fires before and after events better to override doBind in implementing classes for custom logic.
BindAction - Enum in gorm.tools.databinding
bindAndSave(Map, D, Map, BindAction) - Method in GormRepo
short cut to call bind, setup args for events then calls doPersist
bindAssociation(Object, Object, Association, DataBindingListener, Object) - Method in EntityMapBinder
Binds a given association to the target entity.
bindClass(PersistentEntity, PersistentClass, InFlightMetadataCollector) - Method in GrailsDomainBinder
Binds the specified persistant class to the runtime model based on the properties defined in the domain class
bindCollection(ToMany, Collection, PersistentClass, InFlightMetadataCollector, String, String) - Method in GrailsDomainBinder
First pass to bind collection to Hibernate metamodel, sets up second pass
bindCollectionForPropertyConfig(Collection, PropertyConfig) - Method in GrailsDomainBinder
bindCollectionSecondPass(ToMany, InFlightMetadataCollector, Map<?, ?>, Collection, String) - Method in GrailsDomainBinder
bindCollectionTable(ToMany, InFlightMetadataCollector, Collection, Table, String) - Method in GrailsDomainBinder
bindCollectionWithJoinTable(ToMany, InFlightMetadataCollector, Collection, PropertyConfig, String) - Method in GrailsDomainBinder
bindColumn(PersistentProperty, PersistentProperty, Column, ColumnConfig, String, Table, String) - Method in GrailsDomainBinder
Binds a Column instance to the Hibernate meta model
bindColumnConfigToColumn(PersistentProperty, Column, ColumnConfig) - Method in GrailsDomainBinder
bindComponent(Component, Embedded, boolean, InFlightMetadataCollector, String) - Method in GrailsDomainBinder
Binds a Hibernate component type using the given GrailsDomainClassProperty instance
bindComponentProperty(Component, PersistentProperty, PersistentProperty, PersistentClass, String, Table, InFlightMetadataCollector, String) - Method in GrailsDomainBinder
bindCompositeId(PersistentEntity, RootClass, CompositeIdentity, InFlightMetadataCollector, String) - Method in GrailsDomainBinder
bindCompositeIdentifierToManyToOne(Association, SimpleValue, CompositeIdentity, PersistentEntity, String, String) - Method in GrailsDomainBinder
bindDependentKeyValue(PersistentProperty, DependantValue, InFlightMetadataCollector, String) - Method in GrailsDomainBinder
Binds the primary key value column
bindDiscriminatorProperty(Table, RootClass, InFlightMetadataCollector) - Method in GrailsDomainBinder
Creates and binds the discriminator property used in table-per-hierarchy inheritance to discriminate between sub class instances
bindEnumType(PersistentProperty, Class<?>, SimpleValue, String) - Method in GrailsDomainBinder
bindIdentity(HibernatePersistentEntity, RootClass, InFlightMetadataCollector, Mapping, String) - Method in GrailsDomainBinder
bindIndex(String, Column, ColumnConfig, Table) - Method in GrailsDomainBinder
bindJoinedSubClass(HibernatePersistentEntity, JoinedSubclass, InFlightMetadataCollector, Mapping, String) - Method in GrailsDomainBinder
Binds a joined sub-class mapping using table-per-subclass
bindListSecondPass(ToMany, InFlightMetadataCollector, Map<?, ?>, List, String) - Method in GrailsDomainBinder
bindManyToMany(Association, ManyToOne, InFlightMetadataCollector, String) - Method in GrailsDomainBinder
Binds a many-to-many relationship.
bindManyToOne(Association, ManyToOne, String, InFlightMetadataCollector, String) - Method in GrailsDomainBinder
Binds a many-to-one relationship to the
bindManyToOneValues(Association, ManyToOne) - Method in GrailsDomainBinder
bindMapSecondPass(ToMany, InFlightMetadataCollector, Map<?, ?>, Map, String) - Method in GrailsDomainBinder
bindNaturalIdentifier(Table, Mapping, PersistentClass) - Method in GrailsDomainBinder
bindNumericColumnConstraints(Column, PersistentProperty, ColumnConfig) - Method in GrailsDomainBinder
Interrogates the specified constraints looking for any constraints that would limit the precision and/or scale of the property's value.
bindOneToMany(OneToMany, OneToMany, InFlightMetadataCollector) - Method in GrailsDomainBinder
bindOneToOne(OneToOne, OneToOne, String, String) - Method in GrailsDomainBinder
bindOneToOneInternal(OneToOne, OneToOne, String) - Method in GrailsDomainBinder
bindProperty(PersistentProperty, Property, InFlightMetadataCollector) - Method in GrailsDomainBinder
Binds a property to Hibernate runtime meta model.
bindRoot(HibernatePersistentEntity, InFlightMetadataCollector, String) - Method in GrailsDomainBinder
Binds a root class (one with no super classes) to the runtime meta model based on the supplied Grails domain class
bindRootPersistentClassCommonValues(HibernatePersistentEntity, RootClass, InFlightMetadataCollector, String) - Method in GrailsDomainBinder
bindSimpleId(PersistentProperty, RootClass, InFlightMetadataCollector, Identity, String) - Method in GrailsDomainBinder
bindSimpleValue(String, SimpleValue, boolean, String, InFlightMetadataCollector) - Method in GrailsDomainBinder
Binds a value for the specified parameters to the meta model.
bindStringColumnConstraints(Column, PersistentProperty) - Method in GrailsDomainBinder
Interrogates the specified constraints looking for any constraints that would limit the length of the property's value.
bindSubClass(HibernatePersistentEntity, Subclass, InFlightMetadataCollector, String) - Method in GrailsDomainBinder
Binds a sub-class using table-per-hierarchy inheritance mapping
bindSubClasses(HibernatePersistentEntity, PersistentClass, InFlightMetadataCollector, String) - Method in GrailsDomainBinder
Binds the sub classes of a root class using table-per-heirarchy inheritance mapping
bindUnidirectionalOneToMany(OneToMany, InFlightMetadataCollector, Collection) - Method in GrailsDomainBinder
Binds a unidirectional one-to-many creating a psuedo back reference property in the process.
bindUnidirectionalOneToManyInverseValues(ToMany, ManyToOne) - Method in GrailsDomainBinder
@param property The property to bind
bindUnionSubclass(HibernatePersistentEntity, UnionSubclass, InFlightMetadataCollector, String) - Method in GrailsDomainBinder
bindVersion(PersistentProperty, RootClass, InFlightMetadataCollector, String) - Method in GrailsDomainBinder
build(Map) - Method in DomainRepoTest
build(DetachedCriteria, Map, Closure) - Method in MangoBuilder
buildCreate(Map) - Method in AutoHibernateSpec
buildCreate(Map, Class<T>) - Method in TestDataJson
buildMap test data and passes to the create() method from the domain repo
buildCreateMap(Map) - Method in AutoHibernateSpec
buildCreateMap(Map) - Method in DomainRepoTest
buildCriteria(Class, Map, Closure) - Method in DefaultMangoQuery
Builds detached criteria for repository's domain based on mango criteria language and additional criteria
buildCriteria(Class, Map, Closure) - Method in MangoQuery
Builds detached criteria for repository's domain based on mango criteria language and additional criteria
buildCriteria(Map, Closure) - Method in QueryMangoEntity
buildCriteria(Map, Closure) - Method in QueryMangoEntityApi
Builds detached criteria for repository's domain based on mango criteria language and additional criteria
buildDiscriminatorSet(HibernatePersistentEntity) - Method in GrailsDomainBinder
buildErrorResponse(Exception) - Method in ErrorMessageService
Builds the error response from error to make it more human readable.
buildJson(Map, Class) - Method in TestDataJson
Uses the build-test-data plugin to first build the entity with data and then converts to with json-views
buildLightMessageParams(GormEntity) - Method in RepoMessage
build a map of message params as @buildMessageParams, but light version to speed up it ident -> entity id domainLabel -> domain class name arg -> the array [domainLabel,ident]
buildMap(Map) - Method in AutoHibernateSpec
buildMap(Map) - Method in DomainRepoTest
buildMap(Map, Class) - Method in TestDataJson
Just a convienience method to return buildJson().json as Map
buildMapFromOriginal(Map, Map) - Method in KeyVersion
buildMapFromPaths(Object, List<String>, boolean) - Method in BeanPathTools
Provides an ability to retrieve object's fields into a map.
buildMessageParams(GormEntity) - Method in RepoMessage
build a map of message params with ident,domainLabel and args ident -> the value of the name field is the dom has one, or the id if not.
buildMsg(Map) - Method in ErrorMessageService
buildOrderByClause(String, PersistentClass, String, String) - Method in GrailsDomainBinder
buildUpdateMap(Map) - Method in AutoHibernateSpec
buildUpdateMap(Map) - Method in DomainRepoTest

C

cacheEventsMethods(Class) - Method in RepoEventPublisher
calculateTableForMany(ToMany, String) - Method in GrailsDomainBinder
Calculates the mapping table for a many-to-many.
canBindOneToOneWithSingleColumnAndForeignKey(Association) - Method in GrailsDomainBinder
canConvert(Object) - Method in MultiFormatDateConverter
CASCADE_ALL_DELETE_ORPHAN - Field in GrailsDomainBinder
CASCADE_ALL - Field in GrailsDomainBinder
CASCADE_NONE - Field in GrailsDomainBinder
CASCADE_SAVE_UPDATE - Field in GrailsDomainBinder
checkFound(GormEntity, Serializable, String) - Method in RepoUtil
check that the passed in entity is not null and throws EntityNotFoundException if so
checkVersion(GormEntity, Long) - Method in RepoUtil
checks the passed in version with the version on the entity (entity.version) make sure entity.version is not greater
CLASS_TO_BINDING_INCLUDE_LIST - Field in EntityMapBinder
cleanupRegistry() - Method in DataIntegrationTest
clear() - Method in GormRepo
cache clear on the datastore's currentSession.
clear(TransactionStatus) - Method in RepoUtil
clear(TransactionStatus) - Method in WithTrx
clearMappingCache(Class<?>) - Method in GrailsDomainBinder
clearMetaClassChanges() - Method in DataIntegrationTest
Reverts all metaclass changes done since last call to trackMetaClassChanges()
cloneCriteria(DetachedCriteria) - Method in MangoBuilder
collate(List, Integer) - Method in AsyncSupport
Uses collate to break or slice the list into sub-lists of batches.
commonBeans() - Method in GormToolsSpecHelper
configure(Type, Properties, ServiceRegistry) - Method in SpringBeanIdGenerator
configureDerivedProperties(PersistentEntity, Mapping) - Method in GrailsDomainBinder
configureNamingStrategy(String, Object) - Method in GrailsDomainBinder
Override the default naming strategy given a Class or a full class name, or an instance of a NamingStrategy.
contribute(InFlightMetadataCollector, IndexView) - Method in GrailsDomainBinder
convert(Object) - Method in MultiFormatDateConverter
Converts input string to date format based on formats
convertStringToDateTime(String, String) - Method in DateUtil
Converts a date to a specified format.
copyDomain(Object, Object, Map, boolean) - Method in GormUtils
Copies properties from source to target object.
copyProperties(Object, Object, boolean, String) - Method in GormUtils
Copy all given property values from source to target.
countDigits(Number) - Method in GrailsDomainBinder
@return a count of the digits in the specified number
countTotals(Class, Map, List<String>, Closure) - Method in DefaultMangoQuery
Calculates sums for specified properties in enities query restricted by mango criteria
create tests() - Method in DomainRepoCrudSpec
create(Map, Map) - Method in GormRepo
Transactional wrap for doCreate
create(Map, Map) - Method in GormRepoEntity
Creates, binds and persists and instance
create(Map, Map) - Method in RepositoryApi
createClassProperties(HibernatePersistentEntity, PersistentClass, InFlightMetadataCollector, String) - Method in GrailsDomainBinder
Creates and binds the properties for the specified Grails domain class and PersistentClass and binds them to the Hibernate runtime meta model
createColumnMap(int) - Method in GrailsParameterMapRowMapper
Returns a GrailsParameterMap instance.
created(GormEntity, boolean) - Method in RepoMessage
createEntity(Map) - Method in DomainRepoTest
createKeyForProps(PersistentProperty, String, Table, String, List<?>, String) - Method in GrailsDomainBinder
createPrimaryKeyValue(InFlightMetadataCollector, PersistentProperty, Collection, Map<?, ?>) - Method in GrailsDomainBinder
Creates the DependentValue object that forms a primary key reference for the collection.
createProperty(Value, PersistentClass, PersistentProperty, InFlightMetadataCollector) - Method in GrailsDomainBinder
createUniqueKeyForColumns(Table, String, List<Column>) - Method in GrailsDomainBinder
CriteriaUtils - Class in gorm.tools.hibernate.criteria
For consistently searching across data types.
CT - Field in GrailsDomainBinder

D

DataIntegrationTest - Trait in gorm.tools.testing.integration
Contains helpers for integration tests.
DataRepoTest - Trait in gorm.tools.testing.unit
Spec trait to use as a drop in replacement of DataTest and GormToolsTest that has all the methods from the BuildDataTest to build data for the repos will set up the repositories properly for the mocked domains
dataSourceName - Field in GrailsDomainBinder
dateToString(Date, String) - Method in IsoDateUtil
Converts a Date into a string using a specified format.
DateUtil - Class in gorm.tools.beans
custom manipulations with dates.
DbDialectService - Class in gorm.tools
Utility class to help create generic code and SQL that can work across supported databases.
DEFAULT_ENUM_TYPE - Field in GrailsDomainBinder
DefaultGormRepo - Class in gorm.tools.repository
A concrete implementation of the GormRepo
DefaultGormRepo(Class<D>) - Constructor in DefaultGormRepo
DefaultGrailsRepositoryClass - Class in grails.plugin.gormtools
@author Joshua Burnett based on the grails source DefaultGrailsServiceClass
DefaultGrailsRepositoryClass(Class, String) - Constructor in DefaultGrailsRepositoryClass
defaultLocale() - Method in RepoMessage
DefaultMangoQuery - Class in gorm.tools.mango
Default implementation of MangoQuery.
defaultMapping - Field in GrailsDomainBinder
DelegatingBean - Class in gorm.tools.beans
Used mainly by BeanPathTools
DelegatingBean(Object) - Constructor in DelegatingBean
deleted(GormEntity, Serializable, boolean) - Method in RepoMessage
doAfterBind(RepositoryApi, GormEntity, Map, BindAction, Map) - Method in RepoEventPublisher
doAfterPersist(RepositoryApi, GormEntity, Map) - Method in RepoEventPublisher
doAfterRemove(RepositoryApi, GormEntity, Map) - Method in RepoEventPublisher
doBatch(Map, List, Closure) - Method in AsyncSupport
calls closure for each item in list.
doBeforeBind(RepositoryApi, GormEntity, Map, BindAction, Map) - Method in RepoEventPublisher
doBeforePersist(RepositoryApi, GormEntity, Map) - Method in RepoEventPublisher
doBeforeRemove(RepositoryApi, GormEntity, Map) - Method in RepoEventPublisher
doBind(Object, DataBindingSource, String, List, List, DataBindingListener, Object) - Method in EntityMapBinder
doBind(Map, D, Map, BindAction) - Method in GormRepo
Main bind method that redirects call to the injected mapBinder.
doBind(Map, D, Map, BindAction) - Method in RepositoryApi
Main bind method that redirects call to the injected mapBinder. see getMapBinder override this one in implementing classes. can also call this if you don't want events to fire
doCreate(Map, Map) - Method in GormRepo
Creates entity using the data from params. calls the bind with bindMethod='Create'
doCreate(Map, Map) - Method in RepositoryApi
Creates entity using the data from params. calls the bind with BindAction.Create
DomainRepoCrudSpec - Class in gorm.tools.testing.unit
executes a series automatic "sanity" checks on the domain and repo for CRUD.
DomainRepoTest - Trait in gorm.tools.testing.unit
Should works as a drop in replacement for the Grails Testing Support's grails.testing.gorm.DomainUnitTest for testing a single entity using Generics Its walks the tree so if you have a Book that has a required Author association you only need to do implement DomainRepoTest and it will take care of mocking the Author for you.
doPersist(Map, D) - Method in GormRepo
saves a domain entity with the passed in args.
doPersist(Map, D) - Method in RepositoryApi
saves a domain entity with the passed in args.
doRemove(Map, D) - Method in GormRepo
no trx wrapper. delete entity.
doRemove(D) - Method in RepositoryApi
doUpdate(Map, Map) - Method in GormRepo
Updates entity using the data from params. calls the bind with bindMethod='Update'
doUpdate(Map, Map) - Method in RepositoryApi
Updates entity using the data from params. calls the bind with BindAction.Update
DummyEvent - Class in gorm.tools.repository.events

E

eachBatch(String, int, Closure) - Method in ScrollableQuery
Executes the query and calls the closure for each batch of records.
eachPage(Closure) - Method in Pager
Calls passed closure for each page
eachParallel(Map, Collection<T>, Closure) - Method in AsyncSupport
Iterates over the lists and calls the closure passing in the list item and the args asynchronously.
eachParallel(Map, Collection<T>, Closure) - Method in GparsAsyncSupport
Iterates over the batchList with GParsPoolUtil.eachParallel and calls the closure passing in the list and the args Uses withSession to make sure there is a session bound to the thread
eachRow(String, Closure) - Method in ScrollableQuery
Executes the query and calls the closure for each row.
EMPTY_PATH - Field in GrailsDomainBinder
EmptyErrors - Class in gorm.tools.repository.errors
just a concrete errors implementation for the binding errors so we can use it as a placeholder
EmptyErrors(String) - Constructor in EmptyErrors
ensureList(Object) - Method in TestTools
makes sure the passed in object is a list, if not then it wraps it in one helpful when creating spocks data pipes
entityContains(Map) - Method in DomainRepoTest
asserts that the entity's props contains the expected map
entityContains(GormEntity, Map) - Method in TestTools
Checks if the GormEntity's properties contains whats in expected calls mapContains after is collects the entities properties into a map
EntityMapBinder - Class in gorm.tools.databinding
Faster data binder for PersistentEntity.persistentProperties.
EntityMapBinder(GrailsApplication) - Constructor in EntityMapBinder
EntityNotFoundException - Class in gorm.tools.repository.errors
an extension of the DataRetrievalFailureException that is more performant. fillInStackTrace is overriden to show nothing so it will be faster and consume less memory when thrown.
EntityNotFoundException(String, Throwable) - Constructor in EntityNotFoundException
Constructor for DataRetrievalFailureException.
EntityValidationException - Class in gorm.tools.repository.errors
an extension of the default ValidationException so you can pass the entity and the message map
EntityValidationException(Map, Object, Errors, Throwable) - Constructor in EntityValidationException
ENUM_CLASS_PROP - Field in GrailsDomainBinder
ENUM_TYPE_CLASS - Field in GrailsDomainBinder
ENUM_TYPE_PROP - Field in GrailsDomainBinder
eq(String, Object) - Method in GormHibernateCriteriaBuilder
ErrorMessageService - Class in grails.plugin.gormtools
evaluateMapping(PersistentEntity, Closure<?>, boolean) - Method in GrailsDomainBinder

F

fastBind(Object, DataBindingSource, List, DataBindingListener, Object) - Method in EntityMapBinder
Binds properties which specified in a white list on the given entity.
fillInStackTrace() - Method in EntityNotFoundException
findConstrainedProperties(PersistentEntity) - Method in GormMetaUtils
findOrCreate(String) - Method in PooledIdGenerator
findPersistentEntity(String) - Method in GormMetaUtils
finds domain using either a simple name like "Product" or fully qualified name "com.foo.Product" name can start with either a lower or upper case
findRepo() - Method in GormRepoEntity
finds the repo bean in the appctx if cachedRepo is null. returns the cachedRepo if its already set
findRepoClass(Class) - Method in GormToolsSpecHelper
Finds repository class in same package as domain class.
findRepository(Class) - Method in RepoUtil
flatten(Object) - Method in MapFlattener
Groovy transforms JSON to either a Map or List based on the root node.
flattenMap(HttpServletRequest, Map) - Method in BeanPathTools
takes a request and an optional map.
flush() - Method in DataIntegrationTest
Flushes the current datastore session.
flush() - Method in GormRepo
flush on the datastore's currentSession.
flush() - Method in RepoUtil
flushes the session
flushAndClear() - Method in DataIntegrationTest
flushAndClear() - Method in GormToolsSpecHelper
flushAndClear(TransactionStatus) - Method in RepoUtil
flushAndClear(TransactionStatus) - Method in WithTrx
FOREIGN_KEY_SUFFIX - Field in GrailsDomainBinder
format(LocalDate, String) - Method in IsoDateUtil
fromLocalDate(LocalDate, ZoneId) - Method in DateUtil
fromLocalDateTime(LocalDateTime, ZoneId) - Method in DateUtil

G

generate(SharedSessionContractImplementor, Object) - Method in SpringBeanIdGenerator
get(String, Class<T>) - Method in AppCtx
Preferred method as typed checked, call the ApplicationContext.getBean
get(Serializable) - Method in DomainRepoTest
get(Map) - Method in GormRepo
This default will redirect the call to get(Serializable id, Long version).
get(Map) - Method in RepositoryApi
This default will redirect the call to get(Serializable id, Long version).
getActualFieldValue(String) - Method in EmptyErrors
getAndIncrement() - Method in PooledIdGenerator.IdTuple
getAndUpdate(String, AtomicReference<IdTuple>) - Method in PooledIdGenerator
Uses a lambda/closure to go get a new set of ids if the current iterator is at its max
getAnnotationTypeClass() - Method in GormRepositoryArtefactTypeTransformation
getArtefactTypes() - Method in GormRepoEntityTraitInjector
getAssociationDescription(Association) - Method in GrailsDomainBinder
getBatchSize(String) - Method in PooledIdGenerator
getBindingIncludeList(Object) - Method in EntityMapBinder
Sets up a list of properties which can be binded to a given domain entity.
getCalendarInstanceByDate(Date) - Method in DateUtil
Returns a Calendar instance for a given date.
getCharFn() - Method in DbDialectService
getColumnForSimpleValue(SimpleValue) - Method in GrailsDomainBinder
getColumnNameForPropertyAndPath(PersistentProperty, String, ColumnConfig, String) - Method in GrailsDomainBinder
getConcat() - Method in DbDialectService
getConfig() - Method in AppCtx
@return the merged configs from application.yml, application.groovy, etc...
getCtx() - Method in AppCtx
@return the spring ApplicationContext
getCtx() - Method in GormToolsSpecHelper
conveinince shortcut for applicationContext
getCurrentCalendarInstance() - Method in DateUtil
Returns a Calendar instance for a given date.
getCurrentDate() - Method in DbDialectService
getCurrentSession() - Method in DataIntegrationTest
getDatastore() - Method in DataIntegrationTest
consistency with other areas of grails and other unit tests
getDatastore() - Method in GormRepo
gets the datastore for this Gorm domain instance
getDatastore() - Method in GormToolsHibernateSpec
consistency with other areas of grails and other unit tests
getDatastore() - Method in GormToolsSpecHelper
FIX for https://github.com/grails/grails-testing-support/issues/22 changes dataStore to lowercase datastore for consistency
getDateDifference_inHours(Date) - Method in DateUtil
Calculates a number of hours between now and the specified date.
getDateFormatForDialect(Object) - Method in DbDialectService
hack for Oracle date formats *
getDaysBetween(Date, Date) - Method in DateUtil
Returns the number of days between two dates.
getDefaultColumnName(PersistentProperty, String) - Method in GrailsDomainBinder
getDialect() - Method in DbDialectService
getDialectName() - Method in DbDialectService
getDomainClasses() - Method in AutoHibernateSpec
getDomainClassesToMock() - Method in DomainRepoTest
this is called by the DataTestSetupSpecInterceptor which calls the mockDomains.
getEnableEvents() - Method in RepositoryApi
default to true.
getEntityClass() - Method in AutoHibernateSpec
getEntityClass() - Method in DomainRepoTest
getEntityClass() - Method in GormRepo
The gorm domain class. uses the GenericTypeResolver is not set during contruction
getEntityClass() - Method in GormRepoEntity
getEntityClass() - Method in QueryMangoEntityApi
getEntityClass() - Method in RepositoryApi
The java class for the Gorm domain (persistence entity). will generally get set in constructor or using the generic as done in GormRepo.getEntityClass using the GenericTypeResolver
getFields(Object) - Method in BeanPathTools
getFieldsToBuild(Class, Object, Map) - Method in TestDataJson
getFieldValue(Object, String) - Method in BeanPathTools
getFirstDateOfMonth() - Method in DateUtil
Returns the first day of the current month and sets time to midnight.
getFirstDayOfMonth(Date, int) - Method in DateUtil
getFirstDayOfWeek() - Method in DateUtil
Returns the first day of the current week and sets time to midnight.
getForeignKeyForPropertyDomainClass(PersistentProperty, String) - Method in GrailsDomainBinder
getFourMonthsBack() - Method in DateUtil
getGlobalVariables() - Method in DbDialectService
getGrails() - Method in AppCtx
@return the GrailsApplication
getGrailsParameterMap(Map, HttpServletRequest) - Method in BeanPathTools
getIdGenerator() - Method in IdGeneratorHolder
getIfNull() - Method in DbDialectService
getIncludes(String, List<String>) - Method in BeanPathTools
getIndexColumnName(PersistentProperty, String) - Method in GrailsDomainBinder
getIndexColumnType(PersistentProperty, String) - Method in GrailsDomainBinder
getInsertableness(PersistentProperty) - Method in GrailsDomainBinder
getInstanceApi() - Method in GormRepo
getJoinedSubClassTableName(HibernatePersistentEntity, PersistentClass, Table, InFlightMetadataCollector, String) - Method in GrailsDomainBinder
getJson() - Method in Jsonify.JsonifyResult
getJsonData() - Method in Pager
Returns formatted page with next values page is the page we are on, total is the total number f pages based on max per page setting records is the total # of records we have rows are the data
getJsonText() - Method in Jsonify.JsonifyResult
getLastDayOfMonth(Date, int) - Method in DateUtil
getLastDayOfWeek() - Method in DateUtil
Returns the last day of the current week and sets time to before midnight (23:59:59).
getLastWeekEndDate() - Method in DateUtil
getLastWeekStartDate() - Method in DateUtil
getLaziness(PersistentProperty) - Method in GrailsDomainBinder
getMapBinder() - Method in RepositoryApi
The data binder to use.
getMapElementName(PersistentProperty, String) - Method in GrailsDomainBinder
getMapping(PersistentEntity) - Method in GormMetaUtils
Returns the mapping for the entity to DB.
getMapping(PersistentEntity) - Method in GrailsDomainBinder
Obtains a mapping object for the given domain class nam
getMappingContext() - Method in GormMetaUtils
the mapping grailsDomainClassMappingContext.
getMaxSize(List<?>) - Method in GrailsDomainBinder
@return the maximum length of the strings in the specified list
getMetadataBuildingContext() - Method in GrailsDomainBinder
getMonthDiff(Date, Date) - Method in DateUtil
Get Month difference between two dates
getMonthLetter(String) - Method in DateUtil
Returns the first letter of a month.
getMonthLetterByNum(int) - Method in DateUtil
Returns the first letter(uppercase) of a specified month.
getNameForPropertyAndPath(PersistentProperty, String) - Method in GrailsDomainBinder
getNamingStrategy(String) - Method in GrailsDomainBinder
getNestedBean(Object, String) - Method in BeanPathTools
Returns the deepest nested bean
getNewId(String) - Method in StringIdGenerator
getNextId(String, long) - Method in IdGenerator
@param keyName the key value of the id. usually of form "table.id"
getNextId(String, long) - Method in JdbcIdGenerator
getNextId(String) - Method in MockJdbcIdGenerator
getNextId(String, long) - Method in PooledIdGenerator
this implementation does nothing here. throws IllegalAccessException
getNextMonth() - Method in DateUtil
Returns the next month for current date and sets the day number to 1.
getOffset() - Method in Pager
Calculates offset based on page number and max value
getPageCount() - Method in Pager
Calculates total number of pages
getPersistentEntity(GormEntity) - Method in GormMetaUtils
Returns a persistent entity using a domain instance.
getPersistentInstance(Class<?>, Object) - Method in EntityMapBinder
getPersistentProperties(String) - Method in GormMetaUtils
Returns persistent properties for persistent entity(finds by name) Adds composite identeties, which are not in persistent properties by default
getPluginName() - Method in RepositoryArtefactHandler
getPreviousMonth() - Method in DateUtil
Returns the previous month for current date and sets the day number to 1.
getProperty(PersistentClass, String) - Method in GrailsDomainBinder
getPropertyConfig(PersistentProperty) - Method in GrailsDomainBinder
getPropertyValue(Object, String) - Method in GormUtils
Return the value of the (possibly nested) property of the specified name, for the specified source object
getQuickSearchFields(DetachedCriteria) - Method in MangoBuilder
getRepo() - Method in GormRepoEntity
Calls the findRepo(). can be overriden to return the concrete domain Repository
getRepo() - Method in QueryMangoEntity
getRepo(Class<T>) - Method in RepoUtil
getRepoBeanClosure(GrailsRepositoryClass, Object) - Method in GormToolsPluginHelper
getRepoBeanName(Class) - Method in RepositoryArtefactHandler
getRepoBeanName(Class) - Method in RepoUtil
getRepoClassName(Class) - Method in RepositoryArtefactHandler
Static helpers for other classes that need to look up the spring beans
getRepoClassName(Class) - Method in RepoUtil
getRepositoryClasses() - Method in RepoUtil
getResolvableType() - Method in RepositoryEvent
done per the spring docs so that listeners can bind to the generic of the event.
getRootMapping(PersistentEntity) - Method in GrailsDomainBinder
getRoutingKey() - Method in RepositoryEvent
@return the routing key in the form of "DomainClass.eventMethod", for example "City.afterPersist"
getSingleColumnConfig(PropertyConfig) - Method in GrailsDomainBinder
getStaticApi() - Method in GormRepo
getSubstringFn() - Method in DbDialectService
getTableName(PersistentEntity, String) - Method in GrailsDomainBinder
Evaluates the table name for the given property
getTarget() - Method in EmptyErrors
getTargetClass(DetachedCriteria) - Method in MangoBuilder
getTargetType() - Method in MultiFormatDateConverter
The type converter should be applied to
getThreeMonthsBack() - Method in DateUtil
getTop(int) - Method in DbDialectService
getTrait() - Method in GormRepoEntityTraitInjector
getTwoMonthsBack() - Method in DateUtil
getTypeName(PersistentProperty, PropertyConfig, Mapping) - Method in GrailsDomainBinder
getUpdateableness(PersistentProperty) - Method in GrailsDomainBinder
getUserType(PersistentProperty) - Method in GrailsDomainBinder
getViewHelper() - Method in Jsonify
getViewTemplate() - Method in Jsonify
getYearOf(TemporalAccessor) - Method in DateUtil
Returns the year of the date specified.
GormBatchRepo - Trait in gorm.tools.repository.api
A trait add batch processing and "mass" updating methods to a Repository
GormHibernateCriteriaBuilder - Class in gorm.tools.hibernate.criteria
This is here to make it easier to build criteria with domain bean paths allows order('invoice.customer.name')
GormHibernateCriteriaBuilder(Class, SessionFactory) - Constructor in GormHibernateCriteriaBuilder
GormMetaUtils - Class in gorm.tools
A bunch of helper and lookup/finder statics for dealing with domain classes and PersistentEntity.
GormRepo - Trait in gorm.tools.repository
A trait that turns a class into a Repository
GormRepoEntity - Trait in gorm.tools.repository
Main trait for a domain. gets applied to them during startup grails artifact part
GormRepoEntityTraitInjector - Class in grails.plugin.gormtools
@author Joshua Burnett (@basejump)
GormRepository - Annotation Type in gorm.tools.compiler
Annotation that marks a Repository artifact
GormRepositoryArtefactTypeTransformation - Class in gorm.tools.compiler
A transformation that makes an Artefact a GormRepository
GormToolsHibernateSpec - Class in gorm.tools.testing.hibernate
Can be a drop in replacement for the HibernateSpec.
GormToolsPluginHelper - Class in grails.plugin.gormtools
GormToolsSpecHelper - Trait in gorm.tools.testing.unit
Helper utils for mocking spring beans needed to test repository's and domains.
GormToolsTest - Trait in gorm.tools.testing.unit
Specification trait to use as a drop in replacement for DataTest, will set up the repositories properly for the mocked domains.
GormUtils - Class in gorm.tools
GormUtils provides a set of static helpers for working with domain classes.
GparsAsyncSupport - Class in gorm.tools.async
a Gpars implementation of the AsyncSupport trait to be used for colating/slicing a list into "batches" to then asynchronously process with Transactions insert or update for maximum performance.
GrailsDomainBinder - Class in org.grails.orm.hibernate.cfg
Handles the binding Grails domain classes and properties to the Hibernate runtime meta model.
GrailsDomainBinder(String, String, HibernateMappingContext) - Constructor in GrailsDomainBinder
GrailsParameterMapRowMapper - Class in gorm.tools.jdbc
Row mapper which allows to convert data from a given ResultSet instance to a grails parameter map, which can be used for databinding.
GrailsRepositoryClass - Interface in grails.plugin.gormtools
@author Joshua Burnett (@basejump)

H

handleException(RuntimeException, D) - Method in GormRepo
handleException(RuntimeException, D) - Method in RepositoryApi
handleJunction(DetachedCriteria, List) - Method in MangoBuilder
junctions are basically used like a stack that we pop. when they finish they get added to the criteria list.
handleLazyProxy(PersistentEntity, PersistentProperty) - Method in GrailsDomainBinder
handleUniqueConstraint(PersistentProperty, Column, String, Table, String, String) - Method in GrailsDomainBinder
hasCompositeIdentifier(Mapping) - Method in GrailsDomainBinder
hasJoinColumnMapping(PropertyConfig) - Method in GrailsDomainBinder
hasJoinKeyMapping(PropertyConfig) - Method in GrailsDomainBinder
hasJoinTableColumnNameMapping(PropertyConfig) - Method in GrailsDomainBinder
hasProperty(PersistentEntity, String) - Method in GormMetaUtils
Check if Persistent Entity has property by path
hibernateMappingContext - Field in GrailsDomainBinder

I

IdGenerator - Interface in gorm.tools.idgen
idGenerator - Field in IdGeneratorHolder
IdGeneratorHolder - Class in gorm.tools.idgen
@Deprecated do not use anymore
ilike(String, Object) - Method in GormHibernateCriteriaBuilder
init() - Method in GparsAsyncSupport
setup defaults for poolSize and batchSize if config isn't present. batchSize set to 100 if not config found
init() - Method in RepoEventPublisher
inList(String, Object) - Method in GormHibernateCriteriaBuilder
invoke(String, Object) - Method in MangoBuilder
invokeEventMethod(Object, String, Object) - Method in RepoEventPublisher
isArtefactClass(Class) - Method in RepositoryArtefactHandler
isBidirectionalManyToOne(PersistentProperty) - Method in GrailsDomainBinder
isBidirectionalManyToOneWithListMapping(PersistentProperty, Property) - Method in GrailsDomainBinder
isBidirectionalOneToManyMap(Association) - Method in GrailsDomainBinder
isCircularAssociation(PersistentProperty) - Method in GrailsDomainBinder
isComponentPropertyNullable(PersistentProperty) - Method in GrailsDomainBinder
isCompositeIdProperty(Mapping, PersistentProperty) - Method in GrailsDomainBinder
isExplicitBind(Object, String) - Method in EntityMapBinder
Checks if a given association is explicitly marked as bindable and should be binded in any case.
isH2() - Method in DbDialectService
isIdentityProperty(Mapping, PersistentProperty) - Method in GrailsDomainBinder
isMsSql() - Method in DbDialectService
isMySql() - Method in DbDialectService
isNonPropertyToken(String) - Method in GrailsDomainBinder
isNotEmpty(String) - Method in GrailsDomainBinder
IsoDateUtil - Class in gorm.tools.beans
Provides a set of methods for parsing/formatting ISO 8601 dates.
isSaveUpdateCascade(String) - Method in GrailsDomainBinder
Check if a save-update cascade is defined within the Hibernate cascade properties string.
isSorted(PersistentProperty) - Method in GrailsDomainBinder
Establish whether a collection property is sorted
isTodayTheDate(String, int) - Method in DateUtil
Checks if the current day number is equal to specified day number in a given period.
isUnidirectionalOneToMany(PersistentProperty) - Method in GrailsDomainBinder
Checks whether a property is a unidirectional non-circular one-to-many

J

JdbcIdGenerator - Class in gorm.tools.idgen
A Jdbc implementation of the IdGenerator.
Jsonify - Class in gorm.tools.json
A helper class that uses the logic in grails json view plugin to generate json without needing a gson file and outside the scope of and HTTP request using the JsonViewTemplateEngine see http://views.grails.org/latest/#_the_jsontemplateengine
Jsonify.JsonifyResult - Class in gorm.tools.json
JsonViewSpecSetup - Trait in gorm.tools.testing.unit
Does the setup to make sure beans for json-views are setup

K

KeyVersion - Class in gorm.tools.beans

L

like(String, Object) - Method in GormHibernateCriteriaBuilder
Creates a Criterion with from the specified property name and "like" expression
linkBidirectionalOneToMany(Collection, PersistentClass, DependantValue, PersistentProperty) - Method in GrailsDomainBinder
Links a bidirectional one-to-many, configuring the inverse side and using a column copy to perform the link
linkValueUsingAColumnCopy(PersistentProperty, Column, DependantValue) - Method in GrailsDomainBinder
ListParseUtil - Class in gorm.tools.beans
ListParseUtil provides a set of static helpers for parsing and manipulating with comma separated lists in strings.
LOG - Field in GrailsDomainBinder
logCascadeMapping(Association, String, PersistentEntity) - Method in GrailsDomainBinder

M

MangoBuilder - Class in gorm.tools.mango
the main builder to turn Mango QL maps and json into DetachedCriteria for Gorm
MangoQuery - Interface in gorm.tools.mango.api
Interface to be implemented by a bean
MangoTidyMap - Class in gorm.tools.mango
Utils to normalizes params map to transform it to mango language
MapBinder - Interface in gorm.tools.databinding
binds data from a map to a GormEntity.
mapContains(Map, Map, List<String>) - Method in TestTools
Loosely test 2 maps for equality asserts more or less that every keySet in [a: 1, b: 2] exists in [a: 1, b: 2, c: 3] which is true in this example mapContains([a: 1, b: 2], [a: 1, c: 3]) returns false mapContains([a: 2, b: 2], [a: 1, b: 2]) also returns false if subset is an empty map or null returns false
MapFlattener - Class in gorm.tools.beans
MapFlattener taken from here https://github.com/dmillett/jConfigMap
mapRow(ResultSet, int) - Method in GrailsParameterMapRowMapper
Returns a GrailsParameterMap instance which is build from records in a given ResultSet.
max(Map, Integer) - Method in Pager
Computes max value, if max not specified, then 10 Default max allowed value is 100
metadataBuildingContext - Field in GrailsDomainBinder
methodMissing(String, Object) - Method in DelegatingBean
methodMissing(String, Object) - Method in GormHibernateCriteriaBuilder
Dynamic method dispatch fail!
methodMissing(String, Object) - Method in RepoDelegatingBean
mockDomains(Class<?>) - Method in DataRepoTest
mockDomains(Class<?>) - Method in GormToolsTest
Mocks domain classes providing the equivalent GORM behavior as well as the Repo for the domain.
MockJdbcIdGenerator - Class in gorm.tools.testing.unit
mockRepositories(Class<?>) - Method in GormToolsSpecHelper
Mocks Repositories for passed in Domain classes.
MultiFormatDateConverter - Class in gorm.tools.beans
Used for binding date properties from string

N

NAMING_STRATEGIES - Field in GrailsDomainBinder
Overrideable naming strategy.
namingStrategy - Field in GrailsDomainBinder
nestedPathPropCall(String, Object, String) - Method in GormHibernateCriteriaBuilder
not(DetachedCriteria, List) - Method in MangoBuilder
Handles a disjunction
notDeleted(GormEntity, Serializable, boolean) - Method in RepoMessage
notFound(String, Map) - Method in RepoMessage
returns a messageMap not.found.message for a not found error
notFoundId(String, Serializable) - Method in RepoMessage
notIn(DetachedCriteria, String, List) - Method in MangoBuilder
notSaved(GormEntity, boolean) - Method in RepoMessage
notSavedDataAccess(GormEntity, boolean) - Method in RepoMessage
notUpdated(GormEntity, boolean) - Method in RepoMessage

O

onChange(Object, GrailsApplication, Plugin) - Method in GormToolsPluginHelper
onMockDomains(Class<?>) - Method in DataRepoTest
optimisticLockingFailure(GormEntity, boolean) - Method in RepoMessage
or(DetachedCriteria, List) - Method in MangoBuilder
Handles a disjunction
order(String, String, boolean) - Method in GormHibernateCriteriaBuilder
Orders by the specified property name and direction takes invoice.customer.name and builds a closure that looks like
order(DetachedCriteria, Object) - Method in MangoBuilder
OrderCheater - Class in gorm.tools.hibernate.criteria
This class exists solely to circumvent the "protected" visibility of the org.hibernate.criterion.Order class constructor.
OrderCheater(String, boolean) - Constructor in OrderCheater

P

page(Map) - Method in Pager
Computes page number, if not passed then 1
Pager - Class in gorm.tools
a holder object for paged data
Pager(Map) - Constructor in Pager
Constructor with params
parallel(Map, List<List>, Closure) - Method in AsyncSupport
Iterates over the batchList of lists and calls the closure passing in the list and the args asynchronously.
parallel(Map, List<List>, Closure) - Method in GparsAsyncSupport
Iterates over the batchList with GParsPoolUtil.eachParallel and calls the closure passing in the list and the args Generally you will want to use the AsyncSupport.parallel method that added by the Trait as it calls the withTransaction
parallelBatch(Map, List<List>, Closure) - Method in AsyncSupport
calls parallel with the args, batches list calling doBatch for each batch in batches passes itemClosure down through to the doBatch
parallelCollate(Map, List, Closure) - Method in AsyncSupport
Uses collate to break or slice the list into batches and then calls parallelBatch
parse(String) - Method in IsoDateUtil
Parse date sent by client (mostly JSON).
parseArgs(Map) - Method in TestDataJson
Parse and split the args map into its components for both the TestData and json-views
parseLocalDate(String) - Method in IsoDateUtil
parseLocalDateTime(String) - Method in IsoDateUtil
parseLongList(String) - Method in ListParseUtil
Parses a comma separated list of numbers in a given string.
parseParams(Map) - Method in DefaultMangoQuery
returns a Map with a criteria key and a pager key containing maps for those.
parseStringList(String) - Method in ListParseUtil
Parses a comma separated list of strings in a given String instance into an actual list of strings.
pathToMap(String, Object, Map) - Method in MangoTidyMap
Extends the map with nested value by specific path so pathToMap("a.b.c", 1, [:]) -> [a:[b:[c:1]]] or pathToMap("a.b.c", 1, [d:2]) -> [a:[b:[c:1]], d:2]
persist tests() - Method in DomainRepoCrudSpec
persist(Map, D) - Method in GormRepo
Transactional wrap for doPersist Saves a domain entity with the passed in args and rewraps ValidationException with EntityValidationException on error.
persist(Map) - Method in GormRepoEntity
persist(D) - Method in RepositoryApi
Transactional wrap for doPersist
persistEntity(Map) - Method in DomainRepoTest
PooledIdGenerator - Class in gorm.tools.idgen
An Thread safe implementation that caches a range of values in memory by the key name (ie: "tablename.id") Default cache allocation size is 50 but can be set to other values. requires another IdGenerator implementation to be set in the constructor.
PooledIdGenerator.IdTuple - Class in gorm.tools.idgen
Used before creating large batches where you know the count and want to pre pool and id range larger than the default to avoid the DB round trips to keep incrementing the sequence in the table.
PooledIdGenerator.IdTuple(long, long) - Constructor in PooledIdGenerator.IdTuple
PooledIdGenerator(IdGenerator) - Constructor in PooledIdGenerator
prepareSql() - Method in ScrollableQuery
propertyMissing(String) - Method in DelegatingBean
propertyMissing(String) - Method in RepoDelegatingBean
propName(String) - Method in RepoMessage
propsToMap(Object, String, Map) - Method in BeanPathTools
Provides an ability to retrieve a property of a source object and add it to a map.
publishEvents(RepositoryApi, RepositoryEvent, Object) - Method in RepoEventPublisher

Q

qualify(String, String) - Method in GrailsDomainBinder
query(DetachedCriteria, Map, Closure) - Method in DefaultMangoQuery
List of entities restricted by mango map and criteria closure
query(Class, Map, Closure) - Method in MangoQuery
List of entities restricted by mango map and criteria closure
query(Map, Closure) - Method in QueryMangoEntity
List of entities restricted by mango map and criteria closure
query(Map, Closure) - Method in QueryMangoEntityApi
List of entities restricted by mango map and criteria closure
QueryMangoEntity - Trait in gorm.tools.mango.api
a trait with statics for gorm domain entities that delegates the calls to the repository which should implement the QueryMangoEntityApi
QueryMangoEntityApi - Trait in gorm.tools.mango.api
For repos and concretes classes that work on a single entity
quickSearch(DetachedCriteria, String) - Method in MangoBuilder

R

registerRepository(Class, Class) - Method in GormToolsSpecHelper
remove tests() - Method in DomainRepoCrudSpec
remove(Map, D) - Method in GormRepo
Transactional, Calls delete always with flush = true so we can intercept any DataIntegrityViolationExceptions.
remove(Map) - Method in GormRepoEntity
remove(Map, D) - Method in RepositoryApi
removeBackticks(String) - Method in GrailsDomainBinder
removeById(Map, Serializable) - Method in GormRepo
Remove by ID
removeById(Map, Serializable) - Method in GormRepoEntity
removeById(Serializable) - Method in RepositoryApi
removeEntity(Serializable) - Method in DomainRepoTest
render(Object, Map, Closure) - Method in Jsonify
Useful for testing.
renderWritable(Object, Map, Closure) - Method in Jsonify
REPO - Field in DefaultGrailsRepositoryClass
RepoDelegatingBean - Class in gorm.tools.beans
Delegates missing properties as method calls to the repository for the domain class.
RepoDelegatingBean(GormEntity) - Constructor in RepoDelegatingBean
RepoEventPublisher - Class in gorm.tools.repository.events
Invokes "event methods" on Repository artifacts as well as publish spring events for @EventListeners which can be Transactional and fires Grails events that will be asynchronous
RepoExceptionSupport - Class in gorm.tools.repository.errors
Handler and translator for exceptions thrown by the Repository
RepoListener - Annotation Type in gorm.tools.repository.events
Annotation that marks a method in a repository as a listener for Repository events.
RepoMessage - Class in gorm.tools.repository
A bunch of statics to support the Repository artifacts.
RepositoryApi - Interface in gorm.tools.repository.api
A complete interface for the Repository.
RepositoryArtefactHandler - Class in grails.plugin.gormtools
Grails artefact handler for repository classes
RepositoryArtefactHandler() - Constructor in RepositoryArtefactHandler
RepositoryEvent - Class in gorm.tools.repository.events
Base event class for Repository event firing
RepositoryEvent(RepositoryApi, D, String, Map, BindAction, Map) - Constructor in RepositoryEvent
RepositoryEventType - Enum in gorm.tools.repository.events
RepositoryEventType(Class) - Constructor in RepositoryEventType
RepoUtil - Class in gorm.tools.repository
A bunch of statics to support the repositories.
resolveArtefactType(SourceUnit, AnnotationNode, ClassNode) - Method in GormRepositoryArtefactTypeTransformation
resolveDomainLabel(GormEntity) - Method in RepoMessage
resolveMessage(String, String) - Method in RepoMessage
rollback() - Method in RepoUtil
force a roll back if in a transaction
rows(String) - Method in ScrollableQuery
Load all rows and return as a list, each row in the list would be converted using the passed RowMapper This method holds all rows in memory, so this should not be used if there is going to be large number of rows.

S

sanitizeNameListForSql(String) - Method in ListParseUtil
Accepts a comma separated list as a string, and converts it for safe use as a single-quoted comma separated list.
saved(GormEntity, boolean) - Method in RepoMessage
scanRepoClasses(String) - Method in GormToolsSpecHelper
No Usages Yet..., scans all repository classes in given package.
ScrollableQuery - Class in gorm.tools.jdbc
Groovy Sql wrapper for running scrollable/streaming queries.
ScrollableQuery(RowMapper, DataSource, int) - Constructor in ScrollableQuery
Creates a ScrollableQuery instance with given parameters.
SEQUENCE_KEY - Field in GrailsDomainBinder
sessionFactoryName - Field in GrailsDomainBinder
setBatchSize(String, Long) - Method in PooledIdGenerator
override the default batchSize for the specified key
setCascadeBehaviour(PersistentProperty, Property) - Method in GrailsDomainBinder
setDataFromArgMap(Map) - Method in RepositoryEvent
setDefaultMapping(Closure) - Method in GrailsDomainBinder
The default mapping defined by Settings.SETTING_DEFAULT_MAPPING
setGeneratedUniqueName(UniqueKey) - Method in GrailsDomainBinder
setGenerator(IdGenerator) - Method in PooledIdGenerator
setIdGenerator(IdGenerator) - Method in IdGeneratorHolder
setNamingStrategy(PersistentEntityNamingStrategy) - Method in GrailsDomainBinder
@param namingStrategy Custom naming strategy to plugin into table naming
setParams(Map) - Method in Pager
Set params for Pager
setProp(Object, DataBindingSource, PersistentProperty, DataBindingListener, Object) - Method in EntityMapBinder
Sets a value to a specified target's property.
setRepo(RepositoryApi<D>) - Method in GormRepoEntity
setTime(Calendar, int, int, int, int) - Method in DateUtil
Sets time for a given calendar instance.
setTimeAsOfMidnight(Calendar) - Method in DateUtil
Sets time to midnight(00:00:00) for a given date instance.
setTimeBeforeMidnight(Calendar) - Method in DateUtil
Sets time to 23:59:59 for a given calendar instance.
setToMidnight(Date) - Method in DateUtil
Sets time to midnight(00:00:00) for a given date instance.
setTypeForPropertyConfig(PersistentProperty, SimpleValue, PropertyConfig) - Method in GrailsDomainBinder
setup(String, Object, String) - Method in RepoMessage
just a short method to return a messageMap from the vals passed in
setupData(List, List) - Method in Pager
Setup totalCount property for list, if it absent and fill values that are listed in fieldList
setupJsonViewBeans() - Method in JsonViewSpecSetup
setupSpec() - Method in GormToolsHibernateSpec
setupTransactionService() - Method in GormToolsSpecHelper
shiftCurrentDateByMonths(int) - Method in DateUtil
Shifts the current date by specified number of months and sets current day of month to 1.
shouldBindCollectionWithForeignKey(ToMany) - Method in GrailsDomainBinder
shouldCollectionBindWithJoinColumn(ToMany) - Method in GrailsDomainBinder
sortLeftJoin(List, Object, String) - Method in CriteriaUtils
In some cases we need to make a sorting for a field that is null for some rows, as a result rows where value is null wont be shown, to avoid leftjoin should be applied
SpringBeanIdGenerator - Class in gorm.tools.hibernate
A hibernate IdentifierGenerator that uses a Spring Bean ("idGenerator" is default) to get the id's.
STRING_TYPE - Field in GrailsDomainBinder
StringIdGenerator - Interface in gorm.tools.idgen
supportsJoinColumnMapping(PersistentProperty) - Method in GrailsDomainBinder

T

testCreate() - Method in AutoHibernateSpec
testCreate() - Method in DomainRepoTest
******************** Helpers Methods for expect or then spock blocks ************
TestDataJson - Class in gorm.tools.testing
static build methods to wrap TestData and Jsonify's statics for the json-views.
testPersist() - Method in AutoHibernateSpec
testPersist() - Method in DomainRepoTest
testRemove() - Method in AutoHibernateSpec
testRemove() - Method in DomainRepoTest
TestTools - Class in gorm.tools.testing
Misc utils for testing, asserting and "helpers" in spock tests
testUpdate() - Method in AutoHibernateSpec
testUpdate() - Method in DomainRepoTest
tidy(Map<String, Object>) - Method in MangoTidyMap
Transforms passed params map to normalized mango criteria map
toInteger(Object) - Method in Pager
Converts object to integer
toLocalDate(Date, ZoneId) - Method in DateUtil
toLocalDateTime(Date, ZoneId) - Method in DateUtil
toMangoOperator(Map, Map) - Method in MangoTidyMap
Adds mango operators based on values types
toString() - Method in Jsonify.JsonifyResult
toString() - Method in PooledIdGenerator.IdTuple
toType(DetachedCriteria, String, Object) - Method in MangoBuilder
trackCustomCascadingSaves(Mapping, Iterable<PersistentProperty>) - Method in GrailsDomainBinder
Checks for any custom cascading saves set up via the mapping DSL and records them within the persistent property.
trackMetaClassChanges() - Method in DataIntegrationTest
Start tracking all metaclass changes made after this call, so it can all be undone later.
transformGroovyJsonMap(Map, String) - Method in MapFlattener
Iterates through each Map entry and transforms any sub-maps or sub-arrays therein.
transformJsonArray(List, String) - Method in MapFlattener
Flatten Groovy-JSON Array objects
translateException(RuntimeException, GormEntity) - Method in RepoExceptionSupport
Translates grails ValidationException and springs DataAccessException and DataIntegrityViolationException into our EntityValidationException so we have better information in the exception when its thrown and rolled back
trimBackTigs(String) - Method in GrailsDomainBinder
TrxService - Class in gorm.tools

U

UNDERSCORE - Field in GrailsDomainBinder
unqualify(String) - Method in GrailsDomainBinder
update tests() - Method in DomainRepoCrudSpec
update(Map, Map) - Method in GormRepo
Transactional wrap for doUpdate
update(Map, Map) - Method in GormRepoEntity
update(Map, Map) - Method in RepositoryApi
updated(GormEntity, boolean) - Method in RepoMessage
updateEntity(Map) - Method in DomainRepoTest
updateMapWithKeyValue(Map<String, String>, String, String) - Method in KeyVersion
updateMapWithKeyValues(Map<String, String>, Map<String, String>) - Method in KeyVersion
updateOrDateFormat() - Method in DbDialectService

V

value() - Method in RepoListener
@default ]
Returns:
The types this listener listens for

W

withSession(Closure<T>) - Method in AsyncSupport
WithTrx - Trait in gorm.tools
adds transaction methods to any class. relies on Gorms transactionService.
withTrx(Closure<T>) - Method in GormRepo
Executes the closure within the context of a transaction, creating one if none is present or joining an existing transaction if one is already present.
withTrx(Closure<T>) - Method in TrxService
Executes the given callable within the context of a transaction with the given definition
withTrx(Closure<T>) - Method in WithTrx
Executes the given callable within the context of a transaction with the given definition

X

Y

Z

_

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _