public class GenericEnumType extends AbstractDataType
BIGINT, BIGINT_AUX_LONG, BINARY, BIT, BLOB, BOOLEAN, CHAR, CLOB, DATE, DECIMAL, DOUBLE, FLOAT, INTEGER, LONGNVARCHAR, LONGVARBINARY, LONGVARCHAR, NCHAR, NUMERIC, NVARCHAR, REAL, RELATIVE_DATE_TIME_PARSER, SMALLINT, TIME, TIMESTAMP, TINYINT, UNKNOWN, VARBINARY, VARCHAR
Constructor and Description |
---|
GenericEnumType(String sqlTypeName) |
Modifier and Type | Method and Description |
---|---|
String |
getSqlTypeName()
Returns the SQL type name for user types (null for basic SQL types)
|
Object |
getSqlValue(int column,
ResultSet resultSet)
Returns the specified column value from the specified resultset object.
|
void |
setSqlValue(Object enumObject,
int column,
PreparedStatement statement)
Set the specified value to the specified prepared statement object.
|
Object |
typeCast(Object arg0)
Returns the specified value typecasted to this
DataType |
areObjectsEqual, compare, compareNonNulls, getSqlType, getTypeClass, isDateTime, isNumber, loadClass, loadClass, toString
asString, forObject, forSqlType, forSqlTypeName, isExtendedSyntax
public GenericEnumType(String sqlTypeName)
sqlTypeName
- The name of the enum type needed to invoke the "setType()" method on
the PGObject class.public Object getSqlValue(int column, ResultSet resultSet) throws SQLException, TypeCastException
DataType
getSqlValue
in class AbstractDataType
SQLException
TypeCastException
public void setSqlValue(Object enumObject, int column, PreparedStatement statement) throws SQLException, TypeCastException
DataType
setSqlValue
in class AbstractDataType
SQLException
TypeCastException
public Object typeCast(Object arg0) throws TypeCastException
DataType
DataType
typeCast
in class DataType
TypeCastException
public String getSqlTypeName()
DataType
getSqlTypeName
in class DataType
Copyright © 2002–2025. All rights reserved.