Package org.firebirdsql.jdbc.field
Class FBLongVarCharField
- java.lang.Object
-
- org.firebirdsql.jdbc.field.FBField
-
- org.firebirdsql.jdbc.field.FBLongVarCharField
-
- All Implemented Interfaces:
FBFlushableField
public class FBLongVarCharField extends FBField implements FBFlushableField
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.FBFlushableField
FBFlushableField.CachedObject
-
-
Field Summary
Fields Modifier and Type Field Description protected intpossibleCharLength-
Fields inherited from class org.firebirdsql.jdbc.field.FBField
fieldDescriptor, gdsHelper, requiredType, scale
-
-
Method Summary
All 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()shortgetShort()java.lang.StringgetString()java.sql.TimegetTime()java.sql.TimegetTime(java.util.Calendar cal)java.sql.TimestampgetTimestamp()java.sql.TimestampgetTimestamp(java.util.Calendar cal)voidsetBigDecimal(java.math.BigDecimal value)voidsetBigInteger(java.math.BigInteger value)protected voidsetBinaryStreamInternal(java.io.InputStream in, long length)voidsetBlob(FBBlob blob)voidsetBoolean(boolean value)voidsetByte(byte value)voidsetBytes(byte[] value)voidsetCachedObject(FBFlushableField.CachedObject cachedObject)protected voidsetCharacterStreamInternal(java.io.Reader in, long length)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)-
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
-
-
-
-
Method Detail
-
close
public void close() throws java.sql.SQLExceptionDescription copied from class:FBFieldClose this field. This method tells field implementation to release all resources allocated when field methods were called.
-
getBlob
public java.sql.Blob getBlob() throws java.sql.SQLException
-
getClob
public java.sql.Clob getClob() throws java.sql.SQLException
-
getBinaryStream
public java.io.InputStream getBinaryStream() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getBytes
public byte[] getBytes() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getCachedData
public byte[] getCachedData() throws java.sql.SQLExceptionDescription copied from interface:FBFlushableFieldGet cached data.- Specified by:
getCachedDatain interfaceFBFlushableField- Returns:
- cached object of this field.
- Throws:
java.sql.SQLException- if something went wrong.
-
getCachedObject
public FBFlushableField.CachedObject getCachedObject() throws java.sql.SQLException
- Specified by:
getCachedObjectin interfaceFBFlushableField- Throws:
java.sql.SQLException
-
setCachedObject
public void setCachedObject(FBFlushableField.CachedObject cachedObject) throws java.sql.SQLException
- Specified by:
setCachedObjectin interfaceFBFlushableField- Throws:
java.sql.SQLException
-
getString
public java.lang.String getString() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setBlob
public void setBlob(FBBlob blob) throws java.sql.SQLException
-
setClob
public void setClob(FBClob clob) throws java.sql.SQLException
-
setCharacterStreamInternal
protected void setCharacterStreamInternal(java.io.Reader in, long length) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setString
public void setString(java.lang.String value) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setBytes
public void setBytes(byte[] value) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setBinaryStreamInternal
protected void setBinaryStreamInternal(java.io.InputStream in, long length) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
flushCachedData
public void flushCachedData() throws java.sql.SQLExceptionDescription copied from interface:FBFlushableFieldFlush cached data to the database server.- Specified by:
flushCachedDatain interfaceFBFlushableField- Throws:
java.sql.SQLException- if something went wrong.
-
getByte
public byte getByte() throws java.sql.SQLException
-
getShort
public short getShort() throws java.sql.SQLException
-
getInt
public int getInt() throws java.sql.SQLException
-
getLong
public long getLong() throws java.sql.SQLException
-
getBigDecimal
public java.math.BigDecimal getBigDecimal() throws java.sql.SQLException- Overrides:
getBigDecimalin classFBField- Throws:
java.sql.SQLException
-
getFloat
public float getFloat() throws java.sql.SQLException
-
getDouble
public double getDouble() throws java.sql.SQLException
-
getBoolean
public boolean getBoolean() throws java.sql.SQLException- Overrides:
getBooleanin classFBField- Throws:
java.sql.SQLException
-
getDate
public java.sql.Date getDate(java.util.Calendar cal) throws java.sql.SQLException
-
getDate
public java.sql.Date getDate() throws java.sql.SQLException
-
getTime
public java.sql.Time getTime(java.util.Calendar cal) throws java.sql.SQLException
-
getTime
public java.sql.Time getTime() throws java.sql.SQLException
-
getTimestamp
public java.sql.Timestamp getTimestamp(java.util.Calendar cal) throws java.sql.SQLException- Overrides:
getTimestampin classFBField- Throws:
java.sql.SQLException
-
getTimestamp
public java.sql.Timestamp getTimestamp() throws java.sql.SQLException- Overrides:
getTimestampin classFBField- Throws:
java.sql.SQLException
-
getBigInteger
public java.math.BigInteger getBigInteger() throws java.sql.SQLException- Overrides:
getBigIntegerin classFBField- Throws:
java.sql.SQLException
-
setByte
public void setByte(byte value) throws java.sql.SQLException
-
setShort
public void setShort(short value) throws java.sql.SQLException
-
setInteger
public void setInteger(int value) throws java.sql.SQLException- Overrides:
setIntegerin classFBField- Throws:
java.sql.SQLException
-
setLong
public void setLong(long value) throws java.sql.SQLException
-
setFloat
public void setFloat(float value) throws java.sql.SQLException
-
setDouble
public void setDouble(double value) throws java.sql.SQLException
-
setBigDecimal
public void setBigDecimal(java.math.BigDecimal value) throws java.sql.SQLException- Overrides:
setBigDecimalin classFBField- Throws:
java.sql.SQLException
-
setBoolean
public void setBoolean(boolean value) throws java.sql.SQLException- Overrides:
setBooleanin classFBField- Throws:
java.sql.SQLException
-
setDate
public void setDate(java.sql.Date value, java.util.Calendar cal) throws java.sql.SQLException
-
setDate
public void setDate(java.sql.Date value) throws java.sql.SQLException
-
setTime
public void setTime(java.sql.Time value, java.util.Calendar cal) throws java.sql.SQLException
-
setTime
public void setTime(java.sql.Time value) throws java.sql.SQLException
-
setTimestamp
public void setTimestamp(java.sql.Timestamp value, java.util.Calendar cal) throws java.sql.SQLException- Overrides:
setTimestampin classFBField- Throws:
java.sql.SQLException
-
setTimestamp
public void setTimestamp(java.sql.Timestamp value) throws java.sql.SQLException- Overrides:
setTimestampin classFBField- Throws:
java.sql.SQLException
-
setBigInteger
public void setBigInteger(java.math.BigInteger value) throws java.sql.SQLException- Overrides:
setBigIntegerin classFBField- Throws:
java.sql.SQLException
-
-