public interface LobCopyParameter
converted COPY-LOB statement
.Modifier and Type | Field and Description |
---|---|
static int |
TYPE_BLOB
The type identifier for a BLOB field.
|
static int |
TYPE_CHAR_BIT
A marker bit for easy filtering character LOBs.
|
static int |
TYPE_CLOB
The type identifier for a CLOB field.
|
static int |
TYPE_FIELD_BIT
A marker bit for easy filtering field LOBs.
|
static int |
TYPE_FILE
The type identifier for a FILE.
|
static int |
TYPE_LONGCHAR
The type identifier for a LONGCHAR variable.
|
static int |
TYPE_MEMPTR
The type identifier for a MEMPTR variable.
|
static int |
TYPE_UNKNOWN
The unknown type of LOB.
|
Modifier and Type | Method and Description |
---|---|
default java.lang.String |
getCodePage()
Get the code page of this parameter, if any.
|
int |
getObjectType()
Obtain the type of the object wrapped by this parameter
|
default boolean |
isCharacterData()
Indicate whether the large object represented by this parameter natively represents
encoded character data, as opposed to binary data.
|
default boolean |
isLargeObject()
Indicate whether this object is a valid large object data type.
|
default boolean |
validate(int peerType)
Validate this parameter.
|
default boolean |
validateOffset(int peerType)
Checks if the optional offset is valid.
|
static final int TYPE_UNKNOWN
static final int TYPE_FIELD_BIT
static final int TYPE_CHAR_BIT
static final int TYPE_CLOB
static final int TYPE_BLOB
static final int TYPE_FILE
static final int TYPE_LONGCHAR
static final int TYPE_MEMPTR
default boolean isLargeObject()
true
if valid, else false
. The default implementation assumes
validity; implementors which must handle runtime type verification must override
this method.default boolean isCharacterData()
true
if character data; false
if binary data.default java.lang.String getCodePage()
null
if parameter represents non-character data.default boolean validateOffset(int peerType)
peerType
- The type of the source or target peer object. The error messages are different in some cases.true
if the optional offset is valid.default boolean validate(int peerType)
peerType
- The type of the peer object. The error messages might be different in some cases.true
if validation did not encounter any issue and false
otherwise, when in
NO-ERROR mode and the ErrorConditionException
is not thrown.ErrorConditionException
- if the parameter fails validation and silent error mode is not active.int getObjectType()