Created
September 3, 2010 12:22
-
-
Save tony1223/563811 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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