Examples of CmpEntityLocal


Examples of org.jboss.as.test.integration.ejb.entity.cmp.optimisticlock.interfaces.CmpEntityLocal

     * @ejb.interface-method
     */
    public void safeRemove(String jndiName, Integer id) throws Exception {
        log.debug("safeRemove> jndiName=" + jndiName + ", id=" + id);
        try {
            CmpEntityLocal entity = getCmpEntityHome(jndiName).findByPrimaryKey(id);
            entity.remove();
        } catch (FinderException e) {
        }
    }
View Full Code Here

Examples of org.jboss.as.test.integration.ejb.entity.cmp.optimisticlock.interfaces.CmpEntityLocal

    /**
     * @ejb.interface-method
     */
    public void testNullLockedFields(String jndiName, Integer id) throws Exception {
        log.debug("testNullLockedFields> begin");
        CmpEntityLocal entity = getCmpEntityHome(jndiName).findByPrimaryKey(id);
        entity.setDoubleGroup1(new Double(11.11));
        entity.setDoubleGroup2(new Double(22.22));
        entity.setIntegerGroup1(new Integer(11));
        entity.setIntegerGroup2(new Integer(22));
        entity.setStringGroup1("str1 modified in testNullLockedFields");
        entity.setStringGroup2("str2 modified in testNullLockedFields");
        log.debug("testNullLockedFields> done");
    }
View Full Code Here

Examples of org.jboss.as.test.integration.ejb.entity.cmp.optimisticlock.interfaces.CmpEntityLocal

    /**
     * @ejb.interface-method
     */
    public void testKeygenStrategyPass(String jndiName, Integer id) throws Exception {
        log.debug("testKeygenStrategyPass> begin");
        CmpEntityLocal entity = getCmpEntityHome(jndiName).findByPrimaryKey(id);
        entity.setIntegerGroup1(new Integer(111));
        entity.setStringGroup2("modified in testKeygenStrategyPass");
        entity.getDoubleGroup1();
        log.debug("testKeygenStrategyPass> done");
    }
View Full Code Here

Examples of org.jboss.as.test.integration.ejb.entity.cmp.optimisticlock.interfaces.CmpEntityLocal

        log.debug("testKeygenStrategyPass> done");
    }

    public void testKeygenStrategyFail(String jndiName, Integer id) throws Exception {
        log.info("testKeygenStrategyFail> begin");
        CmpEntityLocal entity = getCmpEntityHome(jndiName).findByPrimaryKey(id);
        entity.setIntegerGroup1(new Integer(111));
        entity.setStringGroup2("modified in testKeygenStrategyFail");
        entity.getDoubleGroup1();
        getFacade().modifyGroup1InRequiresNew(jndiName, id);
        log.info("testKeygenStrategyFail> done");
    }
View Full Code Here

Examples of org.jboss.as.test.integration.ejb.entity.cmp.optimisticlock.interfaces.CmpEntityLocal

    /**
     * @ejb.interface-method
     */
    public void testTimestampStrategyPass(String jndiName, Integer id) throws Exception {
        log.debug("testTimestampStrategyPass> begin");
        CmpEntityLocal entity = getCmpEntityHome(jndiName).findByPrimaryKey(id);
        entity.setIntegerGroup1(new Integer(111));
        entity.setStringGroup2("modified in testTimestampStrategyPass");
        entity.getDoubleGroup1();
        log.debug("testTimestampStrategyPass> done");
    }
View Full Code Here

Examples of org.jboss.as.test.integration.ejb.entity.cmp.optimisticlock.interfaces.CmpEntityLocal

    /**
     * @ejb.interface-method
     */
    public void testTimestampStrategyFail(String jndiName, Integer id) throws Exception {
        log.debug("testTimestampStrategyFail> begin");
        CmpEntityLocal entity = getCmpEntityHome(jndiName).findByPrimaryKey(id);
        entity.setIntegerGroup1(new Integer(111));
        entity.setStringGroup2("modified in testTimestampStrategyFail");
        entity.getDoubleGroup1();
        getFacade().modifyGroup1InRequiresNew(jndiName, id);
        log.debug("testTimestampStrategyFail> done");
    }
View Full Code Here

Examples of org.jboss.as.test.integration.ejb.entity.cmp.optimisticlock.interfaces.CmpEntityLocal

    /**
     * @ejb.interface-method
     */
    public void testVersionStrategyPass(String jndiName, Integer id) throws Exception {
        log.debug("testVersionStrategyPass> begin");
        CmpEntityLocal entity = getCmpEntityHome(jndiName).findByPrimaryKey(id);
        entity.setIntegerGroup1(new Integer(111));
        entity.setStringGroup2("modified in testVersionStrategyPass");
        entity.getDoubleGroup1();
        log.debug("testVersionStrategyPass> done");
    }
View Full Code Here

Examples of org.jboss.as.test.integration.ejb.entity.cmp.optimisticlock.interfaces.CmpEntityLocal

    /**
     * @ejb.interface-method
     */
    public void testVersionStrategyFail(String jndiName, Integer id) throws Exception {
        log.debug("testVersionStrategyFail> begin");
        CmpEntityLocal entity = getCmpEntityHome(jndiName).findByPrimaryKey(id);
        entity.setIntegerGroup1(new Integer(111));
        entity.setStringGroup2("modified in testVersionStrategyFail");
        entity.getDoubleGroup1();
        getFacade().modifyGroup1InRequiresNew(jndiName, id);
        log.debug("testVersionStrategyFail> done");
    }
View Full Code Here

Examples of org.jboss.as.test.integration.ejb.entity.cmp.optimisticlock.interfaces.CmpEntityLocal

    /**
     * @ejb.interface-method
     */
    public void testGroupStrategyPass(String jndiName, Integer id) throws Exception {
        log.debug("testGroupStrategyPass> begin");
        CmpEntityLocal entity = getCmpEntityHome(jndiName).findByPrimaryKey(id);
        entity.setIntegerGroup1(new Integer(111));
        entity.setStringGroup2("modified in testGroupStrategyPass");
        entity.getDoubleGroup1();
        getFacade().modifyGroup1InRequiresNew(jndiName, id);
        log.debug("testGroupStrategyPass> done");
    }
View Full Code Here

Examples of org.jboss.as.test.integration.ejb.entity.cmp.optimisticlock.interfaces.CmpEntityLocal

    /**
     * @ejb.interface-method
     */
    public void testGroupStrategyFail(String jndiName, Integer id) throws Exception {
        log.debug("testGroupStrategyFail> begin");
        CmpEntityLocal entity = getCmpEntityHome(jndiName).findByPrimaryKey(id);
        entity.setIntegerGroup1(new Integer(111));
        entity.setStringGroup2("modified in testGroupStrategyPass");
        entity.getDoubleGroup1();
        getFacade().modifyGroup2InRequiresNew(jndiName, id);
        log.debug("testGroupStrategyFail> done");
    }
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.