Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.client.net
Class Typdef  view Typdef download Typdef.java

java.lang.Object
  extended byorg.apache.derby.client.net.Typdef
All Implemented Interfaces:
java.lang.Cloneable

public class Typdef
extends java.lang.Object
implements java.lang.Cloneable


Field Summary
(package private) static short CCSIDDBC
           
private  int ccsidDbc_
           
private  java.lang.String ccsidDbcEncoding_
           
private  boolean ccsidDbcSet_
           
(package private) static short CCSIDMBC
           
private  int ccsidMbc_
           
private  java.lang.String ccsidMbcEncoding_
           
private  boolean ccsidMbcSet_
           
(package private) static short CCSIDSBC
           
private  int ccsidSbc_
           
private  java.lang.String ccsidSbcEncoding_
           
private  boolean ccsidSbcSet_
           
(package private) static short DECIMALLENGTH
           
protected  int environment_
           
protected static FdocaSimpleDataArray[] environmentTables_
           
private static int[] fdocaTypeToRepresentationMap_
           
(package private) static short FIXEDLENGTH
           
(package private) static short LOBLENGTH
           
private  boolean mddOverride_
           
private  NetAgent netAgent_
           
(package private) static short NOCCSID
           
(package private) static short ONEBYTELENGTH
           
private static int OVERRIDE_TABLE_SIZE
           
private  FdocaSimpleDataArray[] overrideTable_
           
private static int[] protocolToJdbcTypes_
           
(package private) static short TWOBYTELENGTH
           
private  java.lang.String typdefnam_
           
(package private) static java.lang.String UTF8ENCODING
           
 
Constructor Summary
(package private) Typdef(NetAgent netAgent)
           
(package private) Typdef(NetAgent netAgent, int ccsidSbc, java.lang.String typdefnam)
           
  Typdef(NetAgent netAgent, int ccsidSbc, java.lang.String typdefnam, int ccsidDbc, int ccsidMbc)
           
 
Method Summary
(package private)  void clearCcsidDbc()
           
(package private)  void clearCcsidMbc()
           
(package private)  void clearCcsidSbc()
           
(package private)  void clearMddOverrides()
           
 java.lang.Object clone()
          This method may be called to create a new copy of the Object.
(package private)  int getByteOrder()
           
(package private)  int getCcsidDbc()
           
(package private)  java.lang.String getCcsidDbcEncoding()
           
(package private)  int getCcsidMbc()
           
(package private)  java.lang.String getCcsidMbcEncoding()
           
(package private)  int getCcsidSbc()
           
(package private)  java.lang.String getCcsidSbcEncoding()
           
(package private)  java.lang.String getTypdefnam()
           
private  void initialize(NetAgent netAgent, int ccsidSbc, boolean ccsidSbcSet, int ccsidMbc, boolean ccsidMbcSet, int ccsidDbc, boolean ccsidDbcSet, java.lang.String typdefnam)
           
(package private)  boolean isCcsidDbcSet()
           
(package private)  boolean isCcsidMbcSet()
           
(package private)  boolean isCcsidSbcSet()
           
private  int mapFdocaTypeToTypeToUseForComputingDataLength(int fdocaFieldType)
           
(package private)  void setCcsidDbc(int ccsid)
           
(package private)  void setCcsidMbc(int ccsid)
           
(package private)  void setCcsidSbc(int ccsid)
           
(package private)  void setMddOverride(int protocolType, int fdocaTripletLid, int fdocaFieldType, int ccsid, int characterSize, int mode, int length)
           
(package private)  void setTypdefnam(java.lang.String typdefnam)
           
(package private)  void updateColumn(NetCursor netCursor, int columnIndex, int protocolLid, int protocolLength)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CCSIDDBC

static final short CCSIDDBC
See Also:
Constant Field Values

CCSIDMBC

static final short CCSIDMBC
See Also:
Constant Field Values

CCSIDSBC

static final short CCSIDSBC
See Also:
Constant Field Values

NOCCSID

static final short NOCCSID
See Also:
Constant Field Values

FIXEDLENGTH

static final short FIXEDLENGTH
See Also:
Constant Field Values

TWOBYTELENGTH

static final short TWOBYTELENGTH
See Also:
Constant Field Values

ONEBYTELENGTH

static final short ONEBYTELENGTH
See Also:
Constant Field Values

DECIMALLENGTH

static final short DECIMALLENGTH
See Also:
Constant Field Values

LOBLENGTH

static final short LOBLENGTH
See Also:
Constant Field Values

UTF8ENCODING

static final java.lang.String UTF8ENCODING
See Also:
Constant Field Values

OVERRIDE_TABLE_SIZE

private static final int OVERRIDE_TABLE_SIZE
See Also:
Constant Field Values

fdocaTypeToRepresentationMap_

private static final int[] fdocaTypeToRepresentationMap_

environmentTables_

protected static final FdocaSimpleDataArray[] environmentTables_

protocolToJdbcTypes_

private static final int[] protocolToJdbcTypes_

netAgent_

private NetAgent netAgent_

typdefnam_

private java.lang.String typdefnam_

ccsidSbc_

private int ccsidSbc_

ccsidSbcSet_

private boolean ccsidSbcSet_

ccsidSbcEncoding_

private java.lang.String ccsidSbcEncoding_

ccsidDbc_

private int ccsidDbc_

ccsidDbcSet_

private boolean ccsidDbcSet_

ccsidDbcEncoding_

private java.lang.String ccsidDbcEncoding_

ccsidMbc_

private int ccsidMbc_

ccsidMbcSet_

private boolean ccsidMbcSet_

ccsidMbcEncoding_

private java.lang.String ccsidMbcEncoding_

environment_

protected int environment_

mddOverride_

private boolean mddOverride_

overrideTable_

private FdocaSimpleDataArray[] overrideTable_
Constructor Detail

Typdef

Typdef(NetAgent netAgent)
 throws org.apache.derby.client.am.DisconnectException

Typdef

Typdef(NetAgent netAgent,
       int ccsidSbc,
       java.lang.String typdefnam)
 throws org.apache.derby.client.am.DisconnectException

Typdef

public Typdef(NetAgent netAgent,
              int ccsidSbc,
              java.lang.String typdefnam,
              int ccsidDbc,
              int ccsidMbc)
       throws org.apache.derby.client.am.DisconnectException
Method Detail

initialize

private void initialize(NetAgent netAgent,
                        int ccsidSbc,
                        boolean ccsidSbcSet,
                        int ccsidMbc,
                        boolean ccsidMbcSet,
                        int ccsidDbc,
                        boolean ccsidDbcSet,
                        java.lang.String typdefnam)
                 throws org.apache.derby.client.am.DisconnectException

getTypdefnam

java.lang.String getTypdefnam()

setTypdefnam

void setTypdefnam(java.lang.String typdefnam)
            throws org.apache.derby.client.am.DisconnectException

getCcsidSbc

int getCcsidSbc()

setCcsidSbc

void setCcsidSbc(int ccsid)

clearCcsidSbc

void clearCcsidSbc()

isCcsidSbcSet

boolean isCcsidSbcSet()

getCcsidSbcEncoding

java.lang.String getCcsidSbcEncoding()
                               throws org.apache.derby.client.am.DisconnectException

getCcsidDbc

int getCcsidDbc()

setCcsidDbc

void setCcsidDbc(int ccsid)

clearCcsidDbc

void clearCcsidDbc()

isCcsidDbcSet

boolean isCcsidDbcSet()

getCcsidDbcEncoding

java.lang.String getCcsidDbcEncoding()
                               throws org.apache.derby.client.am.DisconnectException

getCcsidMbc

int getCcsidMbc()

setCcsidMbc

void setCcsidMbc(int ccsid)

clearCcsidMbc

void clearCcsidMbc()

isCcsidMbcSet

boolean isCcsidMbcSet()

getCcsidMbcEncoding

java.lang.String getCcsidMbcEncoding()
                               throws org.apache.derby.client.am.DisconnectException

getByteOrder

int getByteOrder()

clone

public java.lang.Object clone()
Description copied from class: java.lang.Object
This method may be called to create a new copy of the Object. The typical behavior is as follows:
  • o == o.clone() is false
  • o.getClass() == o.clone().getClass() is true
  • o.equals(o) is true

However, these are not strict requirements, and may be violated if necessary. Of the three requirements, the last is the most commonly violated, particularly if the subclass does not override Object.equals(Object)>Object.equals(Object) 55 .

If the Object you call clone() on does not implement java.lang.Cloneable (which is a placeholder interface), then a CloneNotSupportedException is thrown. Notice that Object does not implement Cloneable; this method exists as a convenience for subclasses that do.

Object's implementation of clone allocates space for the new Object using the correct class, without calling any constructors, and then fills in all of the new field values with the old field values. Thus, it is a shallow copy. However, subclasses are permitted to make a deep copy.

All array types implement Cloneable, and override this method as follows (it should never fail):

 public Object clone()
 {
   try
     {
       super.clone();
     }
   catch (CloneNotSupportedException e)
     {
       throw new InternalError(e.getMessage());
     }
 }
 


updateColumn

void updateColumn(NetCursor netCursor,
                  int columnIndex,
                  int protocolLid,
                  int protocolLength)
            throws org.apache.derby.client.am.DisconnectException

clearMddOverrides

void clearMddOverrides()

setMddOverride

void setMddOverride(int protocolType,
                    int fdocaTripletLid,
                    int fdocaFieldType,
                    int ccsid,
                    int characterSize,
                    int mode,
                    int length)

mapFdocaTypeToTypeToUseForComputingDataLength

private int mapFdocaTypeToTypeToUseForComputingDataLength(int fdocaFieldType)