public String getSchemaName(Connection conn) throws SQLException { Statement stmt = conn.createStatement(); try { String stmtText = "VALUES (CURRENT SCHEMA)"; ResultSet rs = stmt.executeQuery(stmtText); try { if (!rs.next()) { throw new JDOFatalDataStoreException("No result returned from " + stmtText); } return rs.getString(1).trim(); } finally { rs.close(); } } finally { stmt.close(); } }
public JdoResourceFailureException(JDOFatalDataStoreException ex) { super(ex.getMessage(), ex); }
public String getSchemaName(Connection conn) throws SQLException { Statement stmt = conn.createStatement(); try { String stmtText = "SELECT SYS_CONTEXT('USERENV', 'CURRENT_SCHEMA') FROM DUAL"; ResultSet rs = stmt.executeQuery(stmtText); try { if (!rs.next()) { throw new JDOFatalDataStoreException("No result returned from " + stmtText); } return rs.getString(1); } finally { rs.close(); } } finally { stmt.close(); } }
public JdoResourceFailureException(JDOFatalDataStoreException ex) { super(ex.getMessage(), ex); }
throw new JDOFatalDataStoreException("Can't read JDBC metadata from result set", e);
throw new JDOFatalDataStoreException("Can't read JDBC metadata from result set", e);
throw new JDOFatalDataStoreException("Can't read JDBC metadata from result set", e);
throw new JDOFatalDataStoreException("Can't read JDBC metadata from result set", e);
throw new JDOFatalDataStoreException(LOCALISER.msg("Transaction.CommitWithRollbackOnly"));
throw new JDOFatalDataStoreException(msg);
return new JDOFatalDataStoreException(ne.getMessage(), ne.getFailedObject()); return new JDOFatalDataStoreException(ne.getMessage(), ne.getNestedExceptions()); return new JDOFatalDataStoreException(ne.getMessage(), ne);