Examples of EmpireSQLException


Examples of org.apache.empire.db.exceptions.EmpireSQLException

            DataType dataType = colList[index].getDataType();
            return db.driver.getResultValue(rset, index + 1, dataType);

        } catch (SQLException e)
        { // Operation failed
            throw new EmpireSQLException(this, e);
        }
    }
View Full Code Here

Examples of org.apache.empire.db.exceptions.EmpireSQLException

            }
            return true;

        } catch (SQLException e) {
            // an error occurred
            throw new EmpireSQLException(this, e);
        }
    }
View Full Code Here

Examples of org.apache.empire.db.exceptions.EmpireSQLException

            }
            return true;

        } catch (SQLException e) {
            // an error occurred
            throw new EmpireSQLException(this, e);
        }
    }
View Full Code Here

Examples of org.apache.empire.db.exceptions.EmpireSQLException

                    return false;
                // there are more records
                return true;
            } catch (SQLException e) {
                // Error
                throw new EmpireSQLException(getDatabase(), e);
            }
        }
View Full Code Here

Examples of org.apache.empire.db.exceptions.EmpireSQLException

        {   // Oracle Timestamp query
            rs = executeQuery("select sysdate from dual", null, false, conn);
            return (rs.next() ? rs.getTimestamp(1) : null);
        } catch (SQLException e) {
            // throw exception
            throw new EmpireSQLException(this, e);
        } finally
        { // Cleanup
            try
            { // ResultSet close
                Statement stmt = (rs!=null) ?  rs.getStatement() : null;
                if (rs != null)
                    rs.close();
                if (stmt != null)
                    stmt.close();
            } catch (SQLException e) {
                // throw exception
                throw new EmpireSQLException(this, e);
            }
        }
    }
View Full Code Here

Examples of org.apache.empire.db.exceptions.EmpireSQLException

                conn.commit();
            // Done
            return;
        } catch (SQLException sqle) {
            // Commit failed!
            throw new EmpireSQLException(this, sqle);
        }
    }
View Full Code Here

Examples of org.apache.empire.db.exceptions.EmpireSQLException

            conn.rollback();
            // Done
            return;
        } catch (SQLException sqle) {
            // Commit failed!
            throw new EmpireSQLException(this, sqle);
        }
    }
View Full Code Here

Examples of org.apache.empire.db.exceptions.EmpireSQLException

                stmt.close();
            // done
            return;
        } catch (SQLException sqle) {
            // Commit failed!
            throw new EmpireSQLException(this, sqle);
        }
    }
View Full Code Here

Examples of org.apache.empire.db.exceptions.EmpireSQLException

            stmt.close();
            // done
            return;
        } catch (SQLException sqle) {
            // Commit failed!
            throw new EmpireSQLException(this, sqle);
        }
    }
View Full Code Here

Examples of org.apache.empire.db.exceptions.EmpireSQLException

                if (log.isInfoEnabled())
                    log.info("Sequence {} incremented to {}.", SeqName, seqValue);
                return new Long(seqValue);
            } catch (SQLException e) {
                // throw exception
                throw new EmpireSQLException(this, e);
            } finally
            { // Cleanup
                db.closeStatement(stmt);
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.