| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static int | Returns: an integer that maps to the Blob value created.Creates a new empty Blob and registers it in the HashMap in the Connection and returns the locator value corresponding to this Blob. |
| public static byte[] | Returns: A byte array containing the bytes read, starting from positionpos in the Blob.the locator value of the Blob from which the byte array
needs to be retrieved. LOCATOR, long the position from which the bytes from the Blob need to be
retrieved. pos, int the maximum number of bytes to read. The value will be
reduced to the maximum allowed return length if required
(see len)Limits#MAX_BLOB_RETURN_LEN).Reads up to len bytes from the associated |
| public static long | Returns: the length of the Blob object mapped to the locator .the locator value of the Blob whose length needs to
be found. LOCATOR)Returns the length in bytes of the Blob. |
| public static long | Returns: the position at which the first occurrence of the Byte array is found.the locator value of the Blob in which the seaching needs
to be done. LOCATOR, byte[] the byte array whose position needs needs to be found. searchBytes, long the position from which the seaching needs to be done. pos)Returns the first occurrence of the byte array in the Blob. |
| public static long | Returns: the position at which the first occurrence of the Blob is found.the locator value of the Blob in which the seaching needs
to be done. LOCATOR, int the locator value of the Blob whose position needs
needs to be found. searchLocator, long the position from which the seaching needs to be done. pos)Returns the first occurrence of locator in the Blob. |
| public static void | BLOBRELEASELOCATOR(int
an integer that represents the locator that needs to be
removed from the hash map. LOCATOR)Removes the supplied LOCATOR entry from the hash map. |
| public static void | BLOBSETBYTES(int
the integer that represents the Blob in which the bytes
need to be replaced. LOCATOR, long the position stating from which the byte replacement needs to
happen. pos, int the number of bytes that need to be used in replacement. len, byte[] the byte array that contains the bytes that needs to
be used for replacement. replaceBytes)Replaces the bytes at pos with len bytes |
| public static void | BLOBTRUNCATE(int
an integer that represents the LOCATOR used to retrieve an
instance of the LOB. LOCATOR, long an integer that represents the length to which the Blob
must be truncated to. length)truncates the Blob value represented by LOCATOR to have a length of length. |
| public static int | Returns: an integer that maps to the Clob value created.Creates a new empty Clob and registers it in the HashMap in the Connection and returns the locator value corresponding to this Clob. |
| public static long | Returns: an integer that represents the length of the Clob.an integer that represents the locator of the Clob whose
length needs to be obtained. LOCATOR)returns the length of the Clob corresponding to the LOCATOR value. |
| public static long | Returns: an integer that represents the position inside the Clob of the first occurrence of the sub-string from the given starting position.an integer that represents the locator of the Clob
in which the given position of the given sub-string
needs to be found. LOCATOR, int a Locator representing a Clob whose occurence inside
the Clob needs to be found starting from pos. searchLocator, long an integer that represents the position inside
the Clob from which the search needs to begin. fromPosition)returns the first occurrence of the given search string from the given start search position inside the Clob. |
| public static long | Returns: an integer that represents the position inside the Clob of the first occurrence of the sub-string from the given starting position.an integer that represents the locator of the Clob
in which the given position of the given sub-string
needs to be found. LOCATOR, String a String whose occurence inside the Clob needs to
be found starting from pos. searchLiteral, long an integer that represents the position inside
the Clob from which the search needs to begin. fromPosition)returns the first occurrence of the given search string from the given start search position inside the Clob. |
| public static String | Returns: A substring from theClob starting at the given position,
not longer than len characters.an integer that represents the LOCATOR used
to retrieve an instance of the LOB. LOCATOR, long a long that represents the position from which
the substring begins. pos, int an integer representing the maximum length of the substring.
The value will be reduced to the maximum allowed return length if
required (see len)Limits#MAX_CLOB_RETURN_LEN).Returns the |
| public static void | CLOBRELEASELOCATOR(int
an integer that represents the locator that needs to be
removed from the hash map. LOCATOR)Removes the supplied LOCATOR entry from the hash map. |
| public static void | CLOBSETSTRING(int
an integer that represents the locator of the Clob in which
the characters need to be replaced. LOCATOR, long an integer that represents the position inside the Clob from which
the string needs to be replaced. pos, int the number of characters from the string that need to be used for
replacement. length, String the string from which the repalcement characters are built. str)replaces the characters starting at fromPosition and with length ForLength |
| public static void | CLOBTRUNCATE(int
an integer that represents the LOCATOR used to retrieve an
instance of the LOB. LOCATOR, long an integer that represents the length to which the Clob
must be truncated to. length)truncates the Clob value represented by LOCATOR to have a length of length. |
| private static Blob | Returns: a Blob object that is mapped to the LOCATOR object passed in.an integer that represents the locator corresponding
to the Blob object requested. LOCATOR)returns the Blob object corresponding to the locator. |
| private static Clob | Returns: a Clob object that is mapped to the LOCATOR object passed in.an integer that represents the locator corresponding
to the Clob object requested. LOCATOR)returns the Clob object corresponding to the locator. |
| private static EmbedConnection | |
| private static SQLException | Returns: a SQLEXception.The messageId of the message associated with this message. messageId)Generate the SQLException with the appropriate SQLState. |
| LOBStoredProcedure | back to summary |
|---|---|
| public LOBStoredProcedure() | |
| BLOBCREATELOCATOR | back to summary |
|---|---|
| public static int BLOBCREATELOCATOR() throws SQLException Creates a new empty Blob and registers it in the HashMap in the Connection and returns the locator value corresponding to this Blob.
| |
| BLOBGETBYTES | back to summary |
|---|---|
| public static byte[] BLOBGETBYTES(int LOCATOR, long pos, int len) throws SQLException Reads up to len bytes from the associated Note that a smaller number of bytes than requested might be returned. The number of bytes returned can be found by checking the length of the returned byte array.
| |
| BLOBGETLENGTH | back to summary |
|---|---|
| public static long BLOBGETLENGTH(int LOCATOR) throws SQLException Returns the length in bytes of the Blob.
| |
| BLOBGETPOSITIONFROMBYTES | back to summary |
|---|---|
| public static long BLOBGETPOSITIONFROMBYTES(int LOCATOR, byte[] searchBytes, long pos) throws SQLException Returns the first occurrence of the byte array in the Blob.
| |
| BLOBGETPOSITIONFROMLOCATOR | back to summary |
|---|---|
| public static long BLOBGETPOSITIONFROMLOCATOR(int LOCATOR, int searchLocator, long pos) throws SQLException Returns the first occurrence of locator in the Blob.
| |
| BLOBRELEASELOCATOR | back to summary |
|---|---|
| public static void BLOBRELEASELOCATOR(int LOCATOR) throws SQLException Removes the supplied LOCATOR entry from the hash map.
| |
| BLOBSETBYTES | back to summary |
|---|---|
| public static void BLOBSETBYTES(int LOCATOR, long pos, int len, byte[] replaceBytes) throws SQLException Replaces the bytes at pos with len bytes
| |
| BLOBTRUNCATE | back to summary |
|---|---|
| public static void BLOBTRUNCATE(int LOCATOR, long length) throws SQLException truncates the Blob value represented by LOCATOR to have a length of length.
| |
| CLOBCREATELOCATOR | back to summary |
|---|---|
| public static int CLOBCREATELOCATOR() throws SQLException Creates a new empty Clob and registers it in the HashMap in the Connection and returns the locator value corresponding to this Clob.
| |
| CLOBGETLENGTH | back to summary |
|---|---|
| public static long CLOBGETLENGTH(int LOCATOR) throws SQLException returns the length of the Clob corresponding to the LOCATOR value.
| |
| CLOBGETPOSITIONFROMLOCATOR | back to summary |
|---|---|
| public static long CLOBGETPOSITIONFROMLOCATOR(int LOCATOR, int searchLocator, long fromPosition) throws SQLException returns the first occurrence of the given search string from the given start search position inside the Clob.
| |
| CLOBGETPOSITIONFROMSTRING | back to summary |
|---|---|
| public static long CLOBGETPOSITIONFROMSTRING(int LOCATOR, String searchLiteral, long fromPosition) throws SQLException returns the first occurrence of the given search string from the given start search position inside the Clob.
| |
| CLOBGETSUBSTRING | back to summary |
|---|---|
| public static String CLOBGETSUBSTRING(int LOCATOR, long pos, int len) throws SQLException Returns the
| |
| CLOBRELEASELOCATOR | back to summary |
|---|---|
| public static void CLOBRELEASELOCATOR(int LOCATOR) throws SQLException Removes the supplied LOCATOR entry from the hash map.
| |
| CLOBSETSTRING | back to summary |
|---|---|
| public static void CLOBSETSTRING(int LOCATOR, long pos, int length, String str) throws SQLException replaces the characters starting at fromPosition and with length ForLength
| |
| CLOBTRUNCATE | back to summary |
|---|---|
| public static void CLOBTRUNCATE(int LOCATOR, long length) throws SQLException truncates the Clob value represented by LOCATOR to have a length of length.
| |
| getBlobObjectCorrespondingtoLOCATOR | back to summary |
|---|---|
| private static Blob getBlobObjectCorrespondingtoLOCATOR(int LOCATOR) throws SQLException returns the Blob object corresponding to the locator.
| |
| getClobObjectCorrespondingtoLOCATOR | back to summary |
|---|---|
| private static Clob getClobObjectCorrespondingtoLOCATOR(int LOCATOR) throws SQLException returns the Clob object corresponding to the locator.
| |
| getEmbedConnection | back to summary |
|---|---|
| private static EmbedConnection getEmbedConnection() throws SQLException Returns the EmbedConnection object. | |
| newSQLException | back to summary |
|---|---|
| private static SQLException newSQLException(String messageId) Generate the SQLException with the appropriate SQLState.
| |