| 
 | 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 AbstractTypeSQLException
public InputStream getAsciiStream(Object o,
                                  ConversionContext ctx)
                           throws SQLException
getAsciiStream in class AbstractTypeSQLExceptionpublic boolean getAutoInc()
getAutoInc in class AbstractType
public BigDecimal getBigDecimal(Object o,
                                ConversionContext ctx)
                         throws SQLException
getBigDecimal in class AbstractTypeSQLException
public InputStream getBinaryStream(Object o,
                                   ConversionContext ctx)
                            throws SQLException
getBinaryStream in class AbstractTypeSQLException
public Blob getBlob(Object o,
                    ConversionContext ctx)
             throws SQLException
getBlob in class AbstractTypeSQLException
public boolean getBoolean(Object o,
                          ConversionContext ctx)
                   throws SQLException
getBoolean in class AbstractTypeSQLException
public byte getByte(Object o,
                    ConversionContext ctx)
             throws SQLException
getByte in class AbstractTypeSQLException
public byte[] getBytes(Object o,
                       ConversionContext ctx)
                throws SQLException
getBytes in class AbstractTypeSQLExceptionpublic boolean getCaseSensitive()
getCaseSensitive in class AbstractType
public Reader getCharacterStream(Object o,
                                 ConversionContext ctx)
                          throws SQLException
getCharacterStream in class AbstractTypeSQLException
public Clob getClob(Object o,
                    ConversionContext ctx)
             throws SQLException
getClob in class AbstractTypeSQLExceptionpublic String getCreateParams()
getCreateParams in class AbstractTypepublic boolean getCurrency()
getCurrency in class AbstractType
public Date getDate(Object o,
                    Calendar cal,
                    ConversionContext ctx)
             throws SQLException
getDate in class AbstractTypeSQLException
public double getDouble(Object o,
                        ConversionContext ctx)
                 throws SQLException
getDouble in class AbstractTypeSQLException
public float getFloat(Object o,
                      ConversionContext ctx)
               throws SQLException
getFloat in class AbstractTypeSQLException
public int getInt(Object o,
                  ConversionContext ctx)
           throws SQLException
getInt in class AbstractTypeSQLExceptionpublic Class getJavaClass()
getJavaClass in class AbstractTypepublic Class getJavaType()
getJavaType in class AbstractTypepublic int getJDBCType()
getJDBCType in class AbstractTypeTypes
public String getLiteral(Object o,
                         ConversionContext ctx)
                  throws SQLException
getLiteral in class AbstractTypeSQLExceptionpublic String getLiteralPrefix()
getLiteralPrefix in class AbstractTypepublic String getLiteralSuffix()
getLiteralSuffix in class AbstractTypepublic String getLocalName()
getLocalName in class AbstractType
public long getLong(Object o,
                    ConversionContext ctx)
             throws SQLException
getLong in class AbstractTypeSQLExceptionpublic short getMaxScale()
getMaxScale in class AbstractTypepublic short getMinScale()
getMinScale in class AbstractTypepublic int getNullable()
getNullable in class AbstractTypepublic int getNumRadix()
getNumRadix in class AbstractType
public Object getObject(Object o,
                        Map map,
                        ConversionContext ctx)
                 throws SQLException
getObject in class AbstractTypeSQLExceptionpublic int getPrecision()
getPrecision in class AbstractType
public Ref getRef(Object o,
                  ConversionContext ctx)
           throws SQLException
getRef in class AbstractTypeSQLExceptionpublic int getScale()
getScale in class AbstractTypepublic int getSearchable()
getSearchable in class AbstractType
public short getShort(Object o,
                      ConversionContext ctx)
               throws SQLException
getShort in class AbstractTypeSQLException
public String getString(Object o,
                        ConversionContext ctx)
                 throws SQLException
getString in class AbstractTypeSQLException
public Time getTime(Object o,
                    Calendar cal,
                    ConversionContext ctx)
             throws SQLException
getTime in class AbstractTypeSQLException
public Timestamp getTimestamp(Object o,
                              Calendar cal,
                              ConversionContext ctx)
                       throws SQLException
getTimestamp in class AbstractTypeSQLExceptionpublic boolean getUnsigned()
getUnsigned in class AbstractType
public URL getURL(Object o,
                  ConversionContext ctx)
           throws SQLException
getURL in class AbstractTypeSQLException
public void setArray(Object o,
                     Array x,
                     ConversionContext ctx)
              throws SQLException
setArray in class AbstractTypeSQLException
public void setAsciiStream(Object o,
                           InputStream in,
                           int length,
                           ConversionContext ctx)
                    throws SQLException
setAsciiStream in class AbstractTypeSQLException
public void setBigDecimal(Object o,
                          BigDecimal x,
                          ConversionContext ctx)
                   throws SQLException
setBigDecimal in class AbstractTypeSQLException
public void setBinaryStream(Object o,
                            InputStream in,
                            int length,
                            ConversionContext ctx)
                     throws SQLException
setBinaryStream in class AbstractTypeSQLException
public void setBlob(Object o,
                    Blob x,
                    ConversionContext ctx)
             throws SQLException
setBlob in class AbstractTypeSQLException
public void setBoolean(Object o,
                       boolean x,
                       ConversionContext ctx)
                throws SQLException
setBoolean in class AbstractTypeSQLException
public void setByte(Object o,
                    byte x,
                    ConversionContext ctx)
             throws SQLException
setByte in class AbstractTypeSQLException
public void setBytes(Object o,
                     byte[] x,
                     ConversionContext ctx)
              throws SQLException
setBytes in class AbstractTypeSQLException
public void setCharacterStream(Object o,
                               Reader in,
                               int length,
                               ConversionContext ctx)
                        throws SQLException
setCharacterStream in class AbstractTypeSQLException
public void setClob(Object o,
                    Clob x,
                    ConversionContext ctx)
             throws SQLException
setClob in class AbstractTypeSQLException
public void setDate(Object o,
                    Date x,
                    Calendar cal,
                    ConversionContext ctx)
             throws SQLException
setDate in class AbstractTypeSQLException
public void setDouble(Object o,
                      double x,
                      ConversionContext ctx)
               throws SQLException
setDouble in class AbstractTypeSQLException
public void setFloat(Object o,
                     float x,
                     ConversionContext ctx)
              throws SQLException
setFloat in class AbstractTypeSQLException
public void setInt(Object o,
                   int x,
                   ConversionContext ctx)
            throws SQLException
setInt in class AbstractTypeSQLException
public void setLong(Object o,
                    long x,
                    ConversionContext ctx)
             throws SQLException
setLong in class AbstractTypeSQLException
public void setNull(Object o,
                    ConversionContext ctx)
             throws SQLException
setNull in class AbstractTypeSQLException
public void setNull(Object o,
                    int parameterType,
                    ConversionContext ctx)
             throws SQLException
setNull in class AbstractTypeSQLException
public void setNull(Object o,
                    int parameterType,
                    String parameterName,
                    ConversionContext ctx)
             throws SQLException
setNull in class AbstractTypeSQLException
public void setObject(Object o,
                      Object x,
                      ConversionContext ctx)
               throws SQLException
setObject in class AbstractTypeSQLException
public void setObject(Object o,
                      Object x,
                      int target,
                      ConversionContext ctx)
               throws SQLException
AbstractType
setObject in class AbstractTypeSQLException
public void setObject(Object o,
                      Object x,
                      int target,
                      int scale,
                      ConversionContext ctx)
               throws SQLException
AbstractType
setObject in class AbstractTypeSQLException
public void setRef(Object o,
                   Ref x,
                   ConversionContext ctx)
            throws SQLException
setRef in class AbstractTypeSQLException
public void setShort(Object o,
                     short x,
                     ConversionContext ctx)
              throws SQLException
setShort in class AbstractTypeSQLException
public void setString(Object o,
                      String x,
                      ConversionContext ctx)
               throws SQLException
setString in class AbstractTypeSQLException
public void setStruct(Object o,
                      Struct x,
                      ConversionContext ctx)
               throws SQLException
setStruct in class AbstractTypeSQLException
public void setTime(Object o,
                    Time x,
                    Calendar cal,
                    ConversionContext ctx)
             throws SQLException
setTime in class AbstractTypeSQLException
public void setTimestamp(Object o,
                         Timestamp x,
                         Calendar cal,
                         ConversionContext ctx)
                  throws SQLException
setTimestamp in class AbstractTypeSQLException
public void setURL(Object o,
                   URL x,
                   ConversionContext ctx)
            throws SQLException
setURL in class AbstractTypeSQLExceptionpublic 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 | ||||||||