Skip to content

Instantly share code, notes, and snippets.

@tony1223
Created September 3, 2010 12:22
Show Gist options
  • Save tony1223/563811 to your computer and use it in GitHub Desktop.
Save tony1223/563811 to your computer and use it in GitHub Desktop.
class DBConfig{
}
interface ConfigLoader{
DBConfig loadConfig(String fileName);
}
interface DBEngine{
void openConnnection(DBConfig input);
void execute(List<MigrationRunner> list); //to db
List<MigrationRunner> executeMigration(List<Migration> list);
void getMigrationList();
}
interface MigrationRunner{
//table
//void addTable(Table table){}
//private TabelHelper new TabelHelper();
}
interface _Migration{
void up(MigrationRunner runner );
void down(MigrationRunner runner );
}
interface DBOperation{
String toSQLString();
}
interface TableHelper{
}
interface DBColumn{
}
//class Migration1 implements _Migration{
//
// public void up(MigrationRunner runner) {
// runner.addTable(new Table(){
// public void doTable(TableHelper t) {
// // TODO Auto-generated method stub
// t.addColumn(name, type)
// }
// });
// }
//
// public void down(MigrationRunner runner) {
// // TODO Auto-generated method stub
//
// }
//
//}
//
//addTable(
// new Table(){
// public createTable(Helper t){
// t.integer();
// }
// }
//)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment