Interface PersistenceInterface
public interface PersistenceInterface
- 
Method SummaryModifier and TypeMethodDescription<T extends PersistentRecord>
 TcreateNew(RecordMeta<T> meta) Creates a new instance of this type of PersistentRecord.<T extends PersistentRecord>
 TcreateNew(RecordMeta<T> meta, SDataSet owner) Creates a new instance of this type of PersistentRecord that will be a member of the given SDataSet.<T extends PersistentRecord>
 Tfind(RecordMeta<T> meta, Object... primaryKeys) Tries to find a record with the given keys.<T extends PersistentRecord>
 Tfind(SDataSet owner, RecordMeta<T> meta, Object... primaryKeys) Tries to find a record with the given keys.getSession(SDataSet dataset) voidnotifyRecordAdded(PersistentRecord record) Notifies any listeners of the record's RecordMeta type across the cluster that the record has been added.voidnotifyRecordDeleted(RecordMeta<?> recordType, KeyValue key) Notifies any listeners of the record's RecordMeta type across the cluster that the record has been deleted.voidnotifyRecordUpdated(PersistentRecord record) Notifies any listeners of the record's RecordMeta type across the cluster that the record has been updated.<T extends PersistentRecord>
 List<T><T extends PersistentRecord>
 TReturns the first result from the query, or null if there were no resultsvoidsave(PersistentRecord record) Saves a previously loaded PersistentRecord instance with any changes back to the internal database
- 
Method Details- 
getSessionPersistenceSession getSession()
- 
getSession
- 
createNewCreates a new instance of this type of PersistentRecord. Doesn't add to the database.
- 
createNewCreates a new instance of this type of PersistentRecord that will be a member of the given SDataSet. Doesn't add to the database.
- 
saveSaves a previously loaded PersistentRecord instance with any changes back to the internal database- Throws:
- SException
 
- 
findTries to find a record with the given keys. Returns null if no matching record is found
- 
findTries to find a record with the given keys. Returns null if no matching record is found
- 
query
- 
queryOneReturns the first result from the query, or null if there were no results
- 
notifyRecordAddedNotifies any listeners of the record's RecordMeta type across the cluster that the record has been added.- Throws:
- Exception
 
- 
notifyRecordUpdatedNotifies any listeners of the record's RecordMeta type across the cluster that the record has been updated.- Throws:
- Exception
 
- 
notifyRecordDeletedNotifies any listeners of the record's RecordMeta type across the cluster that the record has been deleted.- Throws:
- Exception
 
 
-