org.hsqldb.persist
Class RowStoreAVLMemory
- java.lang.Object
-
- org.hsqldb.persist.RowStoreAVL
-
- org.hsqldb.persist.RowStoreAVLMemory
-
- All Implemented Interfaces:
- PersistentStore
public class RowStoreAVLMemory extends RowStoreAVL implements PersistentStore
-
-
Field Summary
-
Fields inherited from interface org.hsqldb.persist.PersistentStore
emptyArray, INT_STORE_SIZE, LONG_STORE_SIZE, SHORT_STORE_SIZE
-
-
Constructor Summary
Constructors Constructor and Description RowStoreAVLMemory(PersistentStoreCollection manager, Table table)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(Session session, CachedObject object, boolean tx)add new objectvoidcommitPersistence(CachedObject row)commit persisted imagevoidcommitRow(Session session, Row row, int changeAction, int txModel)CachedObjectget(CachedObject object, boolean keep)CachedObjectget(long i)get objectCachedObjectget(long i, boolean keep)get object with keep, ensuring future gets will return the same instance of the objectCachedObjectget(RowInputInterface in)intgetAccessCount()DataFileCachegetCache()CachedObjectgetNewCachedObject(Session session, java.lang.Object object, boolean tx)booleanisMemory()voidrelease()voidrelease(long i)voidremove(CachedObject object)remove both persisted and cached copiesvoidremoveAll()voidrollbackRow(Session session, Row row, int changeAction, int txModel)voidset(CachedObject object)voidsetCache(DataFileCache cache)-
Methods inherited from class org.hsqldb.persist.RowStoreAVL
canRead, canRead, delete, elementCount, elementCount, elementCountUnique, get, getAccessor, getAccessorKeys, getAccessorStore, getDefaultObjectSize, getNewInstance, getSpaceManager, getTable, getTimestamp, hasNull, indexRow, indexRows, moveData, moveDataToSpace, postCommitAction, reindex, resetAccessorKeys, rowIterator, searchCost, setAccessor, setAccessor, setElementCount, setMemory, setReadOnly, setSpaceManager, setTimestamp, writeLock, writeUnlock
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hsqldb.persist.PersistentStore
canRead, canRead, delete, elementCount, elementCount, elementCountUnique, get, getAccessor, getAccessorKeys, getAccessorStore, getDefaultObjectSize, getNewInstance, getSpaceManager, getTable, getTimestamp, hasNull, indexRow, indexRows, moveData, moveDataToSpace, postCommitAction, reindex, resetAccessorKeys, rowIterator, searchCost, setAccessor, setAccessor, setElementCount, setMemory, setReadOnly, setSpaceManager, setTimestamp, writeLock, writeUnlock
-
-
-
-
Constructor Detail
-
RowStoreAVLMemory
public RowStoreAVLMemory(PersistentStoreCollection manager, Table table)
-
-
Method Detail
-
isMemory
public boolean isMemory()
- Specified by:
isMemoryin interfacePersistentStore- Specified by:
isMemoryin classRowStoreAVL
-
getAccessCount
public int getAccessCount()
- Specified by:
getAccessCountin interfacePersistentStore- Specified by:
getAccessCountin classRowStoreAVL
-
set
public void set(CachedObject object)
- Specified by:
setin interfacePersistentStore- Specified by:
setin classRowStoreAVL
-
get
public CachedObject get(long i)
Description copied from interface:PersistentStoreget object- Specified by:
getin interfacePersistentStore
-
get
public CachedObject get(long i, boolean keep)
Description copied from interface:PersistentStoreget object with keep, ensuring future gets will return the same instance of the object- Specified by:
getin interfacePersistentStore- Specified by:
getin classRowStoreAVL
-
get
public CachedObject get(CachedObject object, boolean keep)
- Specified by:
getin interfacePersistentStore- Specified by:
getin classRowStoreAVL
-
add
public void add(Session session, CachedObject object, boolean tx)
Description copied from interface:PersistentStoreadd new object- Specified by:
addin interfacePersistentStore- Specified by:
addin classRowStoreAVL
-
get
public CachedObject get(RowInputInterface in)
- Specified by:
getin interfacePersistentStore- Specified by:
getin classRowStoreAVL
-
getNewCachedObject
public CachedObject getNewCachedObject(Session session, java.lang.Object object, boolean tx)
- Specified by:
getNewCachedObjectin interfacePersistentStore- Specified by:
getNewCachedObjectin classRowStoreAVL
-
removeAll
public void removeAll()
- Specified by:
removeAllin interfacePersistentStore- Specified by:
removeAllin classRowStoreAVL
-
remove
public void remove(CachedObject object)
Description copied from interface:PersistentStoreremove both persisted and cached copies- Specified by:
removein interfacePersistentStore- Specified by:
removein classRowStoreAVL
-
release
public void release(long i)
-
commitPersistence
public void commitPersistence(CachedObject row)
Description copied from interface:PersistentStorecommit persisted image- Specified by:
commitPersistencein interfacePersistentStore- Specified by:
commitPersistencein classRowStoreAVL
-
commitRow
public void commitRow(Session session, Row row, int changeAction, int txModel)
- Specified by:
commitRowin interfacePersistentStore
-
rollbackRow
public void rollbackRow(Session session, Row row, int changeAction, int txModel)
- Specified by:
rollbackRowin interfacePersistentStore
-
getCache
public DataFileCache getCache()
- Specified by:
getCachein interfacePersistentStore- Specified by:
getCachein classRowStoreAVL
-
setCache
public void setCache(DataFileCache cache)
- Specified by:
setCachein interfacePersistentStore- Specified by:
setCachein classRowStoreAVL
-
release
public void release()
- Specified by:
releasein interfacePersistentStore- Specified by:
releasein classRowStoreAVL
-
-
DataMelt 3.0 © DataMelt by jWork.ORG