Package org.firebirdsql.jdbc.field
Class FBLongVarCharField
java.lang.Object
org.firebirdsql.jdbc.field.FBField
org.firebirdsql.jdbc.field.FBLongVarCharField
- All Implemented Interfaces:
FBFlushableField
This is Blob-based implementation of
FBStringField. It should be used
for fields declared in database as BLOB SUB_TYPE 1. This
implementation provides all conversion routines FBStringField has.- Author:
- Roman Rokytskyy, Mark Rotteveel
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.firebirdsql.jdbc.field.FBFlushableField
FBFlushableField.CachedObject -
Field Summary
FieldsFields inherited from class org.firebirdsql.jdbc.field.FBField
fieldDescriptor, gdsHelper, requiredType, scale -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close this field.voidFlush cached data to the database server.getBlob()booleanbytegetByte()byte[]getBytes()byte[]Get cached data.getClob()getDate()doublefloatgetFloat()intgetInt()longgetLong()shortgetShort()getTime()getTimestamp(Calendar cal) voidsetBigDecimal(BigDecimal value) voidsetBigInteger(BigInteger value) protected voidsetBinaryStreamInternal(InputStream in, long length) voidvoidsetBoolean(boolean value) voidsetByte(byte value) voidsetBytes(byte[] value) voidsetCachedObject(FBFlushableField.CachedObject cachedObject) protected voidsetCharacterStreamInternal(Reader in, long length) voidvoidvoidvoidsetDouble(double value) voidsetFloat(float value) voidsetInteger(int value) voidsetLong(long value) voidsetNull()voidsetShort(short value) voidvoidvoidvoidsetTimestamp(Timestamp value) voidsetTimestamp(Timestamp value, Calendar cal) Methods inherited from class org.firebirdsql.jdbc.field.FBField
createField, getAlias, getArray, getBigDecimal, getCharacterStream, getDatatypeCoder, getDecimal, getDecimal, getFieldData, getName, getObject, getObject, getObject, getObjectConverter, getRawDateTimeStruct, getRef, getRelationName, getRowId, isInvertTimeZone, isNull, isType, setBinaryStream, setBinaryStream, setBinaryStream, setCharacterStream, setCharacterStream, setCharacterStream, setConnection, setDecimal, setFieldData, setObject, setRawDateTimeStruct, setRequiredType, setRowId
-
Field Details
-
possibleCharLength
protected final int possibleCharLength
-
-
Method Details
-
close
Description copied from class:FBFieldClose this field. This method tells field implementation to release all resources allocated when field methods were called.- Overrides:
closein classFBField- Throws:
SQLException- if field cannot be closed.
-
getBlob
- Overrides:
getBlobin classFBField- Throws:
SQLException
-
getClob
- Overrides:
getClobin classFBField- Throws:
SQLException
-
getBinaryStream
- Throws:
SQLException
-
getBytes
- Throws:
SQLException
-
getCachedData
Description copied from interface:FBFlushableFieldGet cached data.- Specified by:
getCachedDatain interfaceFBFlushableField- Returns:
- cached object of this field.
- Throws:
SQLException- if something went wrong.
-
getCachedObject
- Specified by:
getCachedObjectin interfaceFBFlushableField- Throws:
SQLException
-
setCachedObject
- Specified by:
setCachedObjectin interfaceFBFlushableField- Throws:
SQLException
-
getString
- Throws:
SQLException
-
setBlob
- Overrides:
setBlobin classFBField- Throws:
SQLException
-
setClob
- Overrides:
setClobin classFBField- Throws:
SQLException
-
setCharacterStreamInternal
- Throws:
SQLException
-
setString
- Throws:
SQLException
-
setBytes
- Throws:
SQLException
-
setBinaryStreamInternal
- Throws:
SQLException
-
flushCachedData
Description copied from interface:FBFlushableFieldFlush cached data to the database server.- Specified by:
flushCachedDatain interfaceFBFlushableField- Throws:
SQLException- if something went wrong.
-
setNull
public void setNull() -
getByte
- Overrides:
getBytein classFBField- Throws:
SQLException
-
getShort
- Overrides:
getShortin classFBField- Throws:
SQLException
-
getInt
- Overrides:
getIntin classFBField- Throws:
SQLException
-
getLong
- Overrides:
getLongin classFBField- Throws:
SQLException
-
getBigDecimal
- Overrides:
getBigDecimalin classFBField- Throws:
SQLException
-
getFloat
- Overrides:
getFloatin classFBField- Throws:
SQLException
-
getDouble
- Overrides:
getDoublein classFBField- Throws:
SQLException
-
getBoolean
- Overrides:
getBooleanin classFBField- Throws:
SQLException
-
getDate
- Overrides:
getDatein classFBField- Throws:
SQLException
-
getDate
- Overrides:
getDatein classFBField- Throws:
SQLException
-
getTime
- Overrides:
getTimein classFBField- Throws:
SQLException
-
getTime
- Overrides:
getTimein classFBField- Throws:
SQLException
-
getTimestamp
- Overrides:
getTimestampin classFBField- Throws:
SQLException
-
getTimestamp
- Overrides:
getTimestampin classFBField- Throws:
SQLException
-
getBigInteger
- Overrides:
getBigIntegerin classFBField- Throws:
SQLException
-
setByte
- Overrides:
setBytein classFBField- Throws:
SQLException
-
setShort
- Overrides:
setShortin classFBField- Throws:
SQLException
-
setInteger
- Overrides:
setIntegerin classFBField- Throws:
SQLException
-
setLong
- Overrides:
setLongin classFBField- Throws:
SQLException
-
setFloat
- Overrides:
setFloatin classFBField- Throws:
SQLException
-
setDouble
- Overrides:
setDoublein classFBField- Throws:
SQLException
-
setBigDecimal
- Overrides:
setBigDecimalin classFBField- Throws:
SQLException
-
setBoolean
- Overrides:
setBooleanin classFBField- Throws:
SQLException
-
setDate
- Overrides:
setDatein classFBField- Throws:
SQLException
-
setDate
- Overrides:
setDatein classFBField- Throws:
SQLException
-
setTime
- Overrides:
setTimein classFBField- Throws:
SQLException
-
setTime
- Overrides:
setTimein classFBField- Throws:
SQLException
-
setTimestamp
- Overrides:
setTimestampin classFBField- Throws:
SQLException
-
setTimestamp
- Overrides:
setTimestampin classFBField- Throws:
SQLException
-
setBigInteger
- Overrides:
setBigIntegerin classFBField- Throws:
SQLException
-