1 10 11 package com.triactive.jdo.store; 12 13 import java.sql.Connection ; 14 import java.sql.SQLException ; 15 16 17 interface Table 18 { 19 20 static final int TABLE_TYPE_MISSING = -1; 21 22 26 static final int TABLE_TYPE_UNKNOWN = 0; 27 28 29 static final int TABLE_TYPE_BASE_TABLE = 1; 30 31 32 static final int TABLE_TYPE_VIEW = 2; 33 34 38 static final int VALIDATE = 1; 39 40 44 static final int AUTO_CREATE = 2; 45 46 47 void initialize(); 48 49 boolean isInitialized(); 50 51 SQLIdentifier getName(); 52 53 StoreManager getStoreManager(); 54 55 String getSchemaName(); 56 57 void addColumn(Column col); 58 59 Column newColumn(Class type, String javaName); 60 61 Column newColumn(Class type, SQLIdentifier name, Role role); 62 63 boolean exists(Connection conn) throws SQLException ; 64 65 void create(Connection conn) throws SQLException ; 66 67 boolean validate(int flags, Connection conn) throws SQLException ; 68 69 boolean isValidated(); 70 71 void drop(Connection conn) throws SQLException ; 72 } 73 | Popular Tags |