Top Description Inners Fields Constructors Methods
org.hsqldb.result

public final Class ResultLob

extends Result
Class Inheritance
Imports
java.io.DataInputStream, .IOException, .InputStream, .Reader, org.hsqldb.SessionInterface, org.hsqldb.error.Error, .ErrorCode, org.hsqldb.lib.DataOutputStream, .HsqlByteArrayOutputStream, org.hsqldb.rowio.RowOutputInterface

Sub-class of Result for communicating Blob and Clob operations.

Author
Fred Toussi (fredt@users dot sourceforge.net)
Since
1.9.0
Version
2.7.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface

Field Summary

Modifier and TypeField and Description
pack-priv long
pack-priv long
pack-priv byte[]
pack-priv char[]
pack-priv long
pack-priv Reader
pack-priv InputStream
pack-priv int
Inherited from org.hsqldb.result.Result:
databaseIDemptyArrayemptyGeneratedResulterrorCodegeneratedMetaDatagenerateKeyslobResultsmetaDatamodenavigatorparameterMetaDataqueryTimeoutrsPropertiessessionAttributesMetaDatasessionIDstatementstatementIDstatementReturnTypeupdateCountupdateOneResultupdateZeroResultvalueData

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public long
public byte[]
public char[]
public InputStream
public long
public long
public Reader
public int
public static ResultLob
newLob(DataInputStream dataInput, boolean readTerminate)

public static ResultLob
newLobCreateBlobRequest(long sessionID, long lobID, InputStream stream, long length)

public static ResultLob
public static ResultLob
newLobCreateClobRequest(long sessionID, long lobID, Reader reader, long length)

public static ResultLob
public static ResultLob
public static ResultLob
newLobGetBytePatternPositionRequest(long id, byte[] pattern, long offset)

public static ResultLob
newLobGetBytePatternPositionRequest(long id, long otherId, long offset)

public static ResultLob
newLobGetBytesRequest(long id, long offset, long length)

public static ResultLob
newLobGetBytesResponse(long id, long offset, byte[] block)

public static ResultLob
newLobGetCharPatternPositionRequest(long id, char[] pattern, long offset)

public static ResultLob
newLobGetCharPatternPositionRequest(long id, long otherId, long offset)

public static ResultLob
newLobGetCharsRequest(long id, long offset, long length)

public static ResultLob
newLobGetCharsResponse(long id, long offset, char[] chars)

public static ResultLob
public static ResultLob
newLobGetRequest(long id, long offset, long length)

public static ResultLob
public static ResultLob
newLobSetBytesRequest(long id, long offset, byte[] block)

public static ResultLob
newLobSetCharsRequest(long id, long offset, char[] chars)

public static ResultLob
newLobSetResponse(long id, long length)

public static ResultLob
newLobTruncateRequest(long id, long offset)

public static ResultLob
newLobTruncateResponse(long id, long length)

public void
public void
private void
private void
private void
Inherited from org.hsqldb.result.Result:
addBatchedPreparedExecuteRequestaddChainedResultaddLobResultaddRowsaddWarningsclearLobResultsgetActionTypegetChainedResultgetConnectionAttrTypegetDatabaseIdgetDatabaseNamegetErrorCodegetExceptiongetExecutePropertiesgetFetchSizegetGeneratedResultMetaDatagetGeneratedResultTypegetLobCountgetLOBResultgetMainStringgetNavigatorgetParameterDatagetResultIdgetSessionAttributesgetSessionIdgetSessionRandomIDgetSingleRowDatagetStatementgetStatementIDgetStatementTypegetSubStringgetTypegetUnlinkChainedResultgetUpdateCountgetValueObjectgetZoneStringhasGeneratedKeysinitialiseNavigatorisDataisErrorisSimpleValueisUpdateCountisWarningnewBatchedExecuteRequestnewBatchedExecuteResponsenewCallResponsenewCancelRequestnewConnectionAcknowledgeResponsenewConnectionAttemptRequestnewDataHeadResultnewDataResultnewDataRowsResultnewDataRowsResultnewErrorResultnewErrorResultnewExecuteDirectRequestnewFreeStmtRequestnewGeneratedDataResultnewMultiColumnResultnewPreparedExecuteRequestnewPrepareResponsenewPrepareStatementRequestnewPSMResultnewPSMResultnewRequestDataResultnewResetSessionRequestnewResultnewResultnewResultnewResultnewSessionAttributesResultnewSetSavepointRequestnewSingleColumnResultnewSingleColumnResultnewSingleColumnStringResultnewUpdateCountResultnewUpdateCountResultnewUpdateResultRequestnewUpdateZeroResultnewWarningResultreadAdditionalResultsreadLobResultssetActionTypesetAsTransactionEndRequestsetBatchedPreparedExecuteRequestsetConnectionAttrTypesetDatabaseIdsetFetchSizesetMainStringsetMaxRowssetNavigatorsetPreparedExecutePropertiessetPreparedResultUpdatePropertiessetPrepareOrExecutePropertiessetResultIdsetResultTypesetSessionsetSessionIdsetSessionRandomIDsetStatementsetStatementIDsetStatementTypesetUpdateCountsetValueObject

Field Detail

blockLengthback to summary
pack-priv long blockLength
blockOffsetback to summary
pack-priv long blockOffset
byteBlockback to summary
pack-priv byte[] byteBlock
charBlockback to summary
pack-priv char[] charBlock
lobIDback to summary
pack-priv long lobID
readerback to summary
pack-priv Reader reader
streamback to summary
pack-priv InputStream stream
subTypeback to summary
pack-priv int subType

Constructor Detail

ResultLobback to summary
private ResultLob()

Method Detail

getBlockLengthback to summary
public long getBlockLength()
getByteArrayback to summary
public byte[] getByteArray()
getCharArrayback to summary
public char[] getCharArray()
getInputStreamback to summary
public InputStream getInputStream()
getLobIDback to summary
public long getLobID()
getOffsetback to summary
public long getOffset()
getReaderback to summary
public Reader getReader()
getSubTypeback to summary
public int getSubType()
newLobback to summary
public static ResultLob newLob(DataInputStream dataInput, boolean readTerminate) throws IOException
newLobCreateBlobRequestback to summary
public static ResultLob newLobCreateBlobRequest(long sessionID, long lobID, InputStream stream, long length)
newLobCreateBlobResponseback to summary
public static ResultLob newLobCreateBlobResponse(long id)
newLobCreateClobRequestback to summary
public static ResultLob newLobCreateClobRequest(long sessionID, long lobID, Reader reader, long length)
newLobCreateClobResponseback to summary
public static ResultLob newLobCreateClobResponse(long id)
newLobDuplicateRequestback to summary
public static ResultLob newLobDuplicateRequest(long id)
newLobGetBytePatternPositionRequestback to summary
public static ResultLob newLobGetBytePatternPositionRequest(long id, byte[] pattern, long offset)
newLobGetBytePatternPositionRequestback to summary
public static ResultLob newLobGetBytePatternPositionRequest(long id, long otherId, long offset)
newLobGetBytesRequestback to summary
public static ResultLob newLobGetBytesRequest(long id, long offset, long length)
newLobGetBytesResponseback to summary
public static ResultLob newLobGetBytesResponse(long id, long offset, byte[] block)
newLobGetCharPatternPositionRequestback to summary
public static ResultLob newLobGetCharPatternPositionRequest(long id, char[] pattern, long offset)
newLobGetCharPatternPositionRequestback to summary
public static ResultLob newLobGetCharPatternPositionRequest(long id, long otherId, long offset)
newLobGetCharsRequestback to summary
public static ResultLob newLobGetCharsRequest(long id, long offset, long length)
newLobGetCharsResponseback to summary
public static ResultLob newLobGetCharsResponse(long id, long offset, char[] chars)
newLobGetLengthRequestback to summary
public static ResultLob newLobGetLengthRequest(long id)
newLobGetRequestback to summary
public static ResultLob newLobGetRequest(long id, long offset, long length)
newLobGetTruncateLengthback to summary
public static ResultLob newLobGetTruncateLength(long id)
newLobSetBytesRequestback to summary
public static ResultLob newLobSetBytesRequest(long id, long offset, byte[] block)
newLobSetCharsRequestback to summary
public static ResultLob newLobSetCharsRequest(long id, long offset, char[] chars)
newLobSetResponseback to summary
public static ResultLob newLobSetResponse(long id, long length)
newLobTruncateRequestback to summary
public static ResultLob newLobTruncateRequest(long id, long offset)
newLobTruncateResponseback to summary
public static ResultLob newLobTruncateResponse(long id, long length)
writeback to summary
public void write(SessionInterface session, DataOutputStream dataOut, RowOutputInterface rowOut) throws IOException

Overrides org.hsqldb.result.Result.write.

writeBodyback to summary
public void writeBody(SessionInterface session, DataOutputStream dataOut) throws IOException
writeCreateback to summary
private void writeCreate(SessionInterface session, DataOutputStream dataOut) throws IOException
writeCreateByteSegmentsback to summary
private void writeCreateByteSegments(SessionInterface session, DataOutputStream dataOut) throws IOException
writeCreateCharSegmentsback to summary
private void writeCreateCharSegments(SessionInterface session, DataOutputStream dataOut) throws IOException
org.hsqldb.result back to summary

public Interface ResultLob.LobResultTypes


Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int

Field Detail

REQUEST_CREATE_BYTESback to summary
public static final int REQUEST_CREATE_BYTES
REQUEST_CREATE_CHARSback to summary
public static final int REQUEST_CREATE_CHARS
REQUEST_DUPLICATE_LOBback to summary
public static final int REQUEST_DUPLICATE_LOB
REQUEST_GET_BYTE_PATTERN_POSITIONback to summary
public static final int REQUEST_GET_BYTE_PATTERN_POSITION
REQUEST_GET_BYTESback to summary
public static final int REQUEST_GET_BYTES
REQUEST_GET_CHAR_PATTERN_POSITIONback to summary
public static final int REQUEST_GET_CHAR_PATTERN_POSITION
REQUEST_GET_CHARSback to summary
public static final int REQUEST_GET_CHARS
REQUEST_GET_LENGTHback to summary
public static final int REQUEST_GET_LENGTH
REQUEST_GET_LOBback to summary
public static final int REQUEST_GET_LOB
REQUEST_GET_TRUNCATE_LENGTHback to summary
public static final int REQUEST_GET_TRUNCATE_LENGTH
REQUEST_SET_BYTESback to summary
public static final int REQUEST_SET_BYTES
REQUEST_SET_CHARSback to summary
public static final int REQUEST_SET_CHARS
REQUEST_TRUNCATEback to summary
public static final int REQUEST_TRUNCATE
RESPONSE_CREATE_BYTESback to summary
public static final int RESPONSE_CREATE_BYTES
RESPONSE_CREATE_CHARSback to summary
public static final int RESPONSE_CREATE_CHARS
RESPONSE_GET_BYTE_PATTERN_POSITIONback to summary
public static final int RESPONSE_GET_BYTE_PATTERN_POSITION
RESPONSE_GET_BYTESback to summary
public static final int RESPONSE_GET_BYTES
RESPONSE_GET_CHAR_PATTERN_POSITIONback to summary
public static final int RESPONSE_GET_CHAR_PATTERN_POSITION
RESPONSE_GET_CHARSback to summary
public static final int RESPONSE_GET_CHARS
RESPONSE_SETback to summary
public static final int RESPONSE_SET
RESPONSE_TRUNCATEback to summary
public static final int RESPONSE_TRUNCATE