Package org.glassfish.ejb.deployment.descriptor

Examples of org.glassfish.ejb.deployment.descriptor.CMRFieldInfo


        // should not have accessor methods exposed.
         if (((EjbDescriptor)descriptor).getRemoteClassName() != null &&
      !((((EjbDescriptor)descriptor).getRemoteClassName()).equals(""))) {
      String interfaceType = ((EjbDescriptor)descriptor).getRemoteClassName();
      try {            
    CMRFieldInfo info = rrd.getCMRFieldInfo();
    Class remoteInterface = Class.forName(interfaceType, false, getVerifierContext().getClassLoader());
    String getMethodName = "get" + Character.toUpperCase(info.name.charAt(0)) + info.name.substring(1);       
    String setMethodName = "set" + Character.toUpperCase(info.name.charAt(0)) + info.name.substring(1);       
   
    Method getMethod = getMethod(remoteInterface, getMethodName, null);
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 descriptor, RelationRoleDescriptor role, Class c, Result result) {
    
  boolean foundIt = false;
  CMRFieldInfo info = null;
  ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();

  try {
      info  = role.getCMRFieldInfo();
        }catch (Exception e) {
View Full Code Here

    if (descriptor != null)
    {
      PersistenceDescriptor persistenceDescriptor =
        descriptor.getPersistenceDescriptor();
      CMRFieldInfo cmrf =
        persistenceDescriptor.getCMRFieldInfoByName(ejbFieldName);
     
      return cmrf.role.getPartner().getOwner();
    }
View Full Code Here

TOP

Related Classes of org.glassfish.ejb.deployment.descriptor.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.