R
- type of cached rowpublic class UncommittedDelete<R> extends UncommittedWritableRow<R>
ReadWriteCache
that has been deleted.Constructor and Description |
---|
UncommittedDelete(CacheKey cacheKey,
R row) |
Modifier and Type | Method and Description |
---|---|
UncommittedRow<R> |
delete(R row)
Performs a delete of new row on existing uncommitted row.
|
UncommittedRow<R> |
insert(R row)
Performs an insert of new row on existing uncommitted row.
|
UncommittedRow<R> |
save(R row)
Performs a save of new row on existing uncommitted row.
|
R |
select()
Performs a primary key select on the uncommitted row.
|
R |
selected(R row)
Notifies cache that row has been selected from database.
|
UncommittedRow<R> |
update(R row)
Performs an update of new row on existing uncommitted row.
|
void |
updateCommitted(Cache<R> cache)
Put this uncommitted row in committed map of cache.
|
void |
write(WriteOperations<R> writeOperations)
Writes row to database.
|
deleted, inserted, isWritten, saved, setWritten, updated
getCacheKey, getRow, setRow
public R select() throws CacheException
UncommittedRow
select
in class UncommittedRow<R>
CacheException
- if errorpublic UncommittedRow<R> insert(R row) throws CacheException
UncommittedRow
DuplicateCacheException
unless uncommitted row represents a deleted row.insert
in class UncommittedRow<R>
row
- row to insertCacheException
- if errorpublic UncommittedRow<R> update(R row) throws CacheException
UncommittedRow
update
in class UncommittedRow<R>
row
- row to updateCacheException
- if errorpublic UncommittedRow<R> save(R row) throws CacheException
UncommittedRow
save
in class UncommittedRow<R>
row
- row to saveCacheException
- if errorpublic UncommittedRow<R> delete(R row) throws CacheException
UncommittedRow
delete
in class UncommittedRow<R>
row
- row to deleteCacheException
- if errorpublic R selected(R row) throws CacheException
UncommittedRow
selected
in class UncommittedRow<R>
row
- row that has been selectedCacheException
- if errorpublic void write(WriteOperations<R> writeOperations) throws CacheException
UncommittedWritableRow
write
in class UncommittedWritableRow<R>
writeOperations
- modify operations to use for writingCacheException
- if errorpublic void updateCommitted(Cache<R> cache) throws CacheException
UncommittedRow
updateCommitted
in class UncommittedRow<R>
cache
- cache to affectCacheException
- if error