|
jxUtil 0.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sourceforge.jxutil.sql.type.AbstractType | +--org.sourceforge.jxutil.sql.type.ProxyType
Field Summary | |
boolean |
autoIncrement
|
boolean |
caseSensitive
|
int |
columnType
|
String |
columnTypeName
|
boolean |
currency
|
boolean |
definitelyWritable
|
int |
nullable
|
int |
precision
|
boolean |
readOnly
|
int |
scale
|
int |
searchable
|
boolean |
signed
|
AbstractType |
type
|
boolean |
writable
|
Fields inherited from class org.sourceforge.jxutil.sql.type.AbstractType |
BD_ONE, BD_ZERO, name |
Constructor Summary | |
ProxyType()
|
|
ProxyType(ResultSetMetaData rsMeta,
int idx)
|
Method Summary | |
AbstractType |
deriveType(int d)
Derive a type from this type, modifying it according to the given integer parameter. |
Array |
getArray(Object o,
ConversionContext ctx)
|
InputStream |
getAsciiStream(Object o,
ConversionContext ctx)
|
boolean |
getAutoInc()
Get whether this type is automatically incrementing. |
BigDecimal |
getBigDecimal(Object o,
ConversionContext ctx)
Get a BigDecimal. |
InputStream |
getBinaryStream(Object o,
ConversionContext ctx)
|
Blob |
getBlob(Object o,
ConversionContext ctx)
|
boolean |
getBoolean(Object o,
ConversionContext ctx)
Get a boolean. |
byte |
getByte(Object o,
ConversionContext ctx)
Get a byte. |
byte[] |
getBytes(Object o,
ConversionContext ctx)
|
boolean |
getCaseSensitive()
Get whether data of this type is treated case sensitive. |
Reader |
getCharacterStream(Object o,
ConversionContext ctx)
|
Clob |
getClob(Object o,
ConversionContext ctx)
|
String |
getCreateParams()
Get the additional parameters to supply in a CREATE TABLE statement using this type. |
boolean |
getCurrency()
Get whether this type is a currency type. |
Date |
getDate(Object o,
Calendar cal,
ConversionContext ctx)
Get a Date using given Calendar. |
double |
getDouble(Object o,
ConversionContext ctx)
Get a double. |
float |
getFloat(Object o,
ConversionContext ctx)
Get a float. |
int |
getInt(Object o,
ConversionContext ctx)
Get an int. |
Class |
getJavaClass()
Get the Java Class returned when calling getObject on this type. |
Class |
getJavaType()
Get the Java Class of the primitive type best representing data of this database type. |
int |
getJDBCType()
Get the type's closest representation as a JDBC type. |
String |
getLiteral(Object o,
ConversionContext ctx)
Get a literal value. |
String |
getLiteralPrefix()
Get the prefix to use for literal data of this type. |
String |
getLiteralSuffix()
Get the suffix to use for literal data of this type. |
String |
getLocalName()
Get the type's local name. |
long |
getLong(Object o,
ConversionContext ctx)
Get a long. |
short |
getMaxScale()
Get the type's maximum allowed scale. |
short |
getMinScale()
Get the type's minimum allowed scale. |
int |
getNullable()
Get whether this type can be nulled. |
int |
getNumRadix()
Get the type's numeric radix. |
Object |
getObject(Object o,
Map map,
ConversionContext ctx)
|
int |
getPrecision()
Get the type's precision. |
Ref |
getRef(Object o,
ConversionContext ctx)
|
int |
getScale()
Get the type's scale. |
int |
getSearchable()
Get whether columns of this type can be used in search constructs. |
short |
getShort(Object o,
ConversionContext ctx)
Get a short. |
String |
getString(Object o,
ConversionContext ctx)
|
Time |
getTime(Object o,
Calendar cal,
ConversionContext ctx)
Get a Time using given Calendar. |
Timestamp |
getTimestamp(Object o,
Calendar cal,
ConversionContext ctx)
|
boolean |
getUnsigned()
Get whether data of this type is unsigned. |
URL |
getURL(Object o,
ConversionContext ctx)
|
void |
setArray(Object o,
Array x,
ConversionContext ctx)
|
void |
setAsciiStream(Object o,
InputStream in,
int length,
ConversionContext ctx)
|
void |
setBigDecimal(Object o,
BigDecimal x,
ConversionContext ctx)
|
void |
setBinaryStream(Object o,
InputStream in,
int length,
ConversionContext ctx)
|
void |
setBlob(Object o,
Blob x,
ConversionContext ctx)
|
void |
setBoolean(Object o,
boolean x,
ConversionContext ctx)
|
void |
setByte(Object o,
byte x,
ConversionContext ctx)
|
void |
setBytes(Object o,
byte[] x,
ConversionContext ctx)
|
void |
setCharacterStream(Object o,
Reader in,
int length,
ConversionContext ctx)
|
void |
setClob(Object o,
Clob x,
ConversionContext ctx)
|
void |
setDate(Object o,
Date x,
Calendar cal,
ConversionContext ctx)
|
void |
setDouble(Object o,
double x,
ConversionContext ctx)
|
void |
setFloat(Object o,
float x,
ConversionContext ctx)
|
void |
setInt(Object o,
int x,
ConversionContext ctx)
|
void |
setLong(Object o,
long x,
ConversionContext ctx)
|
void |
setNull(Object o,
ConversionContext ctx)
|
void |
setNull(Object o,
int parameterType,
ConversionContext ctx)
|
void |
setNull(Object o,
int parameterType,
String parameterName,
ConversionContext ctx)
|
void |
setObject(Object o,
Object x,
ConversionContext ctx)
|
void |
setObject(Object o,
Object x,
int target,
ConversionContext ctx)
Set value from Object. |
void |
setObject(Object o,
Object x,
int target,
int scale,
ConversionContext ctx)
Set value from Object. |
void |
setRef(Object o,
Ref x,
ConversionContext ctx)
|
void |
setShort(Object o,
short x,
ConversionContext ctx)
|
void |
setString(Object o,
String x,
ConversionContext ctx)
|
void |
setStruct(Object o,
Struct x,
ConversionContext ctx)
|
void |
setTime(Object o,
Time x,
Calendar cal,
ConversionContext ctx)
|
void |
setTimestamp(Object o,
Timestamp x,
Calendar cal,
ConversionContext ctx)
|
void |
setURL(Object o,
URL x,
ConversionContext ctx)
|
String |
toString()
Print lots of information on this type. |
Methods inherited from class org.sourceforge.jxutil.sql.type.AbstractType |
dataTruncationRead, dataTruncationWrite, getDate, getName, getObject, getTime, getTimestamp, noConversion, noConversion, noConversion, setDate, setTime, setTimestamp |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public boolean autoIncrement
public boolean caseSensitive
public int columnType
public String columnTypeName
public boolean currency
public boolean definitelyWritable
public int nullable
public int precision
public boolean readOnly
public int scale
public int searchable
public boolean signed
public AbstractType type
public boolean writable
Constructor Detail |
public ProxyType()
public ProxyType(ResultSetMetaData rsMeta, int idx) throws SQLException
Method Detail |
public AbstractType deriveType(int d)
deriveType
in class AbstractType
public Array getArray(Object o, ConversionContext ctx) throws SQLException
getArray
in class AbstractType
SQLException
public InputStream getAsciiStream(Object o, ConversionContext ctx) throws SQLException
getAsciiStream
in class AbstractType
SQLException
public boolean getAutoInc()
getAutoInc
in class AbstractType
public BigDecimal getBigDecimal(Object o, ConversionContext ctx) throws SQLException
getBigDecimal
in class AbstractType
SQLException
public InputStream getBinaryStream(Object o, ConversionContext ctx) throws SQLException
getBinaryStream
in class AbstractType
SQLException
public Blob getBlob(Object o, ConversionContext ctx) throws SQLException
getBlob
in class AbstractType
SQLException
public boolean getBoolean(Object o, ConversionContext ctx) throws SQLException
getBoolean
in class AbstractType
SQLException
public byte getByte(Object o, ConversionContext ctx) throws SQLException
getByte
in class AbstractType
SQLException
public byte[] getBytes(Object o, ConversionContext ctx) throws SQLException
getBytes
in class AbstractType
SQLException
public boolean getCaseSensitive()
getCaseSensitive
in class AbstractType
public Reader getCharacterStream(Object o, ConversionContext ctx) throws SQLException
getCharacterStream
in class AbstractType
SQLException
public Clob getClob(Object o, ConversionContext ctx) throws SQLException
getClob
in class AbstractType
SQLException
public String getCreateParams()
getCreateParams
in class AbstractType
public boolean getCurrency()
getCurrency
in class AbstractType
public Date getDate(Object o, Calendar cal, ConversionContext ctx) throws SQLException
getDate
in class AbstractType
SQLException
public double getDouble(Object o, ConversionContext ctx) throws SQLException
getDouble
in class AbstractType
SQLException
public float getFloat(Object o, ConversionContext ctx) throws SQLException
getFloat
in class AbstractType
SQLException
public int getInt(Object o, ConversionContext ctx) throws SQLException
getInt
in class AbstractType
SQLException
public Class getJavaClass()
getJavaClass
in class AbstractType
public Class getJavaType()
getJavaType
in class AbstractType
public int getJDBCType()
getJDBCType
in class AbstractType
Types
public String getLiteral(Object o, ConversionContext ctx) throws SQLException
getLiteral
in class AbstractType
SQLException
public String getLiteralPrefix()
getLiteralPrefix
in class AbstractType
public String getLiteralSuffix()
getLiteralSuffix
in class AbstractType
public String getLocalName()
getLocalName
in class AbstractType
public long getLong(Object o, ConversionContext ctx) throws SQLException
getLong
in class AbstractType
SQLException
public short getMaxScale()
getMaxScale
in class AbstractType
public short getMinScale()
getMinScale
in class AbstractType
public int getNullable()
getNullable
in class AbstractType
public int getNumRadix()
getNumRadix
in class AbstractType
public Object getObject(Object o, Map map, ConversionContext ctx) throws SQLException
getObject
in class AbstractType
SQLException
public int getPrecision()
getPrecision
in class AbstractType
public Ref getRef(Object o, ConversionContext ctx) throws SQLException
getRef
in class AbstractType
SQLException
public int getScale()
getScale
in class AbstractType
public int getSearchable()
getSearchable
in class AbstractType
public short getShort(Object o, ConversionContext ctx) throws SQLException
getShort
in class AbstractType
SQLException
public String getString(Object o, ConversionContext ctx) throws SQLException
getString
in class AbstractType
SQLException
public Time getTime(Object o, Calendar cal, ConversionContext ctx) throws SQLException
getTime
in class AbstractType
SQLException
public Timestamp getTimestamp(Object o, Calendar cal, ConversionContext ctx) throws SQLException
getTimestamp
in class AbstractType
SQLException
public boolean getUnsigned()
getUnsigned
in class AbstractType
public URL getURL(Object o, ConversionContext ctx) throws SQLException
getURL
in class AbstractType
SQLException
public void setArray(Object o, Array x, ConversionContext ctx) throws SQLException
setArray
in class AbstractType
SQLException
public void setAsciiStream(Object o, InputStream in, int length, ConversionContext ctx) throws SQLException
setAsciiStream
in class AbstractType
SQLException
public void setBigDecimal(Object o, BigDecimal x, ConversionContext ctx) throws SQLException
setBigDecimal
in class AbstractType
SQLException
public void setBinaryStream(Object o, InputStream in, int length, ConversionContext ctx) throws SQLException
setBinaryStream
in class AbstractType
SQLException
public void setBlob(Object o, Blob x, ConversionContext ctx) throws SQLException
setBlob
in class AbstractType
SQLException
public void setBoolean(Object o, boolean x, ConversionContext ctx) throws SQLException
setBoolean
in class AbstractType
SQLException
public void setByte(Object o, byte x, ConversionContext ctx) throws SQLException
setByte
in class AbstractType
SQLException
public void setBytes(Object o, byte[] x, ConversionContext ctx) throws SQLException
setBytes
in class AbstractType
SQLException
public void setCharacterStream(Object o, Reader in, int length, ConversionContext ctx) throws SQLException
setCharacterStream
in class AbstractType
SQLException
public void setClob(Object o, Clob x, ConversionContext ctx) throws SQLException
setClob
in class AbstractType
SQLException
public void setDate(Object o, Date x, Calendar cal, ConversionContext ctx) throws SQLException
setDate
in class AbstractType
SQLException
public void setDouble(Object o, double x, ConversionContext ctx) throws SQLException
setDouble
in class AbstractType
SQLException
public void setFloat(Object o, float x, ConversionContext ctx) throws SQLException
setFloat
in class AbstractType
SQLException
public void setInt(Object o, int x, ConversionContext ctx) throws SQLException
setInt
in class AbstractType
SQLException
public void setLong(Object o, long x, ConversionContext ctx) throws SQLException
setLong
in class AbstractType
SQLException
public void setNull(Object o, ConversionContext ctx) throws SQLException
setNull
in class AbstractType
SQLException
public void setNull(Object o, int parameterType, ConversionContext ctx) throws SQLException
setNull
in class AbstractType
SQLException
public void setNull(Object o, int parameterType, String parameterName, ConversionContext ctx) throws SQLException
setNull
in class AbstractType
SQLException
public void setObject(Object o, Object x, ConversionContext ctx) throws SQLException
setObject
in class AbstractType
SQLException
public void setObject(Object o, Object x, int target, ConversionContext ctx) throws SQLException
AbstractType
setObject
in class AbstractType
SQLException
public void setObject(Object o, Object x, int target, int scale, ConversionContext ctx) throws SQLException
AbstractType
setObject
in class AbstractType
SQLException
public void setRef(Object o, Ref x, ConversionContext ctx) throws SQLException
setRef
in class AbstractType
SQLException
public void setShort(Object o, short x, ConversionContext ctx) throws SQLException
setShort
in class AbstractType
SQLException
public void setString(Object o, String x, ConversionContext ctx) throws SQLException
setString
in class AbstractType
SQLException
public void setStruct(Object o, Struct x, ConversionContext ctx) throws SQLException
setStruct
in class AbstractType
SQLException
public void setTime(Object o, Time x, Calendar cal, ConversionContext ctx) throws SQLException
setTime
in class AbstractType
SQLException
public void setTimestamp(Object o, Timestamp x, Calendar cal, ConversionContext ctx) throws SQLException
setTimestamp
in class AbstractType
SQLException
public void setURL(Object o, URL x, ConversionContext ctx) throws SQLException
setURL
in class AbstractType
SQLException
public String toString()
toString
in class AbstractType
|
jxUtil 0.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |