org.hsqldb.persist
Class CachedObjectBase
- java.lang.Object
-
- org.hsqldb.persist.CachedObjectBase
-
- All Implemented Interfaces:
- CachedObject
- Direct Known Subclasses:
- BitMapCachedObject, DirectoryBlockCachedObject, IntArrayCachedObject
public abstract class CachedObjectBase extends java.lang.Object implements CachedObject
-
-
Field Summary
-
Fields inherited from interface org.hsqldb.persist.CachedObject
emptyArray
-
-
Constructor Summary
Constructors Constructor and Description CachedObjectBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddestroy()intgetAccessCount()longgetPos()intgetStorageSize()booleanhasChanged()inthashCode()booleanisBlock()booleanisInMemory()booleanisKeepInMemory()booleanisMemory()booleanisNew()booleankeepInMemory(boolean keep)voidrestore()voidsetInMemory(boolean in)voidsetPos(long pos)voidsetStorageSize(int size)voidupdateAccessCount(int count)-
Methods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hsqldb.persist.CachedObject
getDefaultCapacity, getRealSize, read, write, write
-
-
-
-
Method Detail
-
isMemory
public boolean isMemory()
- Specified by:
isMemoryin interfaceCachedObject
-
updateAccessCount
public void updateAccessCount(int count)
- Specified by:
updateAccessCountin interfaceCachedObject
-
getAccessCount
public int getAccessCount()
- Specified by:
getAccessCountin interfaceCachedObject
-
setStorageSize
public void setStorageSize(int size)
- Specified by:
setStorageSizein interfaceCachedObject
-
getStorageSize
public int getStorageSize()
- Specified by:
getStorageSizein interfaceCachedObject
-
isBlock
public final boolean isBlock()
- Specified by:
isBlockin interfaceCachedObject
-
getPos
public long getPos()
- Specified by:
getPosin interfaceCachedObject
-
setPos
public void setPos(long pos)
- Specified by:
setPosin interfaceCachedObject
-
isNew
public boolean isNew()
- Specified by:
isNewin interfaceCachedObject
-
hasChanged
public boolean hasChanged()
- Specified by:
hasChangedin interfaceCachedObject
-
isKeepInMemory
public boolean isKeepInMemory()
- Specified by:
isKeepInMemoryin interfaceCachedObject
-
keepInMemory
public boolean keepInMemory(boolean keep)
- Specified by:
keepInMemoryin interfaceCachedObject
-
isInMemory
public boolean isInMemory()
- Specified by:
isInMemoryin interfaceCachedObject
-
setInMemory
public void setInMemory(boolean in)
- Specified by:
setInMemoryin interfaceCachedObject
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
restore
public void restore()
- Specified by:
restorein interfaceCachedObject
-
destroy
public void destroy()
- Specified by:
destroyin interfaceCachedObject
-
-
DataMelt 3.0 © DataMelt by jWork.ORG