R
- cache row typepublic class UncommittedSelect<R> extends UncommittedReadOnlyRow<R>
ReadOnlyCache
but not yet committed.Constructor and Description |
---|
UncommittedSelect(CacheKey cacheKey,
R row) |
Modifier and Type | Method and Description |
---|---|
UncommittedRow<R> |
deleted(R row)
Notifies cache that row has been deleted from database.
|
UncommittedRow<R> |
inserted(R row)
Notifies cache that row has been inserted into database.
|
UncommittedRow<R> |
saved(R row)
Notifies cache that row has been saved in database.
|
R |
select()
Performs a primary key select on the uncommitted row.
|
R |
selected(R row)
Notifies cache that row has been selected from database.
|
void |
updateCommitted(Cache<R> cache)
Put this uncommitted row in committed map of cache.
|
UncommittedRow<R> |
updated(R row)
Notifies cache that row has been updated in database.
|
delete, insert, save, update
getCacheKey, getRow, setRow
public R select() throws CacheException
UncommittedRow
select
in class UncommittedRow<R>
CacheException
- if errorpublic UncommittedRow<R> inserted(R row) throws CacheException
UncommittedRow
inserted
in class UncommittedRow<R>
row
- row that has been insertedCacheException
- if errorpublic UncommittedRow<R> updated(R row) throws CacheException
UncommittedRow
updated
in class UncommittedRow<R>
row
- row that has been updatedCacheException
- if errorpublic UncommittedRow<R> saved(R row) throws CacheException
UncommittedRow
saved
in class UncommittedRow<R>
row
- row that has been savedCacheException
- if errorpublic UncommittedRow<R> deleted(R row) throws CacheException
UncommittedRow
deleted
in class UncommittedRow<R>
row
- row that has been deletedCacheException
- if errorpublic R selected(R row) throws CacheException
UncommittedRow
selected
in class UncommittedRow<R>
row
- row that has been selectedCacheException
- if errorpublic void updateCommitted(Cache<R> cache) throws CacheException
UncommittedRow
updateCommitted
in class UncommittedRow<R>
cache
- cache to affectCacheException
- if error