jxDBCon 0.9z

org.sourceforge.jxdbcon.postgresql
Class PGTextTypes.PGvarchar

java.lang.Object
  |
  +--org.sourceforge.jxutil.sql.type.AbstractType
        |
        +--org.sourceforge.jxutil.sql.type.AbstractText
              |
              +--org.sourceforge.jxutil.sql.type.AbstractVARCHAR
                    |
                    +--org.sourceforge.jxdbcon.postgresql.PGTextTypes.PGvarchar
Enclosing class:
PGTextTypes

public static final class PGTextTypes.PGvarchar
extends AbstractVARCHAR

VARCHAR() type. Using byte values in the current encoding.


Field Summary
static PGTextTypes.PGvarchar DEFINSTANCE
           
 
Fields inherited from class org.sourceforge.jxutil.sql.type.AbstractVARCHAR
length
 
Fields inherited from class org.sourceforge.jxutil.sql.type.AbstractType
BD_ONE, BD_ZERO, name
 
Constructor Summary
PGTextTypes.PGvarchar(int prec)
           
 
Method Summary
 AbstractType deriveType(int d)
           
 byte[] getBytes(Object row, ConversionContext ctx)
           
 boolean getCaseSensitive()
           
 String getLiteral(Object row, ConversionContext ctx)
           
 String getLiteralPrefix()
           
 String getLiteralSuffix()
           
 short getMaxScale()
           
 short getMinScale()
           
 String getString(Object row, ConversionContext ctx)
           
 void setBytes(Object row, byte[] val, ConversionContext ctx)
           
 void setNull(Object row, ConversionContext ctx)
           
 void setString(Object row, String val, ConversionContext ctx)
           
 
Methods inherited from class org.sourceforge.jxutil.sql.type.AbstractVARCHAR
getBigDecimal, getBoolean, getByte, getDate, getDouble, getFloat, getInt, getJavaClass, getJavaType, getJDBCType, getLength, getLong, getObject, getPrecision, getShort, getTime, getTimestamp, setBigDecimal, setBoolean, setByte, setDate, setDouble, setFloat, setInt, setLong, setShort, setTime, setTimestamp
 
Methods inherited from class org.sourceforge.jxutil.sql.type.AbstractType
dataTruncationRead, dataTruncationWrite, getArray, getAsciiStream, getAutoInc, getBinaryStream, getBlob, getCharacterStream, getClob, getCreateParams, getCurrency, getDate, getLocalName, getName, getNullable, getNumRadix, getObject, getRef, getScale, getSearchable, getTime, getTimestamp, getUnsigned, getURL, noConversion, noConversion, noConversion, setArray, setAsciiStream, setBinaryStream, setBlob, setCharacterStream, setClob, setDate, setNull, setNull, setObject, setObject, setObject, setRef, setStruct, setTime, setTimestamp, setURL, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFINSTANCE

public static final PGTextTypes.PGvarchar DEFINSTANCE
Constructor Detail

PGTextTypes.PGvarchar

public PGTextTypes.PGvarchar(int prec)
Method Detail

deriveType

public AbstractType deriveType(int d)
Overrides:
deriveType in class AbstractType

getBytes

public byte[] getBytes(Object row,
                       ConversionContext ctx)
Overrides:
getBytes in class AbstractType

getCaseSensitive

public boolean getCaseSensitive()
Overrides:
getCaseSensitive in class AbstractType

getLiteral

public String getLiteral(Object row,
                         ConversionContext ctx)
Overrides:
getLiteral in class AbstractType

getLiteralPrefix

public String getLiteralPrefix()
Overrides:
getLiteralPrefix in class AbstractText

getLiteralSuffix

public String getLiteralSuffix()
Overrides:
getLiteralSuffix in class AbstractText

getMaxScale

public short getMaxScale()
Overrides:
getMaxScale in class AbstractType

getMinScale

public short getMinScale()
Overrides:
getMinScale in class AbstractType

getString

public String getString(Object row,
                        ConversionContext ctx)
Specified by:
getString in class AbstractText

setBytes

public void setBytes(Object row,
                     byte[] val,
                     ConversionContext ctx)
Overrides:
setBytes in class AbstractType

setNull

public void setNull(Object row,
                    ConversionContext ctx)
             throws SQLException
Overrides:
setNull in class AbstractType
SQLException

setString

public void setString(Object row,
                      String val,
                      ConversionContext ctx)
Specified by:
setString in class AbstractText

jxDBCon 0.9z

Copyright © 2001,2002 Keve Müller; see LICENSE file for details.