Type Params | Return Type | Name and description |
---|---|---|
|
void |
append(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 and generate an update for the datastore |
|
static void |
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 |
|
void |
deleteFrom(java.lang.String propertyName, java.lang.Object item, boolean isIndex, java.util.Map params = [:]) Remove the specified element, or the element at the specified index, from the instance's embedded list, set or map and generate an update for the datastore |
|
static void |
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 |
|
static D |
findOrCreateWhere(java.util.Map queryMap, java.util.Map args) Finds a single result matching all of the given conditions. |
|
static D |
findOrSaveWhere(java.util.Map queryMap, java.util.Map args) Finds a single result matching all of the given conditions. |
|
static D |
findWhere(java.util.Map queryMap, java.util.Map args) Finds a single result matching all of the given conditions. |
|
static org.springframework.data.cassandra.core.CassandraTemplate |
getCassandraTemplate() |
|
void |
prepend(java.lang.String propertyName, java.lang.Object element, java.util.Map params = [:]) Prepend the specified element to the instance's embedded list and generate an update for the datastore |
|
static void |
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 |
|
void |
replaceAt(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 and generate an update for the datastore |
|
static void |
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 |
|
D |
save(java.util.Map params) Saves an object with the given parameters |
|
D |
update(java.util.Map params = [:]) Update an instance without loading into the session |
|
static void |
updateProperties(java.io.Serializable id, java.util.Map properties, java.util.Map params = [:]) Update multiple properties on an instance with the specified properties |
|
static void |
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 |
|
D |
updateSingleTypes(java.util.Map params = [:]) Update an instance's non collection, non map types only without loading into the session |
|
static java.lang.Object |
withSession(groovy.lang.Closure callable) Execute a closure whose first argument is a reference to the current session. |
Add the specified element to the instance's embedded list, set or map and generate an update for the datastore
instance
- the instance containing the collection or mappropertyName
- the name of the embedded list, set or mapelement
- the element to addparams
- The parametersAdd 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 and generate an update for the datastore
instance
- the instance containing the collection or mappropertyName
- 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 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 argumentsFinds a single result matching all of the given conditions. Eg. Book.findWhere(author:"Stephen King", title:"The Stand")
queryMap
- The map of conditionsargs
- The Query argumentsPrepend the specified element to the instance's embedded list and generate an update for the datastore
instance
- the instance containing the listpropertyName
- the name of the embedded listelement
- the element to prependparams
- The parametersPrepend 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 and generate an update for the datastore
instance
- the instance containing the listpropertyName
- the name of the embedded listindex
- the index of the element to replaceelement
- the element to be stored at the specified indexparams
- 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 parametersSaves an object with the given parameters
instance
- The instanceparams
- The parametersUpdate an instance without loading into the session
instance
- The instanceparams
- 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 parametersUpdate an instance's non collection, non map types only without loading into the session
instance
- The instanceparams
- The parametersExecute a closure whose first argument is a reference to the current session.
callable
- the closure