PassedType
- type for description object on insertsStoredType
- type for stored ersatzspublic interface Store<PassedType extends Ersatz,StoredType extends Ersatz>
Modifier and Type | Method and Description |
---|---|
void |
delete(StoredType toDelete)
Delete record from the store.
|
StoredType |
insert(PassedType toInsert)
Creates a new record in the store.
|
Ersatz |
newPrimaryKey()
Generate new primary key.
|
Cursor<StoredType> |
query(EOQualifier q)
Query for records matching EO qualifier.
|
void |
update(Ersatz newValues,
StoredType toUpdate)
Update record with the given values.
|
StoredType insert(PassedType toInsert)
toInsert
- inserted object descriptiontoInsert
void update(Ersatz newValues, StoredType toUpdate)
newValues
- new values, can be partial ersatztoUpdate
- ersatz representing record to be updatedvoid delete(StoredType toDelete)
toDelete
- ersatz representing record to be deletedErsatz newPrimaryKey()
Cursor<StoredType> query(EOQualifier q)
q
- qualifierCopyright © 2002 – 2024 Project Wonder.