Package org.rhq.core.domain.shared

Examples of org.rhq.core.domain.shared.TransactionCallback


    @Override
    protected void beforeMethod() {

        purgeDB();

        executeInTransaction(false, new TransactionCallback() {
            @Override
            public void execute() throws Exception {
                try {
                    resourceType = createResourceType();
                    em.persist(resourceType);
View Full Code Here


    protected void afterMethod() {
        purgeDB();
    }

    private void purgeDB() {
        executeInTransaction(false, new TransactionCallback() {
            @Override
            public void execute() throws Exception {
                try {
                    // get rid of mandatory avail records on a resource
                    List<Availability> avails = (List<Availability>) em
View Full Code Here

        return def;
    }

    @Test(groups = { "JPADriftChangeSet", "drift.ejb" })
    public void saveAndLoadInitialChangeSet() {
        executeInTransaction(new TransactionCallback() {
            @Override
            public void execute() throws Exception {

                JPADriftChangeSet changeSet = new JPADriftChangeSet(resource, 0, COVERAGE, definition);
                changeSet.setDriftHandlingMode(DriftHandlingMode.normal);
View Full Code Here

TOP

Related Classes of org.rhq.core.domain.shared.TransactionCallback

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.