Package org.h2.value.lob
Class LobDataDatabase
java.lang.Object
org.h2.value.lob.LobData
org.h2.value.lob.LobDataDatabase
LOB data stored in database.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DataHandler
private boolean
Fix for recovery tool.private final long
private final int
If the LOB is managed by the one the LobStorageBackend classes, these are the unique key inside that storage. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInputStream
(long precision) Get stream to read LOB data fromlong
getLobId()
int
Get the current table id of this lob.boolean
Check if this value is linked to a specific table.boolean
void
Remove the underlying resource, if any.void
setRecoveryReference
(boolean isRecoveryReference) toString()
-
Field Details
-
handler
-
tableId
private final int tableIdIf 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 isRecoveryReferenceFix for recovery tool.
-
-
Constructor Details
-
LobDataDatabase
-
-
Method Details
-
remove
Description copied from class:LobData
Remove 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:
isLinkedToTable
in 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
Description copied from class:LobData
Get stream to read LOB data from- Specified by:
getInputStream
in classLobData
- Parameters:
precision
- octet length of the stream, or -1 if unknown- Returns:
- stream to read LOB data from
-
getDataHandler
- Overrides:
getDataHandler
in classLobData
-
toString
-
setRecoveryReference
public void setRecoveryReference(boolean isRecoveryReference) -
isRecoveryReference
public boolean isRecoveryReference()
-