public class FBLongVarCharField extends FBField implements FBFlushableField
FBStringField
. It should be used
for fields declared in database as BLOB SUB_TYPE 1
. This
implementation provides all conversion routines FBStringField
has.FBFlushableField.CachedObject
Modifier and Type | Field and Description |
---|---|
protected EncodingDefinition |
encodingDefinition |
protected int |
possibleCharLength |
fieldDescriptor, gdsHelper, mappingPath, requiredType, scale
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this field.
|
void |
flushCachedData()
Flush cached data to the database server.
|
java.math.BigDecimal |
getBigDecimal() |
java.math.BigInteger |
getBigInteger() |
java.io.InputStream |
getBinaryStream() |
java.sql.Blob |
getBlob() |
boolean |
getBoolean() |
byte |
getByte() |
byte[] |
getBytes() |
byte[] |
getCachedData()
Get cached data.
|
FBFlushableField.CachedObject |
getCachedObject() |
java.sql.Clob |
getClob() |
java.sql.Date |
getDate() |
java.sql.Date |
getDate(java.util.Calendar cal) |
double |
getDouble() |
protected static EncodingDefinition |
getEncodingDefinition(FieldDescriptor fieldDescriptor) |
float |
getFloat() |
int |
getInt() |
long |
getLong() |
short |
getShort() |
java.lang.String |
getString() |
java.sql.Time |
getTime() |
java.sql.Time |
getTime(java.util.Calendar cal) |
java.sql.Timestamp |
getTimestamp() |
java.sql.Timestamp |
getTimestamp(java.util.Calendar cal) |
void |
setBigDecimal(java.math.BigDecimal value) |
void |
setBigInteger(java.math.BigInteger value) |
protected void |
setBinaryStreamInternal(java.io.InputStream in,
long length) |
void |
setBlob(FBBlob blob) |
void |
setBoolean(boolean value) |
void |
setByte(byte value) |
void |
setBytes(byte[] value) |
void |
setCachedObject(FBFlushableField.CachedObject cachedObject) |
protected void |
setCharacterStreamInternal(java.io.Reader in,
long length) |
void |
setClob(FBClob clob) |
void |
setDate(java.sql.Date value) |
void |
setDate(java.sql.Date value,
java.util.Calendar cal) |
void |
setDouble(double value) |
void |
setFloat(float value) |
void |
setInteger(int value) |
void |
setLong(long value) |
void |
setNull() |
void |
setShort(short value) |
void |
setString(java.lang.String value) |
void |
setTime(java.sql.Time value) |
void |
setTime(java.sql.Time value,
java.util.Calendar cal) |
void |
setTimestamp(java.sql.Timestamp value) |
void |
setTimestamp(java.sql.Timestamp value,
java.util.Calendar cal) |
createField, getAlias, getArray, getBigDecimal, getCharacterStream, getDatatypeCoder, getFieldData, getName, getObject, getObject, getObject, getObjectConverter, getRawDateTimeStruct, getRef, getRelationName, isInvertTimeZone, isNull, isType, setBinaryStream, setBinaryStream, setBinaryStream, setCharacterStream, setCharacterStream, setCharacterStream, setConnection, setFieldData, setObject, setRawDateTimeStruct, setRequiredType
protected final int possibleCharLength
protected final EncodingDefinition encodingDefinition
public void close() throws java.sql.SQLException
FBField
public java.sql.Blob getBlob() throws java.sql.SQLException
public java.sql.Clob getClob() throws java.sql.SQLException
public java.io.InputStream getBinaryStream() throws java.sql.SQLException
java.sql.SQLException
public byte[] getBytes() throws java.sql.SQLException
java.sql.SQLException
public byte[] getCachedData() throws java.sql.SQLException
FBFlushableField
getCachedData
in interface FBFlushableField
java.sql.SQLException
- if something went wrong.public FBFlushableField.CachedObject getCachedObject() throws java.sql.SQLException
getCachedObject
in interface FBFlushableField
java.sql.SQLException
public void setCachedObject(FBFlushableField.CachedObject cachedObject) throws java.sql.SQLException
setCachedObject
in interface FBFlushableField
java.sql.SQLException
public java.lang.String getString() throws java.sql.SQLException
java.sql.SQLException
public void setBlob(FBBlob blob) throws java.sql.SQLException
public void setClob(FBClob clob) throws java.sql.SQLException
protected void setCharacterStreamInternal(java.io.Reader in, long length) throws java.sql.SQLException
java.sql.SQLException
public void setString(java.lang.String value) throws java.sql.SQLException
java.sql.SQLException
public void setBytes(byte[] value) throws java.sql.SQLException
java.sql.SQLException
protected void setBinaryStreamInternal(java.io.InputStream in, long length) throws java.sql.SQLException
java.sql.SQLException
public void flushCachedData() throws java.sql.SQLException
FBFlushableField
flushCachedData
in interface FBFlushableField
java.sql.SQLException
- if something went wrong.protected static EncodingDefinition getEncodingDefinition(FieldDescriptor fieldDescriptor) throws java.sql.SQLException
java.sql.SQLException
public byte getByte() throws java.sql.SQLException
public short getShort() throws java.sql.SQLException
public int getInt() throws java.sql.SQLException
public long getLong() throws java.sql.SQLException
public java.math.BigDecimal getBigDecimal() throws java.sql.SQLException
getBigDecimal
in class FBField
java.sql.SQLException
public float getFloat() throws java.sql.SQLException
public double getDouble() throws java.sql.SQLException
public boolean getBoolean() throws java.sql.SQLException
getBoolean
in class FBField
java.sql.SQLException
public java.sql.Date getDate(java.util.Calendar cal) throws java.sql.SQLException
public java.sql.Date getDate() throws java.sql.SQLException
public java.sql.Time getTime(java.util.Calendar cal) throws java.sql.SQLException
public java.sql.Time getTime() throws java.sql.SQLException
public java.sql.Timestamp getTimestamp(java.util.Calendar cal) throws java.sql.SQLException
getTimestamp
in class FBField
java.sql.SQLException
public java.sql.Timestamp getTimestamp() throws java.sql.SQLException
getTimestamp
in class FBField
java.sql.SQLException
public java.math.BigInteger getBigInteger() throws java.sql.SQLException
getBigInteger
in class FBField
java.sql.SQLException
public void setByte(byte value) throws java.sql.SQLException
public void setShort(short value) throws java.sql.SQLException
public void setInteger(int value) throws java.sql.SQLException
setInteger
in class FBField
java.sql.SQLException
public void setLong(long value) throws java.sql.SQLException
public void setFloat(float value) throws java.sql.SQLException
public void setDouble(double value) throws java.sql.SQLException
public void setBigDecimal(java.math.BigDecimal value) throws java.sql.SQLException
setBigDecimal
in class FBField
java.sql.SQLException
public void setBoolean(boolean value) throws java.sql.SQLException
setBoolean
in class FBField
java.sql.SQLException
public void setDate(java.sql.Date value, java.util.Calendar cal) throws java.sql.SQLException
public void setDate(java.sql.Date value) throws java.sql.SQLException
public void setTime(java.sql.Time value, java.util.Calendar cal) throws java.sql.SQLException
public void setTime(java.sql.Time value) throws java.sql.SQLException
public void setTimestamp(java.sql.Timestamp value, java.util.Calendar cal) throws java.sql.SQLException
setTimestamp
in class FBField
java.sql.SQLException
public void setTimestamp(java.sql.Timestamp value) throws java.sql.SQLException
setTimestamp
in class FBField
java.sql.SQLException
public void setBigInteger(java.math.BigInteger value) throws java.sql.SQLException
setBigInteger
in class FBField
java.sql.SQLException
Copyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.