public class FBLongVarCharField extends FBField implements FBCloseableField, FBFlushableField, BlobListenableField
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 int |
possibleCharLength |
fieldDescriptor, gdsHelper, requiredType
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() |
float |
getFloat() |
int |
getInt() |
long |
getLong() |
java.lang.Object |
getObject() |
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) |
boolean |
isTrimTrailing() |
void |
setBigDecimal(java.math.BigDecimal value) |
void |
setBigInteger(java.math.BigInteger value) |
protected void |
setBinaryStreamInternal(java.io.InputStream in,
long length) |
void |
setBlob(java.sql.Blob blob) |
void |
setBlob(FBBlob blob) |
void |
setBlobListener(FBObjectListener.BlobListener blobListener)
Sets the blob listener of the field.
|
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(java.sql.Clob clob) |
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) |
void |
setTrimTrailing(boolean trimTrailing)
Enable or disable trimming of trailing spaces.
|
createField, getAlias, getArray, getBigDecimal, getCharacterStream, getDatatypeCoder, getDecimal, getDecimal, getFieldData, getName, getObject, getObject, getRawDateTimeStruct, getRef, getRelationName, getRowId, isInvertTimeZone, isNull, setBinaryStream, setBinaryStream, setBinaryStream, setCharacterStream, setCharacterStream, setCharacterStream, setConnection, setDecimal, setFieldData, setObject, setRawDateTimeStruct, setRequiredType, setRowId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
trimTrailing
public void setBlobListener(FBObjectListener.BlobListener blobListener)
BlobListenableField
setBlobListener
in interface BlobListenableField
blobListener
- blob listenerpublic void close() throws java.sql.SQLException
FBCloseableField
close
in interface FBCloseableField
java.sql.SQLException
- if field cannot be closed.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)
setCachedObject
in interface FBFlushableField
public java.lang.String getString() throws java.sql.SQLException
java.sql.SQLException
public void setBlob(FBBlob blob) throws java.sql.SQLException
public void setBlob(java.sql.Blob blob) throws java.sql.SQLException
public void setClob(FBClob clob) throws java.sql.SQLException
public void setClob(java.sql.Clob clob) throws java.sql.SQLException
protected void setCharacterStreamInternal(java.io.Reader in, long length)
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)
public void flushCachedData() throws java.sql.SQLException
FBFlushableField
flushCachedData
in interface FBFlushableField
java.sql.SQLException
- if something went wrong.public final void setTrimTrailing(boolean trimTrailing)
TrimmableField
NOTE: The behaviour applies to FBField.getString()
and code paths that work through getString()
(this usually includes FBField.getObject()
.
setTrimTrailing
in interface TrimmableField
trimTrailing
- true
trim trailing spacespublic final boolean isTrimTrailing()
isTrimTrailing
in interface TrimmableField
true
trim trailing enabled, false
trim trailing disabledpublic java.lang.Object getObject() throws 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-2024 Jaybird (Firebird JDBC) team. All rights reserved.