Package org.glassfish.ejb.deployment.descriptor.runtime

Examples of org.glassfish.ejb.deployment.descriptor.runtime.PrefetchDisabledDescriptor


    if (queryDescriptor != null)
    {
      IASEjbCMPEntityDescriptor cmpDescriptor =
        (IASEjbCMPEntityDescriptor)getDescriptor();
      PrefetchDisabledDescriptor pdDescriptor =
        cmpDescriptor.getPrefetchDisabledDescriptor();

      if (pdDescriptor != null)
      {
        MethodDescriptor methodDescriptor =
          queryDescriptor.getQueryMethodDescriptor();

        enabled = !pdDescriptor.isPrefetchDisabledFor(
          methodDescriptor);
      }
    }

    return enabled;
View Full Code Here


    }

    @Override
    public PrefetchDisabledDescriptor getDescriptor() {
        if (descriptor==null) {
            descriptor = new PrefetchDisabledDescriptor();
            Object parentDesc = getParentNode().getDescriptor();
            if (parentDesc instanceof EjbDescriptor) {
                descriptor.setEjbDescriptor((EjbDescriptor)parentDesc);
            }
        }
View Full Code Here

                fn.writeDescriptor(findersNode, RuntimeTagNames.FINDER, aFinder);
            }
        }

        // prefetch-disabled
        PrefetchDisabledDescriptor prefetchDisabledDesc =  ejbDescriptor.getPrefetchDisabledDescriptor();
        if (prefetchDisabledDesc != null) {
            PrefetchDisabledNode prefetchDisabledNode = new PrefetchDisabledNode();
            prefetchDisabledNode.writeDescriptor(cmpNode,
                RuntimeTagNames.PREFETCH_DISABLED, prefetchDisabledDesc);
        }
View Full Code Here

TOP

Related Classes of org.glassfish.ejb.deployment.descriptor.runtime.PrefetchDisabledDescriptor

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.