| java.lang.Object org.xorm.cache.RowCacheKeyFactory
RowCacheKeyFactory | public class RowCacheKeyFactory (Code) | | Utility class used by the LRUCache to generate keys for the Rows it must store. This class produces a key suitable for using in a hash. This class is used, due to the anticiaption of other types of objects eventually being cached in the LRUCache.
author: Harry Evans |
getCacheKey | public Object getCacheKey(Object value)(Code) | | Take a row and return a key for it.
Parameters: value - the Row to generate the key for, as an Object an opaque key for the Row. exception: ClassCastException - if the object is not a Row. |
makeRowPrimaryKey | public Object makeRowPrimaryKey(Table table, Row row)(Code) | | Take a table and a row, and make a cachable key for it.
Parameters: table - the Table the row belongs to Parameters: row - the Row to generate the key for, as an Object an opaque key for the Row. |
makeRowPrimaryKey | public Object makeRowPrimaryKey(Table table, Object rowId)(Code) | | Take a table and a row primary key, and make a cachable key for it.
Parameters: table - the Table the row belongs to Parameters: rowId - the primary key of the Row object to be cached an opaque key for the Row. |
|
|