butler.sql.driver
Interface ButlerDriver

All Known Implementing Classes:
ClientDriver, JDBCDriver

public interface ButlerDriver

Driver that performs database operations.

Author:
Fredrik Bertilsson

Method Summary
 Record createRecord(Table tab)
           
 void deleteRecord(Record rec, boolean cascade)
           
 void dropTable(Table tab)
           
 Record findByPK(Table tab, butler.util.Tuple key)
           
 void loadCatalogs(Database db)
           
 void loadFKs(Table tab)
           
 void loadSchemas(Catalog db)
           
 void loadTable(Table tab)
           
 java.util.Map loadTables(Schema schema, java.lang.String pattern)
           
 RecordList runQueryInstance(QueryInstance qi)
           
 void saveRecord(Record rec)
           
 void saveRecordList(RecordList reclist)
           
 void upgradeTable(Table tab)
           
 

Method Detail

findByPK

Record findByPK(Table tab,
                butler.util.Tuple key)
                throws java.lang.Exception
Throws:
java.lang.Exception

runQueryInstance

RecordList runQueryInstance(QueryInstance qi)
                            throws java.lang.Exception
Throws:
java.lang.Exception

createRecord

Record createRecord(Table tab)
                    throws java.lang.Exception
Throws:
java.lang.Exception

saveRecord

void saveRecord(Record rec)
                throws java.lang.Exception
Throws:
java.lang.Exception

saveRecordList

void saveRecordList(RecordList reclist)
                    throws java.lang.Exception
Throws:
java.lang.Exception

deleteRecord

void deleteRecord(Record rec,
                  boolean cascade)
                  throws java.lang.Exception
Throws:
java.lang.Exception

upgradeTable

void upgradeTable(Table tab)
                  throws java.lang.Exception
Throws:
java.lang.Exception

dropTable

void dropTable(Table tab)
               throws java.lang.Exception
Throws:
java.lang.Exception

loadTables

java.util.Map loadTables(Schema schema,
                         java.lang.String pattern)
                         throws java.lang.Exception
Throws:
java.lang.Exception

loadTable

void loadTable(Table tab)
               throws java.lang.Exception
Throws:
java.lang.Exception

loadFKs

void loadFKs(Table tab)
             throws java.lang.Exception
Throws:
java.lang.Exception

loadCatalogs

void loadCatalogs(Database db)
                  throws java.lang.Exception
Throws:
java.lang.Exception

loadSchemas

void loadSchemas(Catalog db)
                 throws java.lang.Exception
Throws:
java.lang.Exception