Package org.firebirdsql.jdbc.field
Class FBLongVarCharField
- java.lang.Object
- 
- org.firebirdsql.jdbc.field.FBField
- 
- org.firebirdsql.jdbc.field.FBLongVarCharField
 
 
- 
- All Implemented Interfaces:
- BlobListenableField,- FBCloseableField,- FBFlushableField,- TrimmableField
 
 public class FBLongVarCharField extends FBField implements FBCloseableField, FBFlushableField, BlobListenableField This is Blob-based implementation ofFBStringField. It should be used for fields declared in database asBLOB SUB_TYPE 1. This implementation provides all conversion routinesFBStringFieldhas.- Author:
- Roman Rokytskyy, Mark Rotteveel
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.firebirdsql.jdbc.field.FBFlushableFieldFBFlushableField.CachedObject
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected intpossibleCharLength- 
Fields inherited from class org.firebirdsql.jdbc.field.FBFieldfieldDescriptor, gdsHelper, requiredType
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close this field.voidflushCachedData()Flush cached data to the database server.java.math.BigDecimalgetBigDecimal()java.math.BigIntegergetBigInteger()java.io.InputStreamgetBinaryStream()java.sql.BlobgetBlob()booleangetBoolean()bytegetByte()byte[]getBytes()byte[]getCachedData()Get cached data.FBFlushableField.CachedObjectgetCachedObject()java.sql.ClobgetClob()java.sql.DategetDate()java.sql.DategetDate(java.util.Calendar cal)doublegetDouble()floatgetFloat()intgetInt()longgetLong()java.lang.ObjectgetObject()shortgetShort()java.lang.StringgetString()java.sql.TimegetTime()java.sql.TimegetTime(java.util.Calendar cal)java.sql.TimestampgetTimestamp()java.sql.TimestampgetTimestamp(java.util.Calendar cal)booleanisTrimTrailing()voidsetBigDecimal(java.math.BigDecimal value)voidsetBigInteger(java.math.BigInteger value)protected voidsetBinaryStreamInternal(java.io.InputStream in, long length)voidsetBlob(java.sql.Blob blob)voidsetBlob(FBBlob blob)voidsetBlobListener(FBObjectListener.BlobListener blobListener)Sets the blob listener of the field.voidsetBoolean(boolean value)voidsetByte(byte value)voidsetBytes(byte[] value)voidsetCachedObject(FBFlushableField.CachedObject cachedObject)protected voidsetCharacterStreamInternal(java.io.Reader in, long length)voidsetClob(java.sql.Clob clob)voidsetClob(FBClob clob)voidsetDate(java.sql.Date value)voidsetDate(java.sql.Date value, java.util.Calendar cal)voidsetDouble(double value)voidsetFloat(float value)voidsetInteger(int value)voidsetLong(long value)voidsetNull()voidsetShort(short value)voidsetString(java.lang.String value)voidsetTime(java.sql.Time value)voidsetTime(java.sql.Time value, java.util.Calendar cal)voidsetTimestamp(java.sql.Timestamp value)voidsetTimestamp(java.sql.Timestamp value, java.util.Calendar cal)voidsetTrimTrailing(boolean trimTrailing)Enable or disable trimming of trailing spaces.- 
Methods inherited from class org.firebirdsql.jdbc.field.FBFieldcreateField, 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
 
- 
 
- 
- 
- 
Method Detail- 
setBlobListenerpublic void setBlobListener(FBObjectListener.BlobListener blobListener) Description copied from interface:BlobListenableFieldSets the blob listener of the field.- Specified by:
- setBlobListenerin interface- BlobListenableField
- Parameters:
- blobListener- blob listener
 
 - 
closepublic void close() throws java.sql.SQLExceptionDescription copied from interface:FBCloseableFieldClose this field. This method tells field implementation to release all resources allocated when field methods were called.- Specified by:
- closein interface- FBCloseableField
- Throws:
- java.sql.SQLException- if field cannot be closed.
 
 - 
getBlobpublic java.sql.Blob getBlob() throws java.sql.SQLException
 - 
getClobpublic java.sql.Clob getClob() throws java.sql.SQLException
 - 
getBinaryStreampublic java.io.InputStream getBinaryStream() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
getBytespublic byte[] getBytes() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
getCachedDatapublic byte[] getCachedData() throws java.sql.SQLExceptionDescription copied from interface:FBFlushableFieldGet cached data.- Specified by:
- getCachedDatain interface- FBFlushableField
- Returns:
- cached object of this field.
- Throws:
- java.sql.SQLException- if something went wrong.
 
 - 
getCachedObjectpublic FBFlushableField.CachedObject getCachedObject() throws java.sql.SQLException - Specified by:
- getCachedObjectin interface- FBFlushableField
- Throws:
- java.sql.SQLException
 
 - 
setCachedObjectpublic void setCachedObject(FBFlushableField.CachedObject cachedObject) - Specified by:
- setCachedObjectin interface- FBFlushableField
 
 - 
getStringpublic java.lang.String getString() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
setBlobpublic void setBlob(FBBlob blob) throws java.sql.SQLException 
 - 
setBlobpublic void setBlob(java.sql.Blob blob) throws java.sql.SQLException
 - 
setClobpublic void setClob(FBClob clob) throws java.sql.SQLException 
 - 
setClobpublic void setClob(java.sql.Clob clob) throws java.sql.SQLException
 - 
setCharacterStreamInternalprotected void setCharacterStreamInternal(java.io.Reader in, long length)
 - 
setStringpublic void setString(java.lang.String value) throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
setBytespublic void setBytes(byte[] value) throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
setBinaryStreamInternalprotected void setBinaryStreamInternal(java.io.InputStream in, long length)
 - 
flushCachedDatapublic void flushCachedData() throws java.sql.SQLExceptionDescription copied from interface:FBFlushableFieldFlush cached data to the database server.- Specified by:
- flushCachedDatain interface- FBFlushableField
- Throws:
- java.sql.SQLException- if something went wrong.
 
 - 
setTrimTrailingpublic final void setTrimTrailing(boolean trimTrailing) Description copied from interface:TrimmableFieldEnable or disable trimming of trailing spaces.NOTE: The behaviour applies to FBField.getString()and code paths that work throughgetString()(this usually includesFBField.getObject().- Specified by:
- setTrimTrailingin interface- TrimmableField
- Parameters:
- trimTrailing-- truetrim trailing spaces
 
 - 
isTrimTrailingpublic final boolean isTrimTrailing() - Specified by:
- isTrimTrailingin interface- TrimmableField
- Returns:
- truetrim trailing enabled,- falsetrim trailing disabled
 
 - 
getObjectpublic java.lang.Object getObject() throws java.sql.SQLException
 - 
getBytepublic byte getByte() throws java.sql.SQLException
 - 
getShortpublic short getShort() throws java.sql.SQLException
 - 
getIntpublic int getInt() throws java.sql.SQLException
 - 
getLongpublic long getLong() throws java.sql.SQLException
 - 
getBigDecimalpublic java.math.BigDecimal getBigDecimal() throws java.sql.SQLException- Overrides:
- getBigDecimalin class- FBField
- Throws:
- java.sql.SQLException
 
 - 
getFloatpublic float getFloat() throws java.sql.SQLException
 - 
getDoublepublic double getDouble() throws java.sql.SQLException
 - 
getBooleanpublic boolean getBoolean() throws java.sql.SQLException- Overrides:
- getBooleanin class- FBField
- Throws:
- java.sql.SQLException
 
 - 
getDatepublic java.sql.Date getDate(java.util.Calendar cal) throws java.sql.SQLException
 - 
getDatepublic java.sql.Date getDate() throws java.sql.SQLException
 - 
getTimepublic java.sql.Time getTime(java.util.Calendar cal) throws java.sql.SQLException
 - 
getTimepublic java.sql.Time getTime() throws java.sql.SQLException
 - 
getTimestamppublic java.sql.Timestamp getTimestamp(java.util.Calendar cal) throws java.sql.SQLException- Overrides:
- getTimestampin class- FBField
- Throws:
- java.sql.SQLException
 
 - 
getTimestamppublic java.sql.Timestamp getTimestamp() throws java.sql.SQLException- Overrides:
- getTimestampin class- FBField
- Throws:
- java.sql.SQLException
 
 - 
getBigIntegerpublic java.math.BigInteger getBigInteger() throws java.sql.SQLException- Overrides:
- getBigIntegerin class- FBField
- Throws:
- java.sql.SQLException
 
 - 
setBytepublic void setByte(byte value) throws java.sql.SQLException
 - 
setShortpublic void setShort(short value) throws java.sql.SQLException
 - 
setIntegerpublic void setInteger(int value) throws java.sql.SQLException- Overrides:
- setIntegerin class- FBField
- Throws:
- java.sql.SQLException
 
 - 
setLongpublic void setLong(long value) throws java.sql.SQLException
 - 
setFloatpublic void setFloat(float value) throws java.sql.SQLException
 - 
setDoublepublic void setDouble(double value) throws java.sql.SQLException
 - 
setBigDecimalpublic void setBigDecimal(java.math.BigDecimal value) throws java.sql.SQLException- Overrides:
- setBigDecimalin class- FBField
- Throws:
- java.sql.SQLException
 
 - 
setBooleanpublic void setBoolean(boolean value) throws java.sql.SQLException- Overrides:
- setBooleanin class- FBField
- Throws:
- java.sql.SQLException
 
 - 
setDatepublic void setDate(java.sql.Date value, java.util.Calendar cal) throws java.sql.SQLException
 - 
setDatepublic void setDate(java.sql.Date value) throws java.sql.SQLException
 - 
setTimepublic void setTime(java.sql.Time value, java.util.Calendar cal) throws java.sql.SQLException
 - 
setTimepublic void setTime(java.sql.Time value) throws java.sql.SQLException
 - 
setTimestamppublic void setTimestamp(java.sql.Timestamp value, java.util.Calendar cal) throws java.sql.SQLException- Overrides:
- setTimestampin class- FBField
- Throws:
- java.sql.SQLException
 
 - 
setTimestamppublic void setTimestamp(java.sql.Timestamp value) throws java.sql.SQLException- Overrides:
- setTimestampin class- FBField
- Throws:
- java.sql.SQLException
 
 - 
setBigIntegerpublic void setBigInteger(java.math.BigInteger value) throws java.sql.SQLException- Overrides:
- setBigIntegerin class- FBField
- Throws:
- java.sql.SQLException
 
 
- 
 
-