1 21 22 package org.opensubsystems.core.persist.db; 23 24 import java.sql.Connection ; 25 import java.sql.SQLException ; 26 27 import org.opensubsystems.core.error.OSSException; 28 29 44 public interface DatabaseSchema 45 { 46 48 53 String getName( 54 ); 55 56 61 int getVersion( 62 ); 63 64 77 boolean isInDomain(); 78 79 81 89 void create( 90 Connection cntDBConnection, 91 String strUserName 92 ) throws SQLException , OSSException; 93 94 102 void upgrade( 103 Connection cntDBConnection, 104 String strUserName, 105 int iOriginalVersion 106 ) throws SQLException ; 107 108 118 DatabaseSchema[] getDependentSchemas( 119 ) throws OSSException; 120 121 135 void handleSQLException( 136 SQLException exc, 137 Connection dbConnection, 138 int iOperationType, 139 int iDataType, 140 Object data 141 ) throws OSSException; 142 } 143 | Popular Tags |