R
- cache row typepublic abstract class UncommittedWritableRow<R> extends UncommittedRow<R>
UncommittedRow
that can be written to database with write(WriteOperations)
.Constructor and Description |
---|
UncommittedWritableRow(CacheKey cacheKey,
R row) |
Modifier and Type | Method and Description |
---|---|
UncommittedRow<R> |
deleted(R row)
Throws
IllegalCacheOperationException since this method should not be used. |
UncommittedRow<R> |
inserted(R row)
Throws
IllegalCacheOperationException since this method should not be used. |
boolean |
isWritten()
Indicates that row has been written to database.
|
UncommittedRow<R> |
saved(R row)
Throws
IllegalCacheOperationException since this method should not be used. |
void |
setWritten(boolean written)
Sets database write status.
|
UncommittedRow<R> |
updated(R row)
Throws
IllegalCacheOperationException since this method should not be used. |
abstract void |
write(WriteOperations<R> writeOperations)
Writes row to database.
|
delete, getCacheKey, getRow, insert, save, select, selected, setRow, update, updateCommitted
public abstract void write(WriteOperations<R> writeOperations) throws CacheException
writeOperations
- modify operations to use for writingCacheException
- if errorpublic boolean isWritten()
public void setWritten(boolean written)
write(WriteOperations)
.written
- true means row has been written to database; false if not writtenpublic UncommittedRow<R> inserted(R row) throws CacheException
IllegalCacheOperationException
since this method should not be used.inserted
in class UncommittedRow<R>
row
- row that has been insertedCacheException
- if errorpublic UncommittedRow<R> updated(R row) throws CacheException
IllegalCacheOperationException
since this method should not be used.updated
in class UncommittedRow<R>
row
- row that has been updatedCacheException
- if errorpublic UncommittedRow<R> saved(R row) throws CacheException
IllegalCacheOperationException
since this method should not be used.saved
in class UncommittedRow<R>
row
- row that has been savedCacheException
- if errorpublic UncommittedRow<R> deleted(R row) throws CacheException
IllegalCacheOperationException
since this method should not be used.deleted
in class UncommittedRow<R>
row
- row that has been deletedCacheException
- if error