public class DefaultColumnValue extends java.lang.Object implements ColumnValue
RowLCR
BINARY_DOUBLE, BINARY_FLOAT, CHAR, DATE, INTERVALDS, INTERVALYM, NUMBER, RAW, TIMESTAMP, TIMESTAMPLTZ, TIMESTAMPTZ
Constructor and Description |
---|
DefaultColumnValue(java.lang.String columnName, oracle.sql.Datum columnData)
Constructs a DefaultColumnValue object with columnName and columnData.
This constructor can be used when columnData is not null. |
DefaultColumnValue(java.lang.String columnName, oracle.sql.Datum columnData, int columnDataType)
Constructs a DefaultColumnValue object with columnName, columnData, and columnDataType.
When columnData is NULL, a valid columnDataType is expected. |
Modifier and Type | Method and Description |
---|---|
int |
getCharsetId()
Gets the column character set identifier (ID).
|
oracle.sql.Datum |
getColumnData()
Gets the column data.
|
int |
getColumnDataType()
Gets the column data type as defined in ColumnValue interface.
|
java.lang.String |
getColumnName()
Gets the column name.
|
boolean |
getTDEFlag()
Gets the Transparent Data Encryption (TDE) flag.
|
boolean |
is32kData()
Indicates whether the column is an extended size column (maximum size of 32767 bytes).
|
void |
set32kData(boolean is32kData)
Sets the extended size column flag (maximum size of 32767 bytes).
|
void |
setCharsetId(int charsetId)
Sets the Oracle character set ID for the column.
|
void |
setColumnData(oracle.sql.Datum columnData, int columnDataType)
Sets the column data.
|
void |
setColumnName(java.lang.String columnName)
Sets the column name.
|
void |
setTDEFlag(boolean tdeFlag)
Sets the TDE flag.
|
java.lang.String |
toString() |
public DefaultColumnValue(java.lang.String columnName, oracle.sql.Datum columnData, int columnDataType) throws StreamsException
columnName
- The column name, cannot be NULLcolumnData
- The column data.columnDataType
- The column data type.StreamsException
- is thrown if the columnName is NULL, or the columnData is NULL and the columnDataType is invalidpublic DefaultColumnValue(java.lang.String columnName, oracle.sql.Datum columnData) throws StreamsException
columnName
- the column name, cannot be NULL.columnData
- the column data, cannot be NULL.StreamsException
- is thrown if the columnData is NULL and the columnDataType is invalid.public java.lang.String getColumnName()
getColumnName
in interface ColumnValue
public void setColumnName(java.lang.String columnName)
setColumnName
in interface ColumnValue
columnName
- The column name.public oracle.sql.Datum getColumnData()
getColumnData
in interface ColumnValue
public void setColumnData(oracle.sql.Datum columnData, int columnDataType) throws StreamsException
setColumnData
in interface ColumnValue
columnData
- the column data, instance of oracle.sql.Datum subclasses.columnDataType
- the column data type as defined in ColumnValue.StreamsException
- is thrown if the columnData is NULL and the columnDataType is invalid.public int getColumnDataType()
getColumnDataType
in interface ColumnValue
public boolean getTDEFlag()
getTDEFlag
in interface ColumnValue
public void setTDEFlag(boolean tdeFlag)
setTDEFlag
in interface ColumnValue
tdeFlag
- A boolean value indicates whether TDE Flag should be set.public boolean is32kData()
is32kData
in interface ColumnValue
public void set32kData(boolean is32kData)
set32kData
in interface ColumnValue
is32kData
- The extended size column flag.public void setCharsetId(int charsetId)
setCharsetId
in interface ColumnValue
charsetId
- The character set ID.CharacterSet
public int getCharsetId()
getCharsetId
in interface ColumnValue
CharacterSet
public java.lang.String toString()
toString
in class java.lang.Object