Examples of lookupConnectionFactory()


Examples of org.datanucleus.ConnectionFactoryRegistry.lookupConnectionFactory()

   * manager is transactional.
   */
  public boolean connectionFactoryIsTransactional() {
    ConnectionFactoryRegistry registry = getOMFContext().getConnectionFactoryRegistry();
    DatastoreConnectionFactoryImpl connFactory =
        (DatastoreConnectionFactoryImpl) registry.lookupConnectionFactory(txConnectionFactoryName);
    return connFactory.isTransactional();
  }

  @Override
  public DatastoreTable getDatastoreClass(String className, ClassLoaderResolver clr) {
View Full Code Here

Examples of org.jpox.ConnectionFactoryRegistry.lookupConnectionFactory()

     * @throws JPOXException Thrown if an error occurs getting the connection
     */
    public ManagedConnection getConnection(ObjectManager om)
    {
        ConnectionFactoryRegistry registry = om.getOMFContext().getConnectionFactoryRegistry();
        ConnectionFactory connFactory = registry.lookupConnectionFactory(txConnectionFactoryName);
        return connFactory.getConnection(om, null);
    }

    /* (non-Javadoc)
     * @see org.jpox.store.StoreManager#getRuntimeManager()
View Full Code Here

Examples of org.jpox.ConnectionFactoryRegistry.lookupConnectionFactory()

     */
    public ManagedConnection getConnection()
    throws SQLException
    {
        ConnectionFactoryRegistry registry = getOMFContext().getConnectionFactoryRegistry();
        ConnectionFactory connFactory = registry.lookupConnectionFactory(nontxConnectionFactoryName);
        return connFactory.getConnection(null, null);
    }

    /**
     * Utility to return a Connection not associated to the current transaction.
View Full Code Here

Examples of org.jpox.ConnectionFactoryRegistry.lookupConnectionFactory()

     */
    public ManagedConnection getConnection(int isolation_level)
    throws SQLException
    {
        ConnectionFactoryRegistry registry = omfContext.getConnectionFactoryRegistry();
        ConnectionFactory connFactory = registry.lookupConnectionFactory(nontxConnectionFactoryName);
        Map options = new HashMap();
        options.put("transaction.isolation", new Integer(isolation_level));
        return connFactory.getConnection(null, options);
      
    }
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.