1 17 package org.apache.ws.jaxme.sqls; 18 19 import java.sql.Connection ; 20 import java.sql.SQLException ; 21 import java.util.Iterator ; 22 23 24 28 public interface SQLFactory { 29 public interface Ident { 30 33 public String getName(); 34 } 35 36 38 public ObjectFactory getObjectFactory(); 39 40 45 public Integer getMaxTableNameLength(); 46 47 50 public boolean isTableNameCaseSensitive(); 51 52 57 public Integer getMaxSchemaNameLength(); 58 59 62 public boolean isSchemaNameCaseSensitive(); 63 64 69 public Integer getMaxColumnNameLength(); 70 71 74 public boolean isColumnNameCaseSensitive(); 75 76 78 public SelectStatement newSelectStatement(); 79 80 82 public InsertStatement newInsertStatement(); 83 84 86 public UpdateStatement newUpdateStatement(); 87 88 90 public DeleteStatement newDeleteStatement(); 91 92 94 public Schema newSchema(String pName); 95 96 98 public Schema newSchema(Schema.Name pName); 99 100 103 public Schema getDefaultSchema(); 104 105 108 public Schema getSchema(Schema.Name pName); 109 110 113 public Schema getSchema(String pName); 114 115 118 public Iterator getSchemas(); 119 120 122 public SQLGenerator newSQLGenerator(); 123 124 126 public Schema getSchema(Connection pConnection, Schema.Name pName) throws SQLException ; 127 128 130 public Schema getSchema(Connection pConnection, String pName) throws SQLException ; 131 132 135 public Table getTable(Connection pConnection, Schema.Name pSchema, Table.Name pTable) throws SQLException ; 136 137 140 public Table getTable(Connection pConnection, String pSchema,String pTable) throws SQLException ; 141 } 142 | Popular Tags |