|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernatespatial.pojo.AutoMapper
public class AutoMapper
| Field Summary | |
|---|---|
protected static org.slf4j.Logger |
logger
|
protected static String |
PACKAGE_NAME
|
| Constructor Summary | |
|---|---|
AutoMapper()
|
|
| Method Summary | |
|---|---|
static String |
getAttributeGetterName(String catalog,
String schema,
String tableName,
String attribute)
Returns the name of the getter-method for the attribute |
static List<String> |
getAttributes(String catalog,
String schema,
String tableName)
Returns the attribute names of the class to with the specified table is mapped |
static String |
getAttributeSetterName(String catalog,
String schema,
String tableName,
String attribute)
Returns the name of the setter-method for the attribute |
static Class<?> |
getClass(String catalog,
String schema,
String tableName)
Returns the Class object to which the specified table is mapped |
static String |
getGeometryAttribute(String catalog,
String schema,
String tableName)
Returns the (default) Geometry-valued attribute |
static String |
getIdAttribute(String catalog,
String schema,
String tableName)
Returns the Identifier attribute |
static List<String[]> |
getMappedTables()
Returns the tables mapped by this automapper. |
static org.dom4j.Document |
map(Connection conn,
String catalog,
String schema,
Collection<String> tableNames)
Returns the Hibernate mapping document for the specified tables |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.slf4j.Logger logger
protected static final String PACKAGE_NAME
| Constructor Detail |
|---|
public AutoMapper()
| Method Detail |
|---|
public static org.dom4j.Document map(Connection conn,
String catalog,
String schema,
Collection<String> tableNames)
throws SQLException
To create the mapping, a Connection object must be
provided to provide access to the specified tables.
This connection will not be closed on return.
conn - JDBC Connection used during mappingcatalog - database catalogschema - database schematableNames - list of table names
SQLException
public static Class<?> getClass(String catalog,
String schema,
String tableName)
Class object to which the specified table is mapped
catalog - catalog of the tableschema - schema of the tabletableName - name of the table
public static List<String[]> getMappedTables()
public static List<String> getAttributes(String catalog,
String schema,
String tableName)
catalog - catalog of the tableschema - schema of the tabletableName - name of the table
public static String getIdAttribute(String catalog,
String schema,
String tableName)
throws MissingIdentifierException
catalog - catalog of the tableschema - schema of the tabletableName - name of the table
MissingIdentifierException - when no Identifier property is available
public static String getGeometryAttribute(String catalog,
String schema,
String tableName)
throws GeometryNotFoundException
Geometry-valued attribute
catalog - catalog of the tableschema - schema of the tabletableName - name of the table
Geometry-valued attribute
GeometryNotFoundException - when no Geometry-valued property is available
public static String getAttributeSetterName(String catalog,
String schema,
String tableName,
String attribute)
catalog - catalog of the tableschema - schema of the tabletableName - name of the tableattribute - name of the attribute of the class to which this class is mapped
public static String getAttributeGetterName(String catalog,
String schema,
String tableName,
String attribute)
catalog - catalog of the tableschema - schema of the tabletableName - name of the tableattribute - name of the attribute of the class to which this class is mapped
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||