Package org.castor.persist

Examples of org.castor.persist.TransactionContext


        return false;
    }
   
   
    public boolean setTransactionTimeout(final int timeout) {
        TransactionContext tx;
       
        tx = _xaSource.getTransactionContext();
        if ((tx != null) && tx.isOpen()) {
            tx.setTransactionTimeout(timeout);
            return true;
        }
        return false;
    }
View Full Code Here


        return false;
    }


    public int getTransactionTimeout() {
        TransactionContext tx;
       
        tx = _xaSource.getTransactionContext();
        if (tx != null && tx.isOpen()) {
            return tx.getTransactionTimeout();
        }
        return 0;
    }
View Full Code Here

        _dbEngine = ((AbstractDatabaseImpl) _database).getLockEngine();
        if (_dbEngine == null) {
            throw new QueryException("Could not get a persistence engine");
        }

        TransactionContext trans = ((AbstractDatabaseImpl) _database).getTransaction();
        DbMetaInfo dbInfo = trans.getConnectionInfo(_dbEngine);

        ParseTreeWalker walker = new ParseTreeWalker(_dbEngine, parseTree,
                _database.getClassLoader(), dbInfo);

        _objClass = walker.getObjClass();
View Full Code Here

                case ParseTreeWalker.DEPENDANT_VALUE:
                case ParseTreeWalker.AGGREGATE:
                case ParseTreeWalker.FUNCTION:
                    try {
                        TransactionContext tx = ((AbstractDatabaseImpl) _database).getTransaction();
                        java.sql.Connection conn = tx.getConnection(_dbEngine);
                        SimpleQueryExecutor sqe = new SimpleQueryExecutor(_database);
                        _results =  sqe.execute(conn, _expr, _bindValues);
                    } catch (QueryException except) {
                        throw new QueryException(Messages.message(
                                "persist.simple.query.failed"), except);
View Full Code Here

TOP

Related Classes of org.castor.persist.TransactionContext

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.