dke.smwp.serialize.dbtypes
Class Tcolumn
java.lang.Object
|
+--dke.smwp.serialize.dbtypes.Tcolumn
- All Implemented Interfaces:
- oracle.jdbc.internal.ObjectData, oracle.jdbc.internal.ObjectDataFactory, oracle.sql.ORAData, oracle.sql.ORADataFactory
- public class Tcolumn
- extends java.lang.Object
- implements oracle.sql.ORAData, oracle.sql.ORADataFactory
- Version:
- 1.0
- Author:
- Martin Bernauer
Constructor Summary |
|
Tcolumn()
default constructor |
protected |
Tcolumn(boolean init)
constructor |
Method Summary |
oracle.sql.ORAData |
create(oracle.sql.Datum d,
int sqlType)
ORADataFactory interface |
protected oracle.sql.ORAData |
create(Tcolumn o,
oracle.sql.Datum d,
int sqlType)
|
java.lang.String |
getName()
accessor methods |
static oracle.sql.ORADataFactory |
getORADataFactory()
|
java.math.BigDecimal |
getType()
|
java.lang.String |
getValue()
|
void |
setName(java.lang.String name)
|
void |
setType(java.math.BigDecimal type)
|
void |
setValue(java.lang.String value)
|
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 |
_SQL_NAME
public static final java.lang.String _SQL_NAME
_SQL_TYPECODE
public static final int _SQL_TYPECODE
_struct
protected oracle.jpub.runtime.MutableStruct _struct
_sqlType
private static int[] _sqlType
_factory
private static oracle.sql.ORADataFactory[] _factory
_TcolumnFactory
protected static final Tcolumn _TcolumnFactory
Tcolumn
protected Tcolumn(boolean init)
- constructor
- Parameters:
init
-
Tcolumn
public Tcolumn()
- default constructor
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
-
create
protected oracle.sql.ORAData create(Tcolumn o,
oracle.sql.Datum d,
int sqlType)
throws java.sql.SQLException
getName
public java.lang.String getName()
throws java.sql.SQLException
- accessor methods
- Returns:
- name
- Throws:
java.sql.SQLException
-
setName
public void setName(java.lang.String name)
throws java.sql.SQLException
- Parameters:
name
- - Throws:
java.sql.SQLException
-
getType
public java.math.BigDecimal getType()
throws java.sql.SQLException
- Returns:
- decimal number
- Throws:
java.sql.SQLException
-
setType
public void setType(java.math.BigDecimal type)
throws java.sql.SQLException
- Parameters:
type
- - Throws:
java.sql.SQLException
-
getValue
public java.lang.String getValue()
throws java.sql.SQLException
- Returns:
- value
- Throws:
java.sql.SQLException
-
setValue
public void setValue(java.lang.String value)
throws java.sql.SQLException
- Parameters:
value
- - Throws:
java.sql.SQLException
-
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- Returns:
- string representation