| 1 21 package net.sf.hajdbc; 22 23 import java.sql.DatabaseMetaData ; 24 import java.sql.ResultSetMetaData ; 25 import java.sql.SQLException ; 26 27 28 34 public interface Dialect 35 { 36 40 public String getSimpleSQL(); 41 42 50 public String getLockTableSQL(DatabaseMetaData metaData, String schema, String table) throws SQLException; 51 52 60 public String getTruncateTableSQL(DatabaseMetaData metaData, String schema, String table) throws SQLException; 61 62 69 public String getCreateForeignKeyConstraintSQL(DatabaseMetaData metaData, ForeignKeyConstraint constraint) throws SQLException; 70 71 78 public String getDropForeignKeyConstraintSQL(DatabaseMetaData metaData, ForeignKeyConstraint constraint) throws SQLException; 79 80 87 public String getCreateUniqueConstraintSQL(DatabaseMetaData metaData, UniqueConstraint constraint) throws SQLException; 88 89 96 public String getDropUniqueConstraintSQL(DatabaseMetaData metaData, UniqueConstraint constraint) throws SQLException; 97 98 106 public String qualifyTable(DatabaseMetaData metaData, String schema, String table) throws SQLException; 107 108 115 public String quote(DatabaseMetaData metaData, String identifier) throws SQLException; 116 117 121 public boolean isSelectForUpdate(DatabaseMetaData metaData, String sql) throws SQLException; 122 123 130 public int getColumnType(ResultSetMetaData metaData, int column) throws SQLException; 131 } 132 | Popular Tags |