|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.firebirdsql.jdbc.field.FBField
public abstract class FBField
Describe class FBField here.
| Field Summary | |
|---|---|
protected XSQLVAR |
field
|
protected GDSHelper |
gdsHelper
|
protected String |
iscEncoding
|
protected String |
javaEncoding
|
protected String |
mappingPath
|
protected int |
numCol
|
protected int |
requiredType
|
protected int |
scale
|
| Method Summary | |
|---|---|
void |
close()
Close this field. |
static FBField |
createField(XSQLVAR field,
FieldDataProvider dataProvider,
GDSHelper gdsHelper,
boolean cached)
This is a factory method that creates appropriate instance of the FBField class according to the SQL datatype. |
String |
getAlias()
Returns the alias of the column as declared in XSQLVAR. |
Array |
getArray()
|
InputStream |
getAsciiStream()
|
BigDecimal |
getBigDecimal()
|
BigDecimal |
getBigDecimal(int scale)
|
InputStream |
getBinaryStream()
|
Blob |
getBlob()
|
boolean |
getBoolean()
|
byte |
getByte()
|
byte[] |
getBytes()
|
Reader |
getCharacterStream()
|
Clob |
getClob()
|
Date |
getDate()
|
Date |
getDate(Calendar cal)
|
double |
getDouble()
|
protected byte[] |
getFieldData()
|
float |
getFloat()
|
int |
getInt()
|
long |
getLong()
|
String |
getName()
Returns the name of the column as declared in the XSQLVAR. |
Object |
getObject()
|
Object |
getObject(Map map)
|
Ref |
getRef()
|
String |
getRelationName()
Returns the relation to which belongs column as declared in XSQLVAR. |
short |
getShort()
|
String |
getString()
|
Time |
getTime()
|
Time |
getTime(Calendar cal)
|
Timestamp |
getTimestamp()
|
Timestamp |
getTimestamp(Calendar cal)
|
InputStream |
getUnicodeStream()
|
static boolean |
isCompatible(XSQLVAR field,
int type)
This method implements the type compatibility matrix from "JDBC(tm): A Java SQL API, version 1.20" whitepaper, page 21. |
protected boolean |
isInvertTimeZone()
|
boolean |
isNull()
|
static boolean |
isType(XSQLVAR field,
int type)
|
void |
setAsciiStream(InputStream in,
int length)
|
void |
setBigDecimal(BigDecimal value)
|
void |
setBinaryStream(InputStream in,
int length)
|
void |
setBlob(FBBlob blob)
|
void |
setBoolean(boolean value)
|
void |
setByte(byte value)
|
void |
setBytes(byte[] value)
|
void |
setCharacterStream(Reader in,
int length)
|
void |
setConnection(GDSHelper gdsHelper)
|
void |
setDate(Date value)
|
void |
setDate(Date value,
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(Object value)
|
void |
setRequiredType(int requiredType)
Set the required type for getObject() conversion. |
void |
setShort(short value)
|
void |
setString(String value)
|
void |
setTime(Time value)
|
void |
setTime(Time value,
Calendar cal)
|
void |
setTimestamp(Timestamp value)
|
void |
setTimestamp(Timestamp value,
Calendar cal)
|
void |
setUnicodeStream(InputStream in,
int length)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected XSQLVAR field
protected int numCol
protected GDSHelper gdsHelper
protected String iscEncoding
protected String javaEncoding
protected String mappingPath
protected int requiredType
protected int scale
| Method Detail |
|---|
protected byte[] getFieldData()
protected void setFieldData(byte[] data)
public boolean isNull()
throws SQLException
true if the corresponding field
is null, otherwise false.
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 final boolean isType(XSQLVAR field,
int type)
true if the field is of type type.
TODO write correct ISCConstants.SQL_QUAD support
public static final boolean isCompatible(XSQLVAR field,
int type)
public static final FBField createField(XSQLVAR field,
FieldDataProvider dataProvider,
GDSHelper gdsHelper,
boolean cached)
throws SQLException
FBField class according to the SQL datatype. This instance
knows how to perform all necessary type conversions.
SQLExceptionpublic String getName()
public String getAlias()
public String getRelationName()
public void close()
throws SQLException
SQLException - if field cannot be closed.
public byte getByte()
throws SQLException
SQLException
public short getShort()
throws SQLException
SQLException
public int getInt()
throws SQLException
SQLException
public long getLong()
throws SQLException
SQLException
public float getFloat()
throws SQLException
SQLException
public double getDouble()
throws SQLException
SQLException
public BigDecimal getBigDecimal()
throws SQLException
SQLException
public BigDecimal getBigDecimal(int scale)
throws SQLException
SQLException
public boolean getBoolean()
throws SQLException
SQLException
public String getString()
throws SQLException
SQLException
public Object getObject()
throws SQLException
SQLException
public Object getObject(Map map)
throws SQLException
SQLException
public InputStream getAsciiStream()
throws SQLException
SQLException
public InputStream getUnicodeStream()
throws SQLException
SQLException
public InputStream getBinaryStream()
throws SQLException
SQLException
public Reader getCharacterStream()
throws SQLException
SQLException
public byte[] getBytes()
throws SQLException
SQLException
public Blob getBlob()
throws SQLException
SQLException
public Date getDate()
throws SQLException
SQLException
public Date getDate(Calendar cal)
throws SQLException
SQLException
public Time getTime()
throws SQLException
SQLException
public Time getTime(Calendar cal)
throws SQLException
SQLException
public Timestamp getTimestamp()
throws SQLException
SQLException
public Timestamp getTimestamp(Calendar cal)
throws SQLException
SQLException
public Ref getRef()
throws SQLException
SQLException
public Clob getClob()
throws SQLException
SQLException
public Array getArray()
throws SQLException
SQLException
public void setByte(byte value)
throws SQLException
SQLException
public void setShort(short value)
throws SQLException
SQLException
public void setInteger(int value)
throws SQLException
SQLException
public void setLong(long value)
throws SQLException
SQLException
public void setFloat(float value)
throws SQLException
SQLException
public void setDouble(double value)
throws SQLException
SQLException
public void setBigDecimal(BigDecimal value)
throws SQLException
SQLException
public void setBoolean(boolean value)
throws SQLException
SQLException
public void setString(String value)
throws SQLException
SQLException
public void setObject(Object value)
throws SQLException
SQLException
public void setAsciiStream(InputStream in,
int length)
throws SQLException
SQLException
public void setUnicodeStream(InputStream in,
int length)
throws SQLException
SQLException
public void setBinaryStream(InputStream in,
int length)
throws SQLException
SQLException
public void setCharacterStream(Reader in,
int length)
throws SQLException
SQLException
public void setBytes(byte[] value)
throws SQLException
SQLException
public void setDate(Date value,
Calendar cal)
throws SQLException
SQLException
public void setDate(Date value)
throws SQLException
SQLException
public void setTime(Time value,
Calendar cal)
throws SQLException
SQLException
public void setTime(Time value)
throws SQLException
SQLException
public void setTimestamp(Timestamp value,
Calendar cal)
throws SQLException
SQLException
public void setTimestamp(Timestamp value)
throws SQLException
SQLException
public void setBlob(FBBlob blob)
throws SQLException
SQLExceptionprotected boolean isInvertTimeZone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||