Package org.h2.value.lob
Class LobDataDatabase
- java.lang.Object
-
- org.h2.value.lob.LobData
-
- org.h2.value.lob.LobDataDatabase
-
public final class LobDataDatabase extends LobData
LOB data stored in database.
-
-
Field Summary
Fields Modifier and Type Field Description private DataHandlerhandlerprivate booleanisRecoveryReferenceFix for recovery tool.private longlobIdprivate inttableIdIf the LOB is managed by the one the LobStorageBackend classes, these are the unique key inside that storage.
-
Constructor Summary
Constructors Constructor Description LobDataDatabase(DataHandler handler, int tableId, long lobId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataHandlergetDataHandler()java.io.InputStreamgetInputStream(long precision)Get stream to read LOB data fromlonggetLobId()intgetTableId()Get the current table id of this lob.booleanisLinkedToTable()Check if this value is linked to a specific table.booleanisRecoveryReference()voidremove(ValueLob value)Remove the underlying resource, if any.voidsetRecoveryReference(boolean isRecoveryReference)java.lang.StringtoString()
-
-
-
Field Detail
-
handler
private DataHandler handler
-
tableId
private final int tableId
If the LOB is managed by the one the LobStorageBackend classes, these are the unique key inside that storage.
-
lobId
private final long lobId
-
isRecoveryReference
private boolean isRecoveryReference
Fix for recovery tool.
-
-
Constructor Detail
-
LobDataDatabase
public LobDataDatabase(DataHandler handler, int tableId, long lobId)
-
-
Method Detail
-
remove
public void remove(ValueLob value)
Description copied from class:LobDataRemove the underlying resource, if any. For values that are kept fully in memory this method has no effect.
-
isLinkedToTable
public boolean isLinkedToTable()
Check if this value is linked to a specific table. For values that are kept fully in memory, this method returns false.- Overrides:
isLinkedToTablein classLobData- Returns:
- true if it is
-
getTableId
public int getTableId()
Get the current table id of this lob.- Returns:
- the table id
-
getLobId
public long getLobId()
-
getInputStream
public java.io.InputStream getInputStream(long precision)
Description copied from class:LobDataGet stream to read LOB data from- Specified by:
getInputStreamin classLobData- Parameters:
precision- octet length of the stream, or -1 if unknown- Returns:
- stream to read LOB data from
-
getDataHandler
public DataHandler getDataHandler()
- Overrides:
getDataHandlerin classLobData
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
setRecoveryReference
public void setRecoveryReference(boolean isRecoveryReference)
-
isRecoveryReference
public boolean isRecoveryReference()
-
-