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

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

public class DBTableSourceDefinition
extends AbstractDataSourceDefinition

Author:
Fernando González Cortés

Field Summary
protected  DBSource def
           
protected  java.lang.String driverName
           
 
Constructor Summary
DBTableSourceDefinition(java.lang.String name, DBSource def, java.lang.String driverName)
          Creates a new DBTableSourceDefinition
 
Method Summary
 DataSource createDataSource(java.lang.String tableName, java.lang.String tableAlias)
          Creates a DataSource with the information of this object
 DBSource 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
 

Field Detail

def

protected DBSource def

driverName

protected java.lang.String driverName
Constructor Detail

DBTableSourceDefinition

public DBTableSourceDefinition(java.lang.String name,
                               DBSource def,
                               java.lang.String driverName)
Creates a new DBTableSourceDefinition

Parameters:
name - Name of the data source in this system
host - host where the dbms is
port - port where the dbms is listening at
user - user to connect
password - password to connect
dbName - name of the database
tableName - Name of the table or view where the data is stored
driverName - Name of the driver used to access the data
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

Parameters:
tableName - name of the DataSource
tableAlias - alias of the DataSource
Returns:
DataSource
Throws:
DataSourceCreationException

getSourceDefinition

public DBSource getSourceDefinition()


Copyright © 2005-2006 . All Rights Reserved.