Package org.apache.ojb.broker.metadata

Examples of org.apache.ojb.broker.metadata.JdbcConnectionDescriptor.addAttribute()


        } else {
            platform = jcd.getDbms();
        }
       
        // special attributes
        jcd.addAttribute("org.apache.jetspeed.engineScoped",
                         Boolean.toString(jetspeedEngineScoped));
    }

    /**
     * @param jcd
View Full Code Here


        } else {
            platform = jcd.getDbms();
        }
       
        // special attributes
        jcd.addAttribute("org.apache.jetspeed.engineScoped",
                         Boolean.toString(jetspeedEngineScoped));
    }

    /**
     * @param jcd
View Full Code Here

        } else {
            platform = jcd.getDbms();
        }
       
        // special attributes
        jcd.addAttribute("org.apache.jetspeed.engineScoped",
                         Boolean.toString(jetspeedEngineScoped));
    }

    /**
     * @param jcd
View Full Code Here

            JdbcConnectionDescriptor jcd = (JdbcConnectionDescriptor) SerializationUtils.clone(
                    broker.serviceConnectionManager().getConnectionDescriptor());
            jcd.setJcdAlias(factory.getName() + "_test_checkFactory_a");
            jcd.setUseAutoCommit(2);
            // use this attribute to allow OJB changing initial state of connections
            jcd.addAttribute("initializationCheck", "true");

            mm.connectionRepository().addDescriptor(jcd);
            Connection con = conFac.lookupConnection(jcd);
            Connection con2 = conFac.lookupConnection(jcd);
            Connection con3 = conFac.lookupConnection(jcd);
View Full Code Here

            {
                ojbSkipTestMessage("Doesn't work with " + ObjectCacheEmptyImpl.class + " as default cache.");
                return;
            }
            old = jcd.getAttribute(CacheDistributor.CACHE_EXCLUDES_STRING);
            jcd.addAttribute(CacheDistributor.CACHE_EXCLUDES_STRING, "org.apache.ojb.broker.sequence");

            PersistenceBroker broker = PersistenceBrokerFactory.defaultPersistenceBroker();
            try
            {
                ObjectCache cache = broker.serviceObjectCache();
View Full Code Here

                result = cache.lookup(filterOutPackageOid);
                assertNull(result);
            }
            finally
            {
                jcd.addAttribute(CacheDistributor.CACHE_EXCLUDES_STRING, old);
                if (broker != null) broker.close();
            }
        }
        finally
        {
View Full Code Here

        } else {
            platform = jcd.getDbms();
        }
       
        // special attributes
        jcd.addAttribute("org.apache.jetspeed.engineScoped",
                         Boolean.toString(jetspeedEngineScoped));
    }

    /**
     * @param jcd
View Full Code Here

            {
                ojbSkipTestMessage("Doesn't work with " + ObjectCacheEmptyImpl.class + " as default cache.");
                return;
            }
            old = jcd.getAttribute(CacheDistributor.CACHE_EXCLUDES_STRING);
            jcd.addAttribute(CacheDistributor.CACHE_EXCLUDES_STRING, "org.apache.ojb.broker.sequence");

            PersistenceBroker broker = PersistenceBrokerFactory.defaultPersistenceBroker();
            try
            {
                ObjectCache cache = broker.serviceObjectCache();
View Full Code Here

                result = cache.lookup(filterOutPackageOid);
                assertNull(result);
            }
            finally
            {
                jcd.addAttribute(CacheDistributor.CACHE_EXCLUDES_STRING, old);
                if (broker != null) broker.close();
            }
        }
        finally
        {
View Full Code Here

        } else {
            platform = jcd.getDbms();
        }
       
        // special attributes
        jcd.addAttribute("org.apache.jetspeed.engineScoped",
                         Boolean.toString(jetspeedEngineScoped));
    }

    /**
     * @param jcd
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.