The current offset does not change and ends up one past the end of the string. @return
newLength
. It erases the data when shrinking, and when lengthening the blob, the new bytes are filled by zeros.
@param tcx The context in which to truncate the blob.
@param newLength The new size of the blob as expressed in bytes.
When called on a database configured with secondary indices, this method truncates the primary database and all secondary indices. If configured to return a count of the records discarded, the returned count is the count of records discarded from the primary database.
It is an error to call this method on a database with open cursors.
@param txn For a transactional database, an explicit transaction may be specified, or null may be specified to use auto-commit. For a non-transactional database, null must be specified.
@param countRecords If true, count and return the number of records discarded.
@return The number of records discarded, or -1 if returnCount is false.
@throws DeadlockException if the operation was selected to resolve adeadlock.
@throws DatabaseException if a failure occurs.
Any bytes beyond the given size are removed from the file. If there are no bytes beyond the given size then the file contents are unmodified.
If the file position is currently greater than the given size, then it is set to be the given size.
@param size the maximum size of the underlying file @throws IllegalArgumentException the requested size is negative. @throws ClosedChannelException the channel is closed. @throws NonWritableChannelException the channel cannot be written. @throws IOException some other IO problem occured. @return this channelCLOB
value that this SerialClob
object represents so that it has a length of len
characters. Truncating a SerialClob
object to length 0 has the effect of clearing its contents.
@param length the length, in bytes, to which the CLOB
value should be truncated
@throws SerialException if there is an error accessing theCLOB
value; if the {@code free} method had been previously called on this object
InputStream
. After this call any call to {@link #read()}, {@link #read(byte[]) or }{ {@link #read(byte[],int,int)} will return-1 as if end-of-file had been reached.
InputStream
. After this call any call to {@link #read()}, {@link #read(byte[])} or {@link #read(byte[],int,int)} will return-1 as if end-of-file had been reached.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|