Package org.apache.empire.db.exceptions

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


            }
            return true;

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

            }
            return true;

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

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

        {   // 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

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

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

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

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

                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

Related Classes of org.apache.empire.db.exceptions.EmpireSQLException

Copyright © 2018 www.massapicom. 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.