com.hardcode.gdbms.engine.data.db
Class DBQuerySourceDefinition
java.lang.Object
com.hardcode.gdbms.engine.data.AbstractDataSourceDefinition
com.hardcode.gdbms.engine.data.db.DBTableSourceDefinition
com.hardcode.gdbms.engine.data.db.DBQuerySourceDefinition
- All Implemented Interfaces:
- DataSourceDefinition
public class DBQuerySourceDefinition
- extends DBTableSourceDefinition
- Author:
- Fernando González Cortés
Field Summary |
java.lang.String |
sql
|
Constructor Summary |
DBQuerySourceDefinition(java.lang.String name,
DBSource def,
java.lang.String sql,
java.lang.String driverName)
Creates a new DBQuerySourceDefinition |
Method Summary |
DataSource |
createDataSource(java.lang.String tableName,
java.lang.String tableAlias)
Creates a DataSource with the information of this object |
void |
freeResources()
if any, frees the resources taken when the DataSource was created |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sql
public java.lang.String sql
DBQuerySourceDefinition
public DBQuerySourceDefinition(java.lang.String name,
DBSource def,
java.lang.String sql,
java.lang.String driverName)
- Creates a new DBQuerySourceDefinition
- Parameters:
name
- Name of the data source in this systemsql
- SQL instruction that defines the data sourcedriverName
- driver to access the data
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 DataSourcetableAlias
- alias of the DataSource
- Returns:
- DataSource
- Throws:
DataSourceCreationException
freeResources
public void freeResources()
throws DataSourceFinalizationException
- Description copied from interface:
DataSourceDefinition
- if any, frees the resources taken when the DataSource was created
- Specified by:
freeResources
in interface DataSourceDefinition
- Overrides:
freeResources
in class AbstractDataSourceDefinition
- Throws:
DataSourceFinalizationException
- If the operation fails
Copyright © 2005-2006 . All Rights Reserved.