1 17 package org.apache.ws.jaxme.sqls; 18 19 import java.util.Iterator ; 20 21 22 26 public interface Table { 27 public interface Name extends SQLFactory.Ident { 28 } 29 30 32 public Name getName(); 33 34 36 public Schema getSchema(); 37 38 40 public Iterator getColumns(); 41 42 44 public Column newColumn(Column.Name name, Column.Type pType); 45 46 48 public Column newColumn(String name, Column.Type pType); 49 50 53 public Column getColumn(Column.Name name); 54 55 58 public Column getColumn(String name); 59 60 62 public Index newKey(); 63 64 66 public Index newIndex(); 67 68 71 public Index newPrimaryKey(); 72 73 75 public ForeignKey newForeignKey(Table pReferencedTable); 76 77 83 public InsertStatement getInsertStatement(); 84 85 91 public SelectStatement getSelectStatement(); 92 93 101 public UpdateStatement getUpdateStatement(); 102 103 110 public DeleteStatement getDeleteStatement(); 111 112 116 public String getQName(); 117 118 121 public Index getPrimaryKey(); 122 123 126 public Iterator getIndexes(); 127 128 131 public Iterator getForeignKeys(); 132 } 133 | Popular Tags |