dke.smwp.serialize.dbtypes
Class TColumnTable

java.lang.Object
  |
  +--dke.smwp.serialize.dbtypes.TColumnTable
All Implemented Interfaces:
oracle.jdbc.internal.ObjectData, oracle.jdbc.internal.ObjectDataFactory, oracle.sql.ORAData, oracle.sql.ORADataFactory

public class TColumnTable
extends java.lang.Object
implements oracle.sql.ORAData, oracle.sql.ORADataFactory

Version:
1.0
Author:
Martin Bernauer

Field Summary
(package private)  oracle.jpub.runtime.MutableArray _array
           
static java.lang.String _SQL_NAME
           
static int _SQL_TYPECODE
           
private static TColumnTable _TColumnTableFactory
           
 
Constructor Summary
TColumnTable()
          default constructor
TColumnTable(Tcolumn[] a)
           
 
Method Summary
 oracle.sql.ORAData create(oracle.sql.Datum d, int sqlType)
          ORADataFactory interface
 Tcolumn[] getArray()
          array accessor methods
 Tcolumn[] getArray(long index, int count)
           
 int getBaseType()
           
 java.lang.String getBaseTypeName()
           
 oracle.sql.ArrayDescriptor getDescriptor()
           
 Tcolumn getElement(long index)
           
static oracle.sql.ORADataFactory getORADataFactory()
           
 int length()
           
 void setArray(Tcolumn[] a)
           
 void setArray(Tcolumn[] a, long index)
           
 void setElement(Tcolumn a, long index)
           
 oracle.sql.Datum toDatum(java.sql.Connection c)
          ORAData interface
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

_SQL_NAME

public static final java.lang.String _SQL_NAME

_SQL_TYPECODE

public static final int _SQL_TYPECODE

_array

oracle.jpub.runtime.MutableArray _array

_TColumnTableFactory

private static final TColumnTable _TColumnTableFactory
Constructor Detail

TColumnTable

public TColumnTable()
default constructor

TColumnTable

public TColumnTable(Tcolumn[] a)
Parameters:
a - array of colums (= tuple)
Method Detail

getORADataFactory

public static oracle.sql.ORADataFactory getORADataFactory()
Returns:
factory

toDatum

public oracle.sql.Datum toDatum(java.sql.Connection c)
                         throws java.sql.SQLException
ORAData interface
Specified by:
toDatum in interface oracle.sql.ORAData
Parameters:
c -  
Returns:
datum
Throws:
java.sql.SQLException -  

create

public oracle.sql.ORAData create(oracle.sql.Datum d,
                                 int sqlType)
                          throws java.sql.SQLException
ORADataFactory interface
Specified by:
create in interface oracle.sql.ORADataFactory
Parameters:
d -  
sqlType -  
Returns:
data
Throws:
java.sql.SQLException -  

length

public int length()
           throws java.sql.SQLException
Returns:
length
Throws:
java.sql.SQLException -  

getBaseType

public int getBaseType()
                throws java.sql.SQLException
Returns:
base type
Throws:
java.sql.SQLException -  

getBaseTypeName

public java.lang.String getBaseTypeName()
                                 throws java.sql.SQLException
Returns:
base type name
Throws:
java.sql.SQLException -  

getDescriptor

public oracle.sql.ArrayDescriptor getDescriptor()
                                         throws java.sql.SQLException
Returns:
descriptor
Throws:
java.sql.SQLException -  

getArray

public Tcolumn[] getArray()
                   throws java.sql.SQLException
array accessor methods
Returns:
tuple
Throws:
java.sql.SQLException -  

setArray

public void setArray(Tcolumn[] a)
              throws java.sql.SQLException
Parameters:
a - tuple
Throws:
java.sql.SQLException -  

getArray

public Tcolumn[] getArray(long index,
                          int count)
                   throws java.sql.SQLException
Parameters:
index -  
count -  
Returns:
tuple
Throws:
java.sql.SQLException -  

setArray

public void setArray(Tcolumn[] a,
                     long index)
              throws java.sql.SQLException
Parameters:
a - tuple
index -  
Throws:
java.sql.SQLException -  

getElement

public Tcolumn getElement(long index)
                   throws java.sql.SQLException
Parameters:
index -  
Returns:
column
Throws:
java.sql.SQLException -  

setElement

public void setElement(Tcolumn a,
                       long index)
                throws java.sql.SQLException
Parameters:
a - column
index -  
Throws:
java.sql.SQLException -  

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
string representation