Package | Description |
---|---|
org.sormula.cache |
Fundamental classes used to implement caching that is specified by
Cached.type() . |
org.sormula.cache.readonly |
Implementation of
ReadOnlyCache . |
org.sormula.cache.readwrite |
Implementation of
ReadWriteCache . |
org.sormula.cache.writable |
The abstract
WritableCache and supporting classes that are
used for implementing a cache that writes rows to the database. |
Modifier and Type | Method and Description |
---|---|
abstract UncommittedRow<R> |
UncommittedRow.delete(R row)
Performs a delete of new row on existing uncommitted row.
|
abstract UncommittedRow<R> |
UncommittedRow.deleted(R row)
Notifies cache that row has been deleted from database.
|
UncommittedRow<R> |
AbstractCache.getUncommitted(CacheKey primaryKeys)
Gets a row from uncommitted cache.
|
abstract UncommittedRow<R> |
UncommittedRow.insert(R row)
Performs an insert of new row on existing uncommitted row.
|
abstract UncommittedRow<R> |
UncommittedRow.inserted(R row)
Notifies cache that row has been inserted into database.
|
UncommittedRow<R> |
AbstractCache.putUncommitted(UncommittedRow<R> uncommittedRow)
Puts a row into uncommitted cache.
|
abstract UncommittedRow<R> |
UncommittedRow.save(R row)
Performs a save of new row on existing uncommitted row.
|
abstract UncommittedRow<R> |
UncommittedRow.saved(R row)
Notifies cache that row has been saved in database.
|
UncommittedRow<R> |
AbstractCache.transition(UncommittedRow<R> currentUncommittedRow,
UncommittedRow<R> newUncommittedRow)
Transition uncommitted cache state.
|
abstract UncommittedRow<R> |
UncommittedRow.update(R row)
Performs an update of new row on existing uncommitted row.
|
abstract UncommittedRow<R> |
UncommittedRow.updated(R row)
Notifies cache that row has been updated in database.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<CacheKey,UncommittedRow<R>> |
AbstractCache.getUncommittedCache()
Gets the map that stores uncommitted rows.
|
Modifier and Type | Method and Description |
---|---|
UncommittedRow<R> |
AbstractCache.putUncommitted(UncommittedRow<R> uncommittedRow)
Puts a row into uncommitted cache.
|
UncommittedRow<R> |
AbstractCache.transition(UncommittedRow<R> currentUncommittedRow,
UncommittedRow<R> newUncommittedRow)
Transition uncommitted cache state.
|
UncommittedRow<R> |
AbstractCache.transition(UncommittedRow<R> currentUncommittedRow,
UncommittedRow<R> newUncommittedRow)
Transition uncommitted cache state.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractCache.setUncommittedCache(java.util.Map<CacheKey,UncommittedRow<R>> uncommittedCache)
Sets new uncommitted map.
|
Modifier and Type | Class and Description |
---|---|
class |
UncommittedDelete<R>
Row in
ReadOnlyCache that has been deleted. |
class |
UncommittedInsert<R>
A row that has been inserted into a
ReadOnlyCache but not yet written to database. |
class |
UncommittedReadOnlyRow<R>
|
class |
UncommittedSelect<R>
A row that has been selected from database and stored in a
ReadOnlyCache but not yet committed. |
class |
UncommittedUpdate<R>
A row that has been updated in a
ReadOnlyCache . |
Modifier and Type | Method and Description |
---|---|
UncommittedRow<R> |
UncommittedReadOnlyRow.delete(R row)
Throws
IllegalCacheOperationException since this method should not be used
for ReadOnlyCache . |
UncommittedRow<R> |
UncommittedUpdate.deleted(R row) |
UncommittedRow<R> |
UncommittedSelect.deleted(R row) |
UncommittedRow<R> |
UncommittedInsert.deleted(R row) |
UncommittedRow<R> |
UncommittedDelete.deleted(R row) |
UncommittedRow<R> |
UncommittedReadOnlyRow.insert(R row)
Throws
IllegalCacheOperationException since this method should not be used
for ReadOnlyCache . |
UncommittedRow<R> |
UncommittedUpdate.inserted(R row) |
UncommittedRow<R> |
UncommittedSelect.inserted(R row) |
UncommittedRow<R> |
UncommittedInsert.inserted(R row) |
UncommittedRow<R> |
UncommittedDelete.inserted(R row) |
UncommittedRow<R> |
UncommittedReadOnlyRow.save(R row)
Throws
IllegalCacheOperationException since this method should not be used
for ReadOnlyCache . |
UncommittedRow<R> |
UncommittedUpdate.saved(R row) |
UncommittedRow<R> |
UncommittedSelect.saved(R row) |
UncommittedRow<R> |
UncommittedInsert.saved(R row) |
UncommittedRow<R> |
UncommittedDelete.saved(R row) |
UncommittedRow<R> |
UncommittedReadOnlyRow.update(R row)
Throws
IllegalCacheOperationException since this method should not be used
for ReadOnlyCache . |
UncommittedRow<R> |
UncommittedUpdate.updated(R row) |
UncommittedRow<R> |
UncommittedSelect.updated(R row) |
UncommittedRow<R> |
UncommittedInsert.updated(R row) |
UncommittedRow<R> |
UncommittedDelete.updated(R row) |
Modifier and Type | Class and Description |
---|---|
class |
UncommittedSave<R>
A row that has been saved into a writable cache but not yet written to database.
|
Modifier and Type | Method and Description |
---|---|
UncommittedRow<R> |
UncommittedUpdate.delete(R row) |
UncommittedRow<R> |
UncommittedSelect.delete(R row) |
UncommittedRow<R> |
UncommittedSave.delete(R row) |
UncommittedRow<R> |
UncommittedInsert.delete(R row) |
UncommittedRow<R> |
UncommittedDelete.delete(R row) |
UncommittedRow<R> |
UncommittedUpdate.insert(R row) |
UncommittedRow<R> |
UncommittedSelect.insert(R row) |
UncommittedRow<R> |
UncommittedSave.insert(R row) |
UncommittedRow<R> |
UncommittedInsert.insert(R row) |
UncommittedRow<R> |
UncommittedDelete.insert(R row) |
UncommittedRow<R> |
UncommittedUpdate.save(R row) |
UncommittedRow<R> |
UncommittedSelect.save(R row) |
UncommittedRow<R> |
UncommittedSave.save(R row) |
UncommittedRow<R> |
UncommittedInsert.save(R row) |
UncommittedRow<R> |
UncommittedDelete.save(R row) |
UncommittedRow<R> |
UncommittedUpdate.update(R row) |
UncommittedRow<R> |
UncommittedSelect.update(R row) |
UncommittedRow<R> |
UncommittedSave.update(R row) |
UncommittedRow<R> |
UncommittedInsert.update(R row) |
UncommittedRow<R> |
UncommittedDelete.update(R row) |
Modifier and Type | Class and Description |
---|---|
class |
UncommittedWritableRow<R>
UncommittedRow that can be written to database with UncommittedWritableRow.write(WriteOperations) . |
Modifier and Type | Method and Description |
---|---|
UncommittedRow<R> |
UncommittedWritableRow.deleted(R row)
Throws
IllegalCacheOperationException since this method should not be used. |
UncommittedRow<R> |
UncommittedWritableRow.inserted(R row)
Throws
IllegalCacheOperationException since this method should not be used. |
UncommittedRow<R> |
UncommittedWritableRow.saved(R row)
Throws
IllegalCacheOperationException since this method should not be used. |
UncommittedRow<R> |
UncommittedWritableRow.updated(R row)
Throws
IllegalCacheOperationException since this method should not be used. |