com.hardcode.gdbms.engine.data
Interface DataSourceDefinition

All Known Implementing Classes:
AbstractDataSourceDefinition, DBQuerySourceDefinition, DBTableSourceDefinition, FileSourceDefinition, ObjectSourceDefinition, SpatialDBTableSourceDefinition, SpatialFileSourceDefinition, SpatialObjectSourceDefinition

public interface DataSourceDefinition


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
 java.lang.String getName()
          Gets the name of this DataSourceDefinition
 void setDataSourceFactory(DataSourceFactory dsf)
          Gives to the DataSourceDefinition a reference of the DataSourceFactory where the DataSourceDefinition is registered
 void setName(java.lang.String name)
          Sets the name of this DataSourceDefinition
 

Method Detail

createDataSource

DataSource createDataSource(java.lang.String tableName,
                            java.lang.String tableAlias)
                            throws DataSourceCreationException
Creates a DataSource with the information of this object

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

freeResources

void freeResources()
                   throws DataSourceFinalizationException
if any, frees the resources taken when the DataSource was created

Throws:
DataSourceFinalizationException - If the operation fails

setDataSourceFactory

void setDataSourceFactory(DataSourceFactory dsf)
Gives to the DataSourceDefinition a reference of the DataSourceFactory where the DataSourceDefinition is registered

Parameters:
dsf -

getName

java.lang.String getName()
Gets the name of this DataSourceDefinition

Returns:
String

setName

void setName(java.lang.String name)
Sets the name of this DataSourceDefinition

Parameters:
name - String


Copyright © 2005-2006 . All Rights Reserved.