jxDBCon 0.9z

org.sourceforge.jxdbcon.postgresql
Class PGTextTypes.PGbpchar

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

public static class PGTextTypes.PGbpchar
extends AbstractCHAR

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


Field Summary
static PGTextTypes.PGbpchar DEFINSTANCE
           
 
Fields inherited from class org.sourceforge.jxutil.sql.type.AbstractCHAR
length
 
Fields inherited from class org.sourceforge.jxutil.sql.type.AbstractType
BD_ONE, BD_ZERO, name
 
Constructor Summary
PGTextTypes.PGbpchar()
          registering as character because bpchar cannot be used in create context.
PGTextTypes.PGbpchar(int len)
           
 
Method Summary
 AbstractType deriveType(int d)
           
 byte[] getBytes(Object row, ConversionContext ctx)
           
 boolean getCaseSensitive()
           
 String getLiteral(Object row, ConversionContext ctx)
           
 String getLiteralPrefix()
           
 String getLiteralSuffix()
           
 String getString(Object row, 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.AbstractCHAR
getBigDecimal, getBoolean, getByte, getDate, getDouble, getFloat, getInt, getJavaClass, getJavaType, getJDBCType, 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, getMaxScale, getMinScale, getName, getNullable, getNumRadix, getObject, getRef, getScale, getSearchable, getTime, getTimestamp, getUnsigned, getURL, noConversion, noConversion, noConversion, setArray, setAsciiStream, setBinaryStream, setBlob, setBytes, 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.PGbpchar DEFINSTANCE
Constructor Detail

PGTextTypes.PGbpchar

public PGTextTypes.PGbpchar()
registering as character because bpchar cannot be used in create context.


PGTextTypes.PGbpchar

public PGTextTypes.PGbpchar(int len)
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

getString

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

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.