Package org.exolab.castor.jdo.engine

Examples of org.exolab.castor.jdo.engine.DatabaseRegistry


    private synchronized Connection getSeparateConnection(Database database)
        throws PersistenceException
    {
        Connection conn;
        DatabaseRegistry dr;

        dr=DatabaseRegistry.getDatabaseRegistry(database.getDatabaseName());

        conn = (Connection) _separateConnections.get( dr );
        if ( conn == null ) {
            try {
                conn = dr.createConnection();
                conn.setAutoCommit( false );
                _separateConnections.put( dr, conn );
            } catch ( SQLException except ) {
                throw new PersistenceException( Messages.message("persist.cannotCreateSeparateConn"), except );
            }
View Full Code Here

TOP

Related Classes of org.exolab.castor.jdo.engine.DatabaseRegistry

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.