Package org.apache.isis.runtimes.dflt.objectstores.sql

Examples of org.apache.isis.runtimes.dflt.objectstores.sql.SqlObjectStoreException


        try {
            statement = connection.prepareStatement(sql);
            addPreparedValues(statement);
            return new JdbcResults(statement.executeQuery());
        } catch (final SQLException e) {
            throw new SqlObjectStoreException(e);
        } finally {
            clearPreparedValues();
        }
    }
View Full Code Here


            final int updateCount = statement.executeUpdate();
            statement.close();
            return updateCount;
        } catch (final SQLException e) {
            LOG.error("failed to execute " + sql, e);
            throw new SqlObjectStoreException("SQL error: " + e.toString(), e);
        } finally {
            clearPreparedValues();
        }
    }
View Full Code Here

            } else {
                set.close();
                return false;
            }
        } catch (final SQLException e) {
            throw new SqlObjectStoreException(e);
        }
    }
View Full Code Here

            } else {
                set.close();
                return false;
            }
        } catch (final SQLException e) {
            throw new SqlObjectStoreException(e);
        }
    }
View Full Code Here

            /*
             * require 3.0 ResultSet rs = statement.getGeneratedKeys();
             * if(rs.next()) { int id = rs.getInt(1); }
             */statement.close();
        } catch (final SQLException e) {
            throw new SqlObjectStoreException("SQL error", e);
        }
    }
View Full Code Here

        try {
            LOG.debug("commit");
            connection.commit();
            connection.setAutoCommit(true);
        } catch (final SQLException e) {
            throw new SqlObjectStoreException("Commit error", e);
        }
    }
View Full Code Here

        try {
            LOG.debug("begin transaction");
            connection.setAutoCommit(false);
            clearPreparedValues();
        } catch (final SQLException e) {
            throw new SqlObjectStoreException("Rollback error", e);
        }

    }
View Full Code Here

        try {
            LOG.debug("rollback");
            connection.rollback();
            connection.setAutoCommit(true);
        } catch (final SQLException e) {
            throw new SqlObjectStoreException("Rollback error", e);
        }
    }
View Full Code Here

    public SqlMetaData getMetaData() {
        try {
            final DatabaseMetaData metaData = connection.getMetaData();
            return new JdbcSqlMetaData(metaData);
        } catch (final SQLException e) {
            throw new SqlObjectStoreException("Metadata error", e);
        }
    }
View Full Code Here

            debug.appendln("Upper case quoted", metaData.storesUpperCaseQuotedIdentifiers());
            debug.appendln("Max table name length", metaData.getMaxTableNameLength());
            debug.appendln("Max column name length", metaData.getMaxColumnNameLength());

        } catch (final SQLException e) {
            throw new SqlObjectStoreException("Metadata error", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.runtimes.dflt.objectstores.sql.SqlObjectStoreException

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.