Imutable class which holds a mapping between a Java Class and a JDBC type
and a SQL type.
author: Dain Sundstrom author: Sebastien Alborini version: $Revision: 57209 $
Constructor Summary
public
JDBCMappingMetaData(Element element) Constructs a mapping with the data contained in the mapping xml element
from a jbosscmp-jdbc xml file.
public JDBCMappingMetaData(Element element) throws DeploymentException(Code)
Constructs a mapping with the data contained in the mapping xml element
from a jbosscmp-jdbc xml file.
Parameters: element - the xml Element which contains the metadata aboutthis mapping throws: DeploymentException - if the xml element is not semantically correct
Gets the jdbc type of this mapping. The jdbc type is used to retrieve data
from a result set and to set parameters in a prepared statement.
the jdbc type of this mapping
getJdbcTypeFromName
public static int getJdbcTypeFromName(String name) throws DeploymentException(Code)
Gets the JDBC type constant int for the name. The mapping from name to jdbc
type is contained in java.sql.Types.
Parameters: name - the name for the jdbc type the int type constant from java.sql.Types See Also:java.sql.Types
Gets the sql type of this mapping. The sql type is the sql column data
type, and is used in CREATE TABLE statements.
the sql type String of this mapping