Examples of serviceConnectionManager()


Examples of org.apache.ojb.broker.PersistenceBroker.serviceConnectionManager()

            TransactionImpl tx = (TransactionImpl) odmg.newTransaction();
            tx.begin();
            PersistenceBroker broker = tx.getBroker();

            Connection conn =
                    broker
                    .serviceConnectionManager()
                    .getConnection();
            /**
             * only execute this test if scrolling is supported.
             */
 
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBroker.serviceConnectionManager()

     * perform commit on all tx-states
     */
    public void commit() throws TransactionAbortedException, LockNotGrantedException
    {
        PersistenceBroker broker = transaction.getBroker();
        ConnectionManagerIF connMan = broker.serviceConnectionManager();
        boolean saveBatchMode = connMan.isBatchMode();

        try
        {
            if (log.isDebugEnabled())
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBroker.serviceConnectionManager()

        Statement stmt;

        PersistenceBroker pb = PersistenceBrokerFactory.defaultPersistenceBroker();
        try
        {
            con = pb.serviceConnectionManager().getConnection();
            stmt = con.createStatement();
            try
            {
                if(platform instanceof PlatformMySQLImpl)
                {
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBroker.serviceConnectionManager()

        Connection con;
        Statement stmt;
        PersistenceBroker pb = PersistenceBrokerFactory.defaultPersistenceBroker();
        try
        {
            con = pb.serviceConnectionManager().getConnection();

            stmt = con.createStatement();
            if(platform instanceof PlatformMySQLImpl)
            {
                stmt.execute(DROP_CONSTRAINT_MYSQL);
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBroker.serviceConnectionManager()

     * 'TestObjectEmptyCache' instance.
     */
    public void testPerClassCache() throws Exception
    {
        PersistenceBroker broker = PersistenceBrokerFactory.defaultPersistenceBroker();
        JdbcConnectionDescriptor jcd = broker.serviceConnectionManager().getConnectionDescriptor();
        if(jcd.getObjectCacheDescriptor().getObjectCache().equals(ObjectCacheEmptyImpl.class))
        {
            ojbSkipTestMessage("Doesn't work with " + ObjectCacheEmptyImpl.class + " as default cache.");
            return;
        }
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBroker.serviceConnectionManager()

            if(log.isDebugEnabled())
            {
                log.debug("Do internal cleanup and close the internal used connection without" +
                        " closing the used broker");
            }
            ConnectionManagerIF cm = broker.serviceConnectionManager();
            if(cm.isInLocalTransaction())
            {
                /*
                arminw:
                in managed environment this call will be ignored because, the JTA transaction
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBroker.serviceConnectionManager()

     * DB set <em>true</em>, else set <em>false</em> to improve performance.
     */
    public void writeObjects(boolean needsReusePrepare) throws TransactionAbortedException, LockNotGrantedException
    {
        PersistenceBroker broker = transaction.getBroker();
        ConnectionManagerIF connMan = broker.serviceConnectionManager();
        boolean saveBatchMode = connMan.isBatchMode();

        try
        {
            if (log.isDebugEnabled())
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.