bucket.core.persistence.ObjectDao |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Find all objects currently persisted of a particular type.
| |||||||||||
Find all objects currently persisted of a particular type and sort results by named property.
| |||||||||||
Find all objects currently persisted of a particular type and sort results by named property.
| |||||||||||
Refreshes the object again with the fresh data from db.
| |||||||||||
Remove object from persistence.
| |||||||||||
Replicate the object.
| |||||||||||
saves the object.
|
Find all objects currently persisted of a particular type and sort results by named property.
sortField | the name of the property to be sorted on. This should be null if no sorting is required. |
---|
Find all objects currently persisted of a particular type and sort results by named property. This version of the method allows more control over the query.
sortField | the name of the property to be sorted on. This should be null if no sorting is required. |
---|---|
cacheable | control whether the results should be cached |
offset | the index of the first result to be returned |
maxResultCount | the maximum number of results required. Use -1 to specify no limit. |
Refreshes the object again with the fresh data from db.
Replicate the object. Replication does not generate a new id if the object does not exist in database and it overwrites the database row if the object already exists in database.
saves the object. if the object is new, this won't set the creation date on the object. if it already exists, then it won't set the date that it was updated.