Package com.sleepycat.je.dbi

Examples of com.sleepycat.je.dbi.TruncateResult


            /*
             * truncate clones the existing database and returns a new one to
             * replace it with.  The old databaseImpl object is marked
             * 'deleted'.
             */
            TruncateResult result =
                envHandle.getEnvironmentImpl().truncate(locker, databaseImpl);
            databaseImpl = result.getDatabase();

            operationOk = true;
            return countRecords ? result.getRecordCount() : -1;
        } finally {

            /*
             * The txn will know if it's living past the end of this operation,
             * and if it needs to transfer the handle lock.  operationEnd()
View Full Code Here


            /*
             * truncate clones the existing database and returns a new one to
             * replace it with.  The old databaseImpl object is marked
             * 'deleted'.
             */
            TruncateResult result =
                envHandle.getEnvironmentImpl().truncate(locker, databaseImpl);
            databaseImpl = result.getDatabase();

            operationOk = true;
            return countRecords ? result.getRecordCount() : -1;
        } finally {

            /*
             * The txn will know if it's living past the end of this operation,
             * and if it needs to transfer the handle lock.  operationEnd()
View Full Code Here

TOP

Related Classes of com.sleepycat.je.dbi.TruncateResult

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.