com.openexchange.admin.tools.database
Interface DataFetcher

All Known Implementing Classes:
DataFetcherMysql

public interface DataFetcher

Author:
cutmasta Should retrieve all data which is related to an context.

Method Summary
 java.util.Vector<TableObject> fetchTableObjects()
          Returns an unsorted list of tables with their data.
Perhaps tables must be sorted cause of contraints etc.
 java.lang.String getCatalogName()
           
 java.lang.Object getColumnMatchObject()
           
 int getColumnMatchType()
           
 TableObject getDataForTable(TableObject to)
           
 java.sql.Connection getDbConnection()
           
 java.lang.String getMatchingColumn()
           
 void setColumnMatchObject(java.lang.Object match_obj, int match_type)
          Sets the criteria match object and its correspoding type.
For example to match an integer:
setCriteriaMatchObject(1337,java.sql.Types.INTEGER)
 void setDbConnection(java.sql.Connection dbConnection, java.lang.String catalog_name)
           
 void setMatchingColumn(java.lang.String column_name)
          Set the column which should be matched
 java.util.Vector<TableObject> sortTableObjects()
          Returns an sorted list of tables with their data.
Needed for contraints and primarys etc.
 

Method Detail

getCatalogName

java.lang.String getCatalogName()

getDbConnection

java.sql.Connection getDbConnection()

setDbConnection

void setDbConnection(java.sql.Connection dbConnection,
                     java.lang.String catalog_name)
                     throws java.sql.SQLException
Throws:
java.sql.SQLException

getMatchingColumn

java.lang.String getMatchingColumn()

setMatchingColumn

void setMatchingColumn(java.lang.String column_name)
Set the column which should be matched


getColumnMatchType

int getColumnMatchType()

getColumnMatchObject

java.lang.Object getColumnMatchObject()

getDataForTable

TableObject getDataForTable(TableObject to)
                            throws java.sql.SQLException
Throws:
java.sql.SQLException

setColumnMatchObject

void setColumnMatchObject(java.lang.Object match_obj,
                          int match_type)
Sets the criteria match object and its correspoding type.
For example to match an integer:
setCriteriaMatchObject(1337,java.sql.Types.INTEGER)


fetchTableObjects

java.util.Vector<TableObject> fetchTableObjects()
                                                throws java.sql.SQLException
Returns an unsorted list of tables with their data.
Perhaps tables must be sorted cause of contraints etc.

Throws:
java.sql.SQLException

sortTableObjects

java.util.Vector<TableObject> sortTableObjects()
                                               throws java.sql.SQLException
Returns an sorted list of tables with their data.
Needed for contraints and primarys etc.

Throws:
java.sql.SQLException