| 1 16 package org.outerj.daisy.install; 17 18 import java.io.Reader ; 19 import java.sql.SQLException ; 20 21 public interface DatabaseSpecifics { 22 25 String getCurrentDateTimeFunction(); 26 27 30 public String [] getPreStatements(); 31 32 35 public String [] getPostStatements(); 36 37 public char getStatementSeparator(); 38 39 43 public boolean getDropStatementSeparator(); 44 45 public Reader getSchemaScript(); 46 47 public Reader getDataScript(); 48 49 55 public void clearDatabase(String dbUrl, String dbName, String dbUser, String dbPassword) throws SQLException ; 56 57 public String getForeignKeyStatement(String table, String field, String otherTable, String otherField, String constraintName); 58 59 public String getTestStatement(); 60 } 61 | Popular Tags |