public final class FieldValue extends java.lang.Object implements FieldDataProvider, java.lang.Cloneable
Constructor and Description |
---|
FieldValue()
Creates an uninitialized FieldValue instance.
|
FieldValue(byte[] fieldData)
Creates an initialized FieldValue instance with the supplied
fieldData . |
Modifier and Type | Method and Description |
---|---|
FieldValue |
clone()
Clones this
FieldValue instance. |
java.lang.Object |
getCachedObject() |
byte[] |
getFieldData()
Get raw content of the filed.
|
boolean |
isInitialized()
Is this field in an initialized state (meaning: was it explicitly set to a value (or null)).
|
void |
reset()
Resets this field to an uninitialized state.
|
void |
setCachedObject(java.lang.Object cachedObject)
Stores a cached object in this field.
|
void |
setFieldData(byte[] fieldData)
Set raw content of the field.
|
public FieldValue()
public FieldValue(byte[] fieldData)
fieldData
.fieldData
- Byte array with the value encoded as required by the type described in fieldDescriptor
public byte[] getFieldData()
FieldDataProvider
getFieldData
in interface FieldDataProvider
null
if NULL value was
sent from the server.public void setFieldData(byte[] fieldData)
FieldDataProvider
setFieldData
in interface FieldDataProvider
fieldData
- raw content of the field.public java.lang.Object getCachedObject()
public void setCachedObject(java.lang.Object cachedObject)
This is mostly used to store blob data for batched execution.
cachedObject
- Object to cachepublic boolean isInitialized()
true
if initialized, false
otherwisepublic void reset()
public FieldValue clone()
FieldValue
instance.
The contained field data is cloned as well, but the cached object is identical.
clone
in class java.lang.Object
Copyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.