| Fields inherited from class | Fields |
|---|---|
class org.grails.datastore.gorm.GormStaticApi |
__$stMC, __$stMC, __$stMC |
class org.grails.datastore.gorm.AbstractGormApi |
__$stMC, __$stMC |
| Type | Name and description |
|---|---|
org.springframework.data.cassandra.core.CassandraTemplate |
cassandraTemplate |
org.springframework.core.convert.ConversionService |
conversionService |
org.springframework.data.cassandra.mapping.CassandraPersistentEntity<?> |
springCassandraPersistentEntity |
| Constructor and description |
|---|
CassandraGormStaticApi
(java.lang.Class<D> persistentClass, org.grails.datastore.mapping.core.Datastore datastore, java.util.List<org.grails.datastore.gorm.finders.FinderMethod> finders) |
CassandraGormStaticApi
(java.lang.Class<D> persistentClass, org.grails.datastore.mapping.core.Datastore datastore, java.util.List<org.grails.datastore.gorm.finders.FinderMethod> finders, org.springframework.transaction.PlatformTransactionManager transactionManager) |
| Type | Name and description |
|---|---|
java.lang.Object |
append(java.io.Serializable id, java.lang.String propertyName, java.lang.Object element, java.util.Map params = [:])Add the specified element to the instance's embedded list, set or map in the datastore |
java.lang.Object |
deleteFrom(java.io.Serializable id, java.lang.String propertyName, java.lang.Object element, boolean index, java.util.Map params = [:])Remove the specified element, or the element at the specified index, from the instance's embedded list, set or map in the datastore |
D |
findOrCreateWhere(java.util.Map queryMap, java.util.Map args)Finds a single result matching all of the given conditions. |
D |
findOrSaveWhere(java.util.Map queryMap, java.util.Map args)Finds a single result matching all of the given conditions. |
org.springframework.data.cassandra.core.CassandraTemplate |
getCassandraTemplate() |
java.lang.Object |
prepend(java.io.Serializable id, java.lang.String propertyName, java.lang.Object element, java.util.Map params = [:])Prepend the specified element to the instance's embedded list in the datastore |
java.lang.Object |
replaceAt(java.io.Serializable id, java.lang.String propertyName, int index, java.lang.Object element, java.util.Map params = [:])Replace the specified element at the specified index in the instance's embedded list in the datastore |
java.lang.Object |
updateProperties(java.io.Serializable id, java.util.Map properties, java.util.Map params = [:])Update multiple properties on an instance with the specified properties |
java.lang.Object |
updateProperty(java.io.Serializable id, java.lang.String propertyName, java.lang.Object item, java.util.Map params = [:])Update a property on an instance with the specified item |
| Methods inherited from class | Name |
|---|---|
class org.grails.datastore.gorm.GormStaticApi |
org.grails.datastore.gorm.GormStaticApi#findAll(java.lang.String, java.util.Map, java.util.Map), org.grails.datastore.gorm.GormStaticApi#findAll(java.util.Map, groovy.lang.Closure), org.grails.datastore.gorm.GormStaticApi#findAll(groovy.lang.Closure), org.grails.datastore.gorm.GormStaticApi#findAll(java.util.Map), org.grails.datastore.gorm.GormStaticApi#findAll(java.lang.String), org.grails.datastore.gorm.GormStaticApi#findAll(java.lang.String, java.util.Map), org.grails.datastore.gorm.GormStaticApi#findAll(), org.grails.datastore.gorm.GormStaticApi#findAll(java.lang.String, java.util.Collection), org.grails.datastore.gorm.GormStaticApi#findAll(java.lang.String, [Ljava.lang.Object;), org.grails.datastore.gorm.GormStaticApi#findAll(java.lang.Object, java.util.Map), org.grails.datastore.gorm.GormStaticApi#findAll(java.lang.Object), org.grails.datastore.gorm.GormStaticApi#findAll(java.lang.String, java.util.Collection, java.util.Map), org.grails.datastore.gorm.GormStaticApi#methodMissing(java.lang.String, java.lang.Object), org.grails.datastore.gorm.GormStaticApi#where(groovy.lang.Closure), org.grails.datastore.gorm.GormStaticApi#deleteAll([Ljava.lang.Object;), org.grails.datastore.gorm.GormStaticApi#deleteAll(java.lang.Iterable), org.grails.datastore.gorm.GormStaticApi#super$3$$getStaticMetaClass(), org.grails.datastore.gorm.GormStaticApi#getValidationErrorsMap(), org.grails.datastore.gorm.GormStaticApi#getValidationSkipMap(), org.grails.datastore.gorm.GormStaticApi#findWhere(java.util.Map), org.grails.datastore.gorm.GormStaticApi#findWhere(java.util.Map, java.util.Map), org.grails.datastore.gorm.GormStaticApi#withSession(groovy.lang.Closure), org.grails.datastore.gorm.GormStaticApi#withNewTransaction(java.util.Map, groovy.lang.Closure), org.grails.datastore.gorm.GormStaticApi#withNewTransaction(groovy.lang.Closure), org.grails.datastore.gorm.GormStaticApi#saveAll(java.lang.Iterable), org.grails.datastore.gorm.GormStaticApi#saveAll([Ljava.lang.Object;), org.grails.datastore.gorm.GormStaticApi#findOrSaveWhere(java.util.Map), org.grails.datastore.gorm.GormStaticApi#createCriteria(), org.grails.datastore.gorm.GormStaticApi#whereAny(groovy.lang.Closure), org.grails.datastore.gorm.GormStaticApi#getGormDynamicFinders(), org.grails.datastore.gorm.GormStaticApi#withNewSession(groovy.lang.Closure), org.grails.datastore.gorm.GormStaticApi#findOrCreateWhere(java.util.Map), org.grails.datastore.gorm.GormStaticApi#whereLazy(groovy.lang.Closure), org.grails.datastore.gorm.GormStaticApi#withDatastoreSession(groovy.lang.Closure), org.grails.datastore.gorm.GormStaticApi#getGormPersistentEntity(), org.grails.datastore.gorm.GormStaticApi#withCriteria(groovy.lang.Closure), org.grails.datastore.gorm.GormStaticApi#withCriteria(java.util.Map, groovy.lang.Closure), org.grails.datastore.gorm.GormStaticApi#withStatelessSession(groovy.lang.Closure), org.grails.datastore.gorm.GormStaticApi#withTransaction(groovy.lang.Closure), org.grails.datastore.gorm.GormStaticApi#withTransaction(org.springframework.transaction.TransactionDefinition, groovy.lang.Closure), org.grails.datastore.gorm.GormStaticApi#withTransaction(java.util.Map, groovy.lang.Closure), org.grails.datastore.gorm.GormStaticApi#findAllWhere(java.util.Map), org.grails.datastore.gorm.GormStaticApi#findAllWhere(java.util.Map, java.util.Map), org.grails.datastore.gorm.GormStaticApi#proxy(java.io.Serializable), org.grails.datastore.gorm.GormStaticApi#executeQuery(java.lang.String, [Ljava.lang.Object;), org.grails.datastore.gorm.GormStaticApi#executeQuery(java.lang.String, java.util.Collection, java.util.Map), org.grails.datastore.gorm.GormStaticApi#executeQuery(java.lang.String, java.util.Collection), org.grails.datastore.gorm.GormStaticApi#executeQuery(java.lang.String, java.util.Map, java.util.Map), org.grails.datastore.gorm.GormStaticApi#executeQuery(java.lang.String), org.grails.datastore.gorm.GormStaticApi#executeQuery(java.lang.String, java.util.Map), org.grails.datastore.gorm.GormStaticApi#executeUpdate(java.lang.String, java.util.Collection, java.util.Map), org.grails.datastore.gorm.GormStaticApi#executeUpdate(java.lang.String, [Ljava.lang.Object;), org.grails.datastore.gorm.GormStaticApi#executeUpdate(java.lang.String, java.util.Map, java.util.Map), org.grails.datastore.gorm.GormStaticApi#executeUpdate(java.lang.String, java.util.Collection), org.grails.datastore.gorm.GormStaticApi#executeUpdate(java.lang.String), org.grails.datastore.gorm.GormStaticApi#executeUpdate(java.lang.String, java.util.Map), org.grails.datastore.gorm.GormStaticApi#getAsync(), org.grails.datastore.gorm.GormStaticApi#lock(java.io.Serializable), org.grails.datastore.gorm.GormStaticApi#get(java.io.Serializable), org.grails.datastore.gorm.GormStaticApi#count(), org.grails.datastore.gorm.GormStaticApi#find(java.lang.String, java.util.Collection), org.grails.datastore.gorm.GormStaticApi#find(java.lang.String, java.util.Map, java.util.Map), org.grails.datastore.gorm.GormStaticApi#find(java.lang.String, java.util.Map), org.grails.datastore.gorm.GormStaticApi#find(java.lang.String), org.grails.datastore.gorm.GormStaticApi#find(groovy.lang.Closure), org.grails.datastore.gorm.GormStaticApi#find(java.lang.Object, java.util.Map), org.grails.datastore.gorm.GormStaticApi#find(java.lang.String, java.util.Collection, java.util.Map), org.grails.datastore.gorm.GormStaticApi#find(java.lang.String, [Ljava.lang.Object;), org.grails.datastore.gorm.GormStaticApi#find(java.lang.Object), org.grails.datastore.gorm.GormStaticApi#load(java.io.Serializable), org.grails.datastore.gorm.GormStaticApi#create(), org.grails.datastore.gorm.GormStaticApi#first(java.util.Map), org.grails.datastore.gorm.GormStaticApi#first(java.lang.String), org.grails.datastore.gorm.GormStaticApi#first(), org.grails.datastore.gorm.GormStaticApi#list(), org.grails.datastore.gorm.GormStaticApi#list(java.util.Map), org.grails.datastore.gorm.GormStaticApi#exists(java.io.Serializable), org.grails.datastore.gorm.GormStaticApi#read(java.io.Serializable), org.grails.datastore.gorm.GormStaticApi#merge(java.lang.Object), org.grails.datastore.gorm.GormStaticApi#last(), org.grails.datastore.gorm.GormStaticApi#last(java.lang.String), org.grails.datastore.gorm.GormStaticApi#last(java.util.Map), org.grails.datastore.gorm.GormStaticApi#getAll(), org.grails.datastore.gorm.GormStaticApi#getAll([Ljava.io.Serializable;), org.grails.datastore.gorm.GormStaticApi#getAll(java.lang.Iterable), org.grails.datastore.gorm.GormStaticApi#getCount(), org.grails.datastore.gorm.GormStaticApi#super$2$$getStaticMetaClass(), org.grails.datastore.gorm.GormStaticApi#getExtendedMethods(), org.grails.datastore.gorm.GormStaticApi#getEXCLUDES(), org.grails.datastore.gorm.GormStaticApi#getMethods(), org.grails.datastore.gorm.GormStaticApi#setMetaClass(groovy.lang.MetaClass), org.grails.datastore.gorm.GormStaticApi#getMetaClass(), org.grails.datastore.gorm.GormStaticApi#setProperty(java.lang.String, java.lang.Object), org.grails.datastore.gorm.GormStaticApi#getProperty(java.lang.String), org.grails.datastore.gorm.GormStaticApi#invokeMethod(java.lang.String, java.lang.Object), org.grails.datastore.gorm.GormStaticApi#wait(long, int), org.grails.datastore.gorm.GormStaticApi#wait(long), org.grails.datastore.gorm.GormStaticApi#wait(), org.grails.datastore.gorm.GormStaticApi#equals(java.lang.Object), org.grails.datastore.gorm.GormStaticApi#toString(), org.grails.datastore.gorm.GormStaticApi#hashCode(), org.grails.datastore.gorm.GormStaticApi#getClass(), org.grails.datastore.gorm.GormStaticApi#notify(), org.grails.datastore.gorm.GormStaticApi#notifyAll() |
class org.grails.datastore.gorm.AbstractGormApi |
org.grails.datastore.gorm.AbstractGormApi#super$2$$getStaticMetaClass(), org.grails.datastore.gorm.AbstractGormApi#getExtendedMethods(), org.grails.datastore.gorm.AbstractGormApi#getEXCLUDES(), org.grails.datastore.gorm.AbstractGormApi#getMethods(), org.grails.datastore.gorm.AbstractGormApi#setMetaClass(groovy.lang.MetaClass), org.grails.datastore.gorm.AbstractGormApi#getMetaClass(), org.grails.datastore.gorm.AbstractGormApi#setProperty(java.lang.String, java.lang.Object), org.grails.datastore.gorm.AbstractGormApi#getProperty(java.lang.String), org.grails.datastore.gorm.AbstractGormApi#invokeMethod(java.lang.String, java.lang.Object), org.grails.datastore.gorm.AbstractGormApi#wait(long, int), org.grails.datastore.gorm.AbstractGormApi#wait(long), org.grails.datastore.gorm.AbstractGormApi#wait(), org.grails.datastore.gorm.AbstractGormApi#equals(java.lang.Object), org.grails.datastore.gorm.AbstractGormApi#toString(), org.grails.datastore.gorm.AbstractGormApi#hashCode(), org.grails.datastore.gorm.AbstractGormApi#getClass(), org.grails.datastore.gorm.AbstractGormApi#notify(), org.grails.datastore.gorm.AbstractGormApi#notifyAll() |
Add the specified element to the instance's embedded list, set or map in the datastore
id - the id of the instance to updatepropertyName - the name of the embedded list, set or mapelement - the element to addparams - The parametersRemove the specified element, or the element at the specified index, from the instance's embedded list, set or map in the datastore
id - the id of the instance to updatepropertyName - the name of the embedded list, set or mapitem - the element or index of the element to remove in the case of a list, the element in the case of a set or mapisIndex - whether the specified item is an element or the index of the element to remove, only true if removing from a list using index, false otherwiseparams - The parametersFinds a single result matching all of the given conditions. Eg. Book.findWhere(author:"Stephen King", title:"The Stand"). If a matching persistent entity is not found a new entity is created and returned.
queryMap - The map of conditionsargs - The Query argumentsFinds a single result matching all of the given conditions. Eg. Book.findWhere(author:"Stephen King", title:"The Stand"). If a matching persistent entity is not found a new entity is created, saved and returned.
queryMap - The map of conditionsargs - The Query argumentsPrepend the specified element to the instance's embedded list in the datastore
id - the id of the instance to updatepropertyName - the name of the embedded listelement - the element to prependparams - The parametersReplace the specified element at the specified index in the instance's embedded list in the datastore
id - the id of the instance to updatepropertyName - the name of the embedded listindex - the index of the element to replaceelement - the element to be stored at the specified indexparams - The parametersUpdate multiple properties on an instance with the specified properties
id - the id of the instance to updateproperties - a map of property name/value pairs to updateparams - The parametersUpdate a property on an instance with the specified item
id - the id of the instance to updatepropertyName - the name of the property to updateitem - the new value of the propertyparams - The parametersGroovy Documentation