com.hardcode.gdbms.engine.data.db
Class SpatialDBTableSourceDefinition

java.lang.Object
  extended by com.hardcode.gdbms.engine.data.AbstractDataSourceDefinition
      extended by com.hardcode.gdbms.engine.data.db.DBTableSourceDefinition
          extended by com.hardcode.gdbms.engine.data.db.SpatialDBTableSourceDefinition
All Implemented Interfaces:
DataSourceDefinition

public class SpatialDBTableSourceDefinition
extends DBTableSourceDefinition


Field Summary
 
Fields inherited from class com.hardcode.gdbms.engine.data.db.DBTableSourceDefinition
def, driverName
 
Constructor Summary
SpatialDBTableSourceDefinition(java.lang.String name, DBSpatialSource def, java.lang.String driverName2)
          Creates a new SpatialDBTableSourceDefinition
 
Method Summary
 DataSource createDataSource(java.lang.String tableName, java.lang.String tableAlias)
          Creates a DataSource with the information of this object
 
Methods inherited from class com.hardcode.gdbms.engine.data.db.DBTableSourceDefinition
getSourceDefinition
 
Methods inherited from class com.hardcode.gdbms.engine.data.AbstractDataSourceDefinition
freeResources, getDataSourceFactory, getName, setDataSourceFactory, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpatialDBTableSourceDefinition

public SpatialDBTableSourceDefinition(java.lang.String name,
                                      DBSpatialSource def,
                                      java.lang.String driverName2)
Creates a new SpatialDBTableSourceDefinition

Parameters:
name - Name of the data source in this system
host2 - host where the dbms is
port2 - port where the dbms is listening at
user2 - user to connect
password2 - password to connect
dbName2 - name of the database
tableName2 - Name of the table or view where the data is stored
driverName2 - Name of the driver used to access the data
geometryFieldName - Field where the spatial data is stored
Method Detail

createDataSource

public DataSource createDataSource(java.lang.String tableName,
                                   java.lang.String tableAlias)
                            throws DataSourceCreationException
Description copied from interface: DataSourceDefinition
Creates a DataSource with the information of this object

Specified by:
createDataSource in interface DataSourceDefinition
Overrides:
createDataSource in class DBTableSourceDefinition
Parameters:
tableName - name of the DataSource
tableAlias - alias of the DataSource
Returns:
DataSource
Throws:
DataSourceCreationException


Copyright © 2005-2006 . All Rights Reserved.