Package com.sun.enterprise.deployment

Examples of com.sun.enterprise.deployment.CMRFieldInfo


        (getClass().getName() + ".failed2",
                    "Error : CMR field [ {0} ]  cmr-field-type must be defined for one-to-many or many-to-many relationships and the value of the cmr-field-type element must be either: java.util.Collection or java.util.Set",
              new Object[] {rrd.getCMRField()}));               
                return false;
            } else {
                CMRFieldInfo info = rrd.getCMRFieldInfo();
                if (rrd.getCMRFieldType().equals(info.type.getName())) {
                    result.addGoodDetails(smh.getLocalString
            (getClass().getName() + ".passed",
                        "CMR field [ {0} ] is the same type as declared in the deployment descriptors [ {1} ]",
                      new Object[] {info.name, info.role.getCMRFieldType()}));               
View Full Code Here


     * @return true if the test passed
     */           
    protected boolean runIndividualCmrTest(Descriptor entity, RelationRoleDescriptor rrd, Class c, Result result) {
  boolean oneFailed = false;
  ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();
      CMRFieldInfo info = rrd.getCMRFieldInfo();
      if (info == null) {
     addErrorDetails(result, compName);
    result.addErrorDetails(smh.getLocalString
                ("com.sun.enterprise.tools.verifier.tests.ejb.entity.cmp2.CMPTest.isAccessorDeclared.failed1",
                            "Error : no CMR Field  declared ",
View Full Code Here

        (getClass().getName() + ".failed2",
                    "Error : CMR field [ {0} ]  cmr-field-type must be defined for one-to-many or many-to-many relationships and the value of the cmr-field-type element must be either: java.util.Collection or java.util.Set",
              new Object[] {rrd.getCMRField()}));               
                return false;
            } else {
                CMRFieldInfo info = rrd.getCMRFieldInfo();
                if (rrd.getCMRFieldType().equals(info.type.getName())) {
                    result.addGoodDetails(smh.getLocalString
            (getClass().getName() + ".passed",
                        "CMR field [ {0} ] is the same type as declared in the deployment descriptors [ {1} ]",
                      new Object[] {info.name, info.role.getCMRFieldType()}));               
View Full Code Here

     * @return true if the test passed
     */           
    protected boolean runIndividualCmrTest(Descriptor entity, RelationRoleDescriptor rrd, Class c, Result result) {
  boolean oneFailed = false;
  ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();
      CMRFieldInfo info = rrd.getCMRFieldInfo();
      if (info == null) {
     addErrorDetails(result, compName);
    result.addErrorDetails(smh.getLocalString
                ("com.sun.enterprise.tools.verifier.tests.ejb.entity.cmp2.CMPTest.isAccessorDeclared.failed1",
                            "Error : no CMR Field  declared ",
View Full Code Here

TOP

Related Classes of com.sun.enterprise.deployment.CMRFieldInfo

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.