public abstract class FBField
extends java.lang.Object
FBField here.| Modifier and Type | Field and Description |
|---|---|
protected FieldDescriptor |
fieldDescriptor |
protected GDSHelper |
gdsHelper |
protected java.lang.String |
mappingPath |
protected int |
requiredType |
protected int |
scale |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this field.
|
static FBField |
createField(FieldDescriptor fieldDescriptor,
FieldDataProvider dataProvider,
GDSHelper gdsHelper,
boolean cached)
This is a factory method that creates appropriate instance of the
FBField class according to the SQL datatype. |
java.lang.String |
getAlias()
Returns the alias of the column as declared in XSQLVAR.
|
java.sql.Array |
getArray() |
java.math.BigDecimal |
getBigDecimal() |
java.math.BigDecimal |
getBigDecimal(int scale) |
java.math.BigInteger |
getBigInteger() |
java.io.InputStream |
getBinaryStream() |
java.sql.Blob |
getBlob() |
boolean |
getBoolean() |
byte |
getByte() |
byte[] |
getBytes() |
java.io.Reader |
getCharacterStream() |
java.sql.Clob |
getClob() |
protected DatatypeCoder |
getDatatypeCoder() |
java.sql.Date |
getDate() |
java.sql.Date |
getDate(java.util.Calendar cal) |
double |
getDouble() |
protected byte[] |
getFieldData() |
float |
getFloat() |
int |
getInt() |
long |
getLong() |
java.lang.String |
getName()
Returns the name of the column as declared in the XSQLVAR.
|
java.lang.Object |
getObject() |
<T> T |
getObject(java.lang.Class<T> type) |
java.lang.Object |
getObject(java.util.Map<java.lang.String,java.lang.Class<?>> map) |
protected org.firebirdsql.jdbc.field.ObjectConverter |
getObjectConverter() |
DatatypeCoder.RawDateTimeStruct |
getRawDateTimeStruct() |
java.sql.Ref |
getRef() |
java.lang.String |
getRelationName()
Returns the relation to which belongs column as declared in XSQLVAR.
|
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) |
protected boolean |
isInvertTimeZone() |
boolean |
isNull() |
static boolean |
isType(FieldDescriptor field,
int jdbcType) |
void |
setBigDecimal(java.math.BigDecimal value) |
void |
setBigInteger(java.math.BigInteger value) |
void |
setBinaryStream(java.io.InputStream in) |
void |
setBinaryStream(java.io.InputStream in,
int length) |
void |
setBinaryStream(java.io.InputStream in,
long length) |
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 |
setCharacterStream(java.io.Reader in) |
void |
setCharacterStream(java.io.Reader in,
int length) |
void |
setCharacterStream(java.io.Reader in,
long length) |
protected void |
setCharacterStreamInternal(java.io.Reader in,
long length) |
void |
setClob(FBClob clob) |
void |
setConnection(GDSHelper gdsHelper) |
void |
setDate(java.sql.Date value) |
void |
setDate(java.sql.Date value,
java.util.Calendar cal) |
void |
setDouble(double value) |
protected void |
setFieldData(byte[] data) |
void |
setFloat(float value) |
void |
setInteger(int value) |
void |
setLong(long value) |
void |
setNull() |
void |
setObject(java.lang.Object value) |
void |
setRawDateTimeStruct(DatatypeCoder.RawDateTimeStruct raw) |
void |
setRequiredType(int requiredType)
Set the required type for
getObject() conversion. |
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) |
protected final FieldDescriptor fieldDescriptor
protected GDSHelper gdsHelper
protected java.lang.String mappingPath
protected int requiredType
protected int scale
protected final byte[] getFieldData()
protected final void setFieldData(byte[] data)
protected final org.firebirdsql.jdbc.field.ObjectConverter getObjectConverter()
protected final DatatypeCoder getDatatypeCoder()
public final boolean isNull()
throws java.sql.SQLException
true if the corresponding field is
null, otherwise false.java.sql.SQLExceptionpublic void setNull()
public void setConnection(GDSHelper gdsHelper)
public void setRequiredType(int requiredType)
getObject() conversion.requiredType - required type, one of the Types constants.public static boolean isType(FieldDescriptor field, int jdbcType)
true if the field is of type type.
TODO write correct ISCConstants.SQL_QUAD support
TODO Consider moving to FieldDescriptor itselfpublic static FBField createField(FieldDescriptor fieldDescriptor, FieldDataProvider dataProvider, GDSHelper gdsHelper, boolean cached) throws java.sql.SQLException
FBField class according to the SQL datatype. This instance
knows how to perform all necessary type conversions.java.sql.SQLExceptionpublic java.lang.String getName()
public java.lang.String getAlias()
public java.lang.String getRelationName()
public void close()
throws java.sql.SQLException
java.sql.SQLException - if field cannot be closed.public byte getByte()
throws java.sql.SQLException
java.sql.SQLExceptionpublic short getShort()
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getInt()
throws java.sql.SQLException
java.sql.SQLExceptionpublic long getLong()
throws java.sql.SQLException
java.sql.SQLExceptionpublic float getFloat()
throws java.sql.SQLException
java.sql.SQLExceptionpublic double getDouble()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.math.BigDecimal getBigDecimal()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.math.BigDecimal getBigDecimal(int scale)
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean getBoolean()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.String getString()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.Object getObject()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.Object getObject(java.util.Map<java.lang.String,java.lang.Class<?>> map)
throws java.sql.SQLException
java.sql.SQLExceptionpublic <T> T getObject(java.lang.Class<T> type)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.io.InputStream getBinaryStream()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.io.Reader getCharacterStream()
throws java.sql.SQLException
java.sql.SQLExceptionpublic byte[] getBytes()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Blob getBlob()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Date getDate()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Date getDate(java.util.Calendar cal)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Time getTime()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Time getTime(java.util.Calendar cal)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Timestamp getTimestamp()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Timestamp getTimestamp(java.util.Calendar cal)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Ref getRef()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Clob getClob()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.Array getArray()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.math.BigInteger getBigInteger()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setByte(byte value)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setShort(short value)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setInteger(int value)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setLong(long value)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setFloat(float value)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setDouble(double value)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setBigDecimal(java.math.BigDecimal value)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setBoolean(boolean value)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setString(java.lang.String value)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setBigInteger(java.math.BigInteger value)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setObject(java.lang.Object value)
throws java.sql.SQLException
java.sql.SQLExceptionprotected void setBinaryStreamInternal(java.io.InputStream in,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic final void setBinaryStream(java.io.InputStream in,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic final void setBinaryStream(java.io.InputStream in)
throws java.sql.SQLException
java.sql.SQLExceptionpublic final void setBinaryStream(java.io.InputStream in,
int length)
throws java.sql.SQLException
java.sql.SQLExceptionprotected void setCharacterStreamInternal(java.io.Reader in,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic final void setCharacterStream(java.io.Reader in,
long length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic final void setCharacterStream(java.io.Reader in)
throws java.sql.SQLException
java.sql.SQLExceptionpublic final void setCharacterStream(java.io.Reader in,
int length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setBytes(byte[] value)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setDate(java.sql.Date value,
java.util.Calendar cal)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setDate(java.sql.Date value)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setTime(java.sql.Time value,
java.util.Calendar cal)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setTime(java.sql.Time value)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setTimestamp(java.sql.Timestamp value,
java.util.Calendar cal)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setTimestamp(java.sql.Timestamp value)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setBlob(FBBlob blob) throws java.sql.SQLException
java.sql.SQLExceptionpublic void setClob(FBClob clob) throws java.sql.SQLException
java.sql.SQLExceptionpublic DatatypeCoder.RawDateTimeStruct getRawDateTimeStruct() throws java.sql.SQLException
java.sql.SQLExceptionpublic void setRawDateTimeStruct(DatatypeCoder.RawDateTimeStruct raw) throws java.sql.SQLException
java.sql.SQLExceptionprotected boolean isInvertTimeZone()
Copyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.