butler.sql.driver
Class ClientDriver
java.lang.Object
butler.sql.driver.ClientDriver
- All Implemented Interfaces:
- ButlerDriver
public class ClientDriver
- extends java.lang.Object
- implements ButlerDriver
Client implementation of ButlerDriver.
- Author:
- Fredrik Bertilsson
Constructor Summary |
ClientDriver(java.lang.String host)
|
ClientDriver(java.lang.String host,
java.lang.Object requestContext)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientDriver
public ClientDriver(java.lang.String host)
throws java.lang.Exception
- Throws:
java.lang.Exception
ClientDriver
public ClientDriver(java.lang.String host,
java.lang.Object requestContext)
throws java.lang.Exception
- Throws:
java.lang.Exception
findByPK
public Record findByPK(Table tab,
butler.util.Tuple key)
throws java.lang.Exception
- Specified by:
findByPK
in interface ButlerDriver
- Throws:
java.lang.Exception
runQueryInstance
public RecordList runQueryInstance(QueryInstance qi)
throws java.lang.Exception
- Specified by:
runQueryInstance
in interface ButlerDriver
- Throws:
java.lang.Exception
createRecord
public Record createRecord(Table tab)
throws java.lang.Exception
- Specified by:
createRecord
in interface ButlerDriver
- Throws:
java.lang.Exception
saveRecord
public void saveRecord(Record rec)
throws java.lang.Exception
- Specified by:
saveRecord
in interface ButlerDriver
- Throws:
java.lang.Exception
saveRecordList
public void saveRecordList(RecordList recList)
throws java.lang.Exception
- Specified by:
saveRecordList
in interface ButlerDriver
- Throws:
java.lang.Exception
deleteRecord
public void deleteRecord(Record rec,
boolean cascade)
throws java.lang.Exception
- Specified by:
deleteRecord
in interface ButlerDriver
- Throws:
java.lang.Exception
upgradeTable
public void upgradeTable(Table tab)
throws java.lang.Exception
- Specified by:
upgradeTable
in interface ButlerDriver
- Throws:
java.lang.Exception
dropTable
public void dropTable(Table tab)
throws java.lang.Exception
- Specified by:
dropTable
in interface ButlerDriver
- Throws:
java.lang.Exception
loadTables
public java.util.Map loadTables(Schema schema,
java.lang.String pattern)
throws java.lang.Exception
- Specified by:
loadTables
in interface ButlerDriver
- Throws:
java.lang.Exception
loadTable
public void loadTable(Table tab)
throws java.lang.Exception
- Specified by:
loadTable
in interface ButlerDriver
- Throws:
java.lang.Exception
loadFKs
public void loadFKs(Table tab)
throws java.lang.Exception
- Specified by:
loadFKs
in interface ButlerDriver
- Throws:
java.lang.Exception
loadCatalogs
public void loadCatalogs(Database db)
throws java.lang.Exception
- Specified by:
loadCatalogs
in interface ButlerDriver
- Throws:
java.lang.Exception
loadSchemas
public void loadSchemas(Catalog db)
throws java.lang.Exception
- Specified by:
loadSchemas
in interface ButlerDriver
- Throws:
java.lang.Exception
getDatabaseBroker
public DatabaseBroker getDatabaseBroker()