Package org.odmg

Examples of org.odmg.DatabaseClosedException


     */
    public DBag newDBag()
    {
        if ((getCurrentDatabase() == null))
        {
            throw new DatabaseClosedException("Database is NULL, cannot create a DBag with a null database.");
        }
        return DCollectionFactory.getInstance().createDBag(getCurrentPBKey());
    }
View Full Code Here


     */
    public DSet newDSet()
    {
        if ((getCurrentDatabase() == null))
        {
            throw new DatabaseClosedException("Database is NULL, cannot create a DSet with a null database.");
        }
        return DCollectionFactory.getInstance().createDSet(getCurrentPBKey());
    }
View Full Code Here

     */
    public DArray newDArray()
    {
        if ((getCurrentDatabase() == null))
        {
            throw new DatabaseClosedException("Database is NULL, cannot create a DArray with a null database.");
        }
        return DCollectionFactory.getInstance().createDArray(getCurrentPBKey());
    }
View Full Code Here

     */
    public DMap newDMap()
    {
        if ((getCurrentDatabase() == null))
        {
            throw new DatabaseClosedException("Database is NULL, cannot create a DMap with a null database.");
        }
        return DCollectionFactory.getInstance().createDMap(getCurrentPBKey());
    }
View Full Code Here

        /**
         * Is the associated database non-null and open? ODMG 3.0 says it must be.
         */
        if ((curDB == null) || !curDB.isOpen())
        {
            throw new DatabaseClosedException("Database is not open. Must have an open DB to begin the Tx.");
        }
        if (isOpen())
        {
            log.error("Transaction is already open");
            throw new org.odmg.TransactionInProgressException("Impossible to call begin on already opened tx");
View Full Code Here

    public PBKey getPBKey()
    {
        if (pbKey == null)
        {
            log.error("## PBKey not set, Database isOpen=" + isOpen + " ##");
            if (!isOpen) throw new DatabaseClosedException("Database is not open");
        }
        return pbKey;
    }
View Full Code Here

        /**
         * is the DB open? ODMG 3.0 says we can't close an already open database.
         */
        if (!isOpen())
        {
            throw new DatabaseClosedException("Database is not Open. Must have an open DB to call close.");
        }
        /**
         * is the associated Tx open? ODMG 3.0 says we can't close the database with an open Tx pending.
         * check if a tx was found, the tx was associated with database
         */
 
View Full Code Here

        /**
         * Is DB open? ODMG 3.0 says it has to be to call bind.
         */
        if (!this.isOpen())
        {
            throw new DatabaseClosedException("Database is not open. Must have an open DB to call bind.");
        }
        /**
         * Is Tx open? ODMG 3.0 says it has to be to call bind.
         */
        TransactionImpl tx = getTransaction();
View Full Code Here

        /**
         * Is DB open? ODMG 3.0 says it has to be to call bind.
         */
        if (!this.isOpen())
        {
            throw new DatabaseClosedException("Database is not open. Must have an open DB to call lookup");
        }
        /**
         * Is Tx open? ODMG 3.0 says it has to be to call bind.
         */
        TransactionImpl tx = getTransaction();
View Full Code Here

        /**
         * Is DB open? ODMG 3.0 says it has to be to call unbind.
         */
        if (!this.isOpen())
        {
            throw new DatabaseClosedException("Database is not open. Must have an open DB to call unbind");
        }

        /**
         * Is Tx open? ODMG 3.0 says it has to be to call unbind.
         */
 
View Full Code Here

TOP

Related Classes of org.odmg.DatabaseClosedException

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.