org.jpox.store.rdbms.typeinfo
Class PostgreSQLTypeInfo
java.lang.Object
org.jpox.store.rdbms.typeinfo.TypeInfo
org.jpox.store.rdbms.typeinfo.PostgreSQLTypeInfo
public class PostgreSQLTypeInfo
- extends TypeInfo
Represents the metadata of a PostgreSQL data type.
- Version:
- $Revision: 1.4 $
|
Field Summary |
static int |
MAX_PRECISION
The maximum precision we allow to be reported. |
| Fields inherited from class org.jpox.store.rdbms.typeinfo.TypeInfo |
allowsPrecisionSpec, autoIncrement, caseSensitive, createParams, dataType, fixedPrecScale, literalPrefix, literalSuffix, localTypeName, maximumScale, minimumScale, nullable, numPrecRadix, precision, searchable, typeName, unsignedAttribute |
|
Constructor Summary |
PostgreSQLTypeInfo(java.sql.ResultSet rs)
Constructs a type information object from the current row of the given
result set. |
PostgreSQLTypeInfo(java.lang.String typeName,
short dataType,
int precision,
java.lang.String literalPrefix,
java.lang.String literalSuffix,
java.lang.String createParams,
int nullable,
boolean caseSensitive,
short searchable,
boolean unsignedAttribute,
boolean fixedPrecScale,
boolean autoIncrement,
java.lang.String localTypeName,
short minimumScale,
short maximumScale,
int numPrecRadix)
|
|
Method Summary |
boolean |
isCompatibleWith(ColumnInfo colInfo)
Utility to check the compatibility of this type with the supplied Column type. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
MAX_PRECISION
public static final int MAX_PRECISION
- The maximum precision we allow to be reported.
- See Also:
- Constant Field Values
PostgreSQLTypeInfo
public PostgreSQLTypeInfo(java.sql.ResultSet rs)
- Constructs a type information object from the current row of the given
result set. The
ResultSet object passed must have been obtained
from a call to DatabaseMetaData.getTypeInfo().
This method only retrieves the values from the current row; the caller
is required to advance to the next row with ResultSet.next().
- Parameters:
rs - The result set returned from DatabaseMetaData.getTypeInfo().
PostgreSQLTypeInfo
public PostgreSQLTypeInfo(java.lang.String typeName,
short dataType,
int precision,
java.lang.String literalPrefix,
java.lang.String literalSuffix,
java.lang.String createParams,
int nullable,
boolean caseSensitive,
short searchable,
boolean unsignedAttribute,
boolean fixedPrecScale,
boolean autoIncrement,
java.lang.String localTypeName,
short minimumScale,
short maximumScale,
int numPrecRadix)
isCompatibleWith
public boolean isCompatibleWith(ColumnInfo colInfo)
- Utility to check the compatibility of this type with the supplied Column type.
- Overrides:
isCompatibleWith in class TypeInfo
- Parameters:
colInfo - The Column type
- Returns:
- Whether they are compatible
Copyright © -2008 . All Rights Reserved.