public class OracleDBUtil extends Utility implements OraConstants
dbConnection, ERR_CATEGORY_CONNECTION, ERR_CATEGORY_SQL, ERR_CATEGORY_STORED_PROCEDURES_ERROR, ERR_CATEGORY_STORED_PROCEDURES_RECOMPILED, EXCEPTION_CONNECTION_RESET, EXCEPTION_CONNECTION_SHUT, handler, ioHandler, smyldDbConnectionCOL_DBA_DIRS_DIRECTORY_NAME, COL_DBA_DIRS_DIRECTORY_PATH, COL_DBA_DIRS_OWNER, COL_USER_DPNC_DPNC_TYPE, COL_USER_DPNC_NAME, COL_USER_DPNC_REF_LNK_NAME, COL_USER_DPNC_REF_NAME, COL_USER_DPNC_REF_OWNER, COL_USER_DPNC_REF_TYPE, COL_USER_DPNC_SCHEMAID, COL_USER_DPNC_TYPE, COL_USER_SOURCE_LINE, COL_USER_SOURCE_NAME, COL_USER_SOURCE_TEXT, COL_USER_SOURCE_TYPE, COL_USER_TABLES_INITIAL_EXTENT, COL_USER_TABLES_LOGGING, COL_USER_TABLES_MAX_EXTENTS, COL_USER_TABLES_MIN_EXTENTS, COL_USER_TABLES_NEXT_EXTENT, COL_USER_TABLES_PCT_FREE, COL_USER_TABLES_TABLE_NAME, COL_USER_TABLES_TABLESPACE_NAME, COL_USER_TABLESPACE_BLOCK_SIZE, COL_USER_TABLESPACE_INITIAL_EXTENT, COL_USER_TABLESPACE_LOGGING, COL_USER_TABLESPACE_MAX_EXTENTS, COL_USER_TABLESPACE_MIN_EXTENTS, COL_USER_TABLESPACE_NEXT_EXTENT, COL_USER_TABLESPACE_SEG_SPACE_MNG, COL_USER_TABLESPACE_TABLESPACE_NAME, ORA_ENV_VAR_NAME, ORA_FILE_NAME_TNS_NAMES, ORA_PATH_NAME_NET_ADMIN, ORACLE_ERR_CONNECTION_RESET, ORACLE_ERR_IMMEDIATE_SHUTDOWN, ORACLE_ERR_INIT_OR_SHUT_IN_PROG, ORACLE_ERR_INVALID_LOGON, ORACLE_ERR_NOT_EXEC_ALTERED_DROP_PACKAGE, ORACLE_ERR_ORA_NOT_AVAILABLE, ORACLE_ERR_PACKAGE_HAS_ERROR, ORACLE_ERR_PACKAGE_STATE_DISCARDED, ORACLE_ERR_PACKAGE_STATE_INVALIDATED, ORACLE_ERR_UNIQUE_CONSTRAINT, ORACLE_ERR_UNIT_PROGRAM_NOT_FOUND, SOURCE_TYPE_FUNCTION, SOURCE_TYPE_JAVA_CLASS, SOURCE_TYPE_NON_EXISTENT, SOURCE_TYPE_PACKAGE, SOURCE_TYPE_PACKAGE_BODY, SOURCE_TYPE_PROCEDURE, SOURCE_TYPE_SEQUENCE, SOURCE_TYPE_SYNONYM, SOURCE_TYPE_TABLE, SOURCE_TYPE_TRIGGER, SOURCE_TYPE_TYPE, SOURCE_TYPE_VIEW, VIEW_DBA_DIRS, VIEW_USER_CONSTRAINTS, VIEW_USER_DEPENDENCIES, VIEW_USER_INDEXES, VIEW_USER_OBJECTS, VIEW_USER_SOURCE, VIEW_USER_TABLES, VIEW_USER_TABLESPACES| Constructor and Description |
|---|
OracleDBUtil(DBConnection activeConnection,
DBErrorHandler handler)
public OracleDBUtil(java.sql.Connection activeConnection,DBErrorHandler
handler) { super(activeConnection,handler); }
|
| Modifier and Type | Method and Description |
|---|---|
oracle.sql.ARRAY |
executeSingleParamArrayFunction(String function,
String arrayTypeName,
int param1) |
oracle.sql.ARRAY |
executeSingleParamProcedure(String procedure,
String paramValue,
int paramNo) |
Connection |
getConnection() |
String |
getDoubleParamFunctionStringReturnString(String function,
String param1,
String param2) |
String |
getOracleDirectory(String directoryName) |
String |
getSingleParamFunctionString(String function,
String param1) |
String |
getSingleParamFunctionStringReturnString(String function,
String param1) |
oracle.sql.StructDescriptor |
getStructDescriptor(String structTypeName) |
HashMap<String,String> |
getTablesContainingFieldName(String fieldName) |
HashMap<String,Table> |
getTablesContainingFieldNames(String[] fieldNames) |
static void |
main(String[] args) |
SMYLDSQLException |
parseSqlException(SQLException ex) |
closeCursor, closeCursor, constructDoubleParamFunctionCall, constructDoubleParamProcedureCall, constructMultiParamFunctionCall, constructMultiParamProcedureCall, constructSingleParamFunctionCall, constructSingleParamProcedureCall, constructTrippleParamFunctionCall, constructTrippleParamProcedureCall, createInsertSQL, detectLongFieldError, doDoubleParamSQL, doDoubleParamUpdateSQL, doQuadParamUpdateSQL, doSingleParamSQL, doSingleParamSQL, doSingleParamUpdateSQL, doTrippleParamUpdateSQL, executeDoubleParamFunction, executeDoubleParamFunction, executeDoubleParamProcedure, executeDoubleParamProcedure, executeMultiParamProcedure, executeQuery, executeTrippleParamFunction, executeTrippleParamProcedure, fetchTableData, FetchTableFields, FillColumnNames, getCount, getDoubleParamSQL, getDoubleParamSQL, getDoubleParamSQL, getErrorCategory, getParamsText, getQuadParamSQL, getSequenceValue, getSequentialID, getSequentialID, getSingleParamSQL, getSingleParamSQLData, getSQLData, getSQLResultSet, getStringIndex, getTableCols, getTrippleParamSQL, getTrippleParamSQL, handleDBError, importFile, isDoubleExist, isExist, isExist, isSingleExist, isTrippleExist, setSMYLDConnectionpublic OracleDBUtil(DBConnection activeConnection, DBErrorHandler handler)
public oracle.sql.ARRAY executeSingleParamArrayFunction(String function, String arrayTypeName, int param1)
public oracle.sql.ARRAY executeSingleParamProcedure(String procedure, String paramValue, int paramNo)
public Connection getConnection()
getConnection in class Utilitypublic oracle.sql.StructDescriptor getStructDescriptor(String structTypeName)
public String getSingleParamFunctionStringReturnString(String function, String param1)
public String getDoubleParamFunctionStringReturnString(String function, String param1, String param2)
public String getSingleParamFunctionString(String function, String param1)
public SMYLDSQLException parseSqlException(SQLException ex)
public HashMap<String,String> getTablesContainingFieldName(String fieldName)
public HashMap<String,Table> getTablesContainingFieldNames(String[] fieldNames)
public static void main(String[] args)
Copyright © 2019 SMYLD. All rights reserved.