/db-migrate/src/main/java/com/googlecode/hdbc/dbmigrate/io/IFileProvider.java

http://hdbc.googlecode.com/ · Java · 21 lines · 16 code · 5 blank · 0 comment · 0 complexity · f4daf1e26c2aa2835670bb43a4948862 MD5 · raw file

  1. package com.googlecode.hdbc.dbmigrate.io;
  2. import java.io.IOException;
  3. import java.util.List;
  4. import java.util.Properties;
  5. public interface IFileProvider {
  6. String[] migrationFileList();
  7. String templateContent(String templateType) throws IOException;
  8. void writeDoFile(String fileName, String fileContent) throws IOException;
  9. void writeUndoFile(String fileName, String fileContent) throws IOException;
  10. void writeMasterMigrationDoScript(List<String> files) throws IOException;
  11. void writeMasterMigrationUnDoScript(List<String> files) throws IOException;
  12. void initializeDoDirectory(String schema) throws IOException;
  13. void initializeUnDoDirectory(String schema) throws IOException;
  14. void initializeTemplatesDirectory(String schema) throws IOException;
  15. Properties readProperties() throws IOException;
  16. }