. Except for several geometry types,
UNKNOWN
, FEATURE
, FEATURES
and
FEATURECOLLECTION
that are not known by
java.sql.Types
.
NOTE: Generally, it would be feasible to extend java.sql.Types
,
but unfortunately, this is not possible, as it's default constructor is not visible.
- Version:
- $Revision: 9337 $, $Date: 2007-12-27 13:31:11 +0100 (Do, 27 Dez 2007) $
- Author:
- Andreas Poth , last edited by: $Author: apoth $
- See Also:
Types
Constructor Summary |
Types()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ARRAY
public static final int ARRAY
- See Also:
- Constant Field Values
BIGINT
public static final int BIGINT
- See Also:
- Constant Field Values
BINARY
public static final int BINARY
- See Also:
- Constant Field Values
BIT
public static final int BIT
- See Also:
- Constant Field Values
BLOB
public static final int BLOB
- See Also:
- Constant Field Values
BOOLEAN
public static final int BOOLEAN
- See Also:
- Constant Field Values
CHAR
public static final int CHAR
- See Also:
- Constant Field Values
CLOB
public static final int CLOB
- See Also:
- Constant Field Values
DATALINK
public static final int DATALINK
- See Also:
- Constant Field Values
DATE
public static final int DATE
- See Also:
- Constant Field Values
DECIMAL
public static final int DECIMAL
- See Also:
- Constant Field Values
DISTINCT
public static final int DISTINCT
- See Also:
- Constant Field Values
DOUBLE
public static final int DOUBLE
- See Also:
- Constant Field Values
FLOAT
public static final int FLOAT
- See Also:
- Constant Field Values
INTEGER
public static final int INTEGER
- See Also:
- Constant Field Values
JAVA_OBJECT
public static final int JAVA_OBJECT
- See Also:
- Constant Field Values
LONGVARBINARY
public static final int LONGVARBINARY
- See Also:
- Constant Field Values
LONGVARCHAR
public static final int LONGVARCHAR
- See Also:
- Constant Field Values
NULL
public static final int NULL
- See Also:
- Constant Field Values
NUMERIC
public static final int NUMERIC
- See Also:
- Constant Field Values
OTHER
public static final int OTHER
- See Also:
- Constant Field Values
REAL
public static final int REAL
- See Also:
- Constant Field Values
REF
public static final int REF
- See Also:
- Constant Field Values
SMALLINT
public static final int SMALLINT
- See Also:
- Constant Field Values
STRUCT
public static final int STRUCT
- See Also:
- Constant Field Values
TIME
public static final int TIME
- See Also:
- Constant Field Values
TIMESTAMP
public static final int TIMESTAMP
- See Also:
- Constant Field Values
TINYINT
public static final int TINYINT
- See Also:
- Constant Field Values
VARBINARY
public static final int VARBINARY
- See Also:
- Constant Field Values
VARCHAR
public static final int VARCHAR
- See Also:
- Constant Field Values
GEOMETRY
public static final int GEOMETRY
- See Also:
- Constant Field Values
MULTIGEOMETRY
public static final int MULTIGEOMETRY
- See Also:
- Constant Field Values
FEATURE
public static final int FEATURE
- See Also:
- Constant Field Values
FEATURECOLLECTION
public static final int FEATURECOLLECTION
- See Also:
- Constant Field Values
POINT
public static final int POINT
- See Also:
- Constant Field Values
CURVE
public static final int CURVE
- See Also:
- Constant Field Values
SURFACE
public static final int SURFACE
- See Also:
- Constant Field Values
MULTIPOINT
public static final int MULTIPOINT
- See Also:
- Constant Field Values
MULTICURVE
public static final int MULTICURVE
- See Also:
- Constant Field Values
MULTISURFACE
public static final int MULTISURFACE
- See Also:
- Constant Field Values
ENVELOPE
public static final int ENVELOPE
- See Also:
- Constant Field Values
ANYTYPE
public static final int ANYTYPE
- See Also:
- Constant Field Values
GEOMETRY_PROPERTY_NAME
public static final QualifiedName GEOMETRY_PROPERTY_NAME
MULTI_GEOMETRY_PROPERTY_NAME
public static final QualifiedName MULTI_GEOMETRY_PROPERTY_NAME
FEATURE_PROPERTY_NAME
public static final QualifiedName FEATURE_PROPERTY_NAME
FEATURE_ARRAY_PROPERTY_NAME
public static final QualifiedName FEATURE_ARRAY_PROPERTY_NAME
Types
public Types()
getTypeCodeForSQLType
public static int getTypeCodeForSQLType(String typeName)
throws UnknownTypeException
- Returns the generic sql type code for the given type name.
- Parameters:
typeName
-
- Returns:
- the generic sql type code for the given type name.
- Throws:
UnknownTypeException
- if the type name is not an sql type name- See Also:
Types
getTypeNameForSQLTypeCode
public static String getTypeNameForSQLTypeCode(int typeCode)
throws UnknownTypeException
- Returns the generic sql type name for the given type code.
- Parameters:
typeCode
-
- Returns:
- the generic sql type name for the given type code.
- Throws:
UnknownTypeException
- if the type code is not an sql type code- See Also:
Types
getJavaTypeForGMLType
public static int getJavaTypeForGMLType(String gmlTypeName)
throws UnknownTypeException
- mapping between GML-typenames and java-classnames for GML-geometry types
- Parameters:
gmlTypeName
- the name of the GML type name
- Returns:
- the internal type
- Throws:
UnknownTypeException
- if the given name cannot be mapped to a known type.
getJavaTypeForXSDType
public static int getJavaTypeForXSDType(String schemaTypeName)
throws UnknownTypeException
- mapping between xml-typenames and java-classnames for XMLSCHEMA-simple types
- Parameters:
schemaTypeName
- of the XML schema type
- Returns:
- the internal type
- Throws:
UnknownTypeException
- if the given name cannot be mapped to a known type.- To do:
- TODO map them all over registry
getXSDTypeForSQLType
public static String getXSDTypeForSQLType(int type,
int precision)
- Parameters:
type
- SQL datatype codeprecision
- precision (just used for type NUMERIC)
- Returns:
- typename
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net