Examples of IASEjbCMPEntityDescriptor


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

     * @param ejbName The value of the ejb-name element for a bean.
     * @return <code>true</code> to apply the default unknown PK Class Strategy,
     * <code>false</code> otherwise
     */
    public boolean applyDefaultUnknownPKClassStrategy(String ejbName) {
        IASEjbCMPEntityDescriptor ejbDesc =
                (IASEjbCMPEntityDescriptor)ejbDescMap.get(ejbName);
        String keyClassName = ejbDesc.getPrimaryKeyClassName();
        return keyClassName != null &&
                keyClassName.equals(Object.class.getName());
    }
View Full Code Here

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

    {
      Object next = iterator.next();

      if (next instanceof IASEjbCMPEntityDescriptor)
      {
        IASEjbCMPEntityDescriptor descriptor =
          (IASEjbCMPEntityDescriptor)next;
        String ejbName = descriptor.getName();

        ejbMap.put(ejbName, descriptor);
        safePut(persistenceClassMap,
          getPersistenceClassForDescriptor(descriptor), ejbName);
        safeAdd(localNames, descriptor.getLocalClassName());
        safeAdd(remoteNames, descriptor.getRemoteClassName());
        safePut(abstractSchemaMap,
          descriptor.getAbstractSchemaName(), ejbName);
      }
    }
    _nameTypeToNameMap.put(EJB_NAME, ejbMap);
    _nameTypeToNameMap.put(PERSISTENCE_NAME, persistenceClassMap);
    _nameTypeToNameMap.put(LOCAL_NAME, localNames);
View Full Code Here

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

   * @param name the name of the ejb
   * @return the name of the concrete bean for the specified ejb
   */
  public String getConcreteBeanClassForEjbName (String name)
  {
    IASEjbCMPEntityDescriptor descriptor =
      getIASDescriptorForEjbName(name);

    return ((descriptor != null) ? getQualifiedName(
      getAbstractBeanClassForEjbName(name),
      descriptor.getConcreteImplClassName()) : null);
  }
View Full Code Here

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

   * Reads all known methods and sorts them by name into specific
   * Collections for further processing.
   */
  protected void categorizeMethods ()
  {
    IASEjbCMPEntityDescriptor cmpDescriptor =
      (IASEjbCMPEntityDescriptor)getDescriptor();

    super.categorizeMethods();

    // replace the finders and selectors with ias specific info
    setFinders(getListForCollection(cmpDescriptor.getFinders()));
    setSelectors(getListForCollection(cmpDescriptor.getSelectors()));
  }
View Full Code Here

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

    boolean enabled = true;
    QueryDescriptor queryDescriptor = getQueryDescriptor(method);

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

      if (pdDescriptor != null)
      {
        MethodDescriptor methodDescriptor =
          queryDescriptor.getQueryMethodDescriptor();
View Full Code Here

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

        }


  private IASEjbCMPFinder getFinder (Method method)
  {
    IASEjbCMPEntityDescriptor cmpDescriptor =
      (IASEjbCMPEntityDescriptor)getDescriptor();
    IASEjbCMPFinder finder = cmpDescriptor.getIASEjbCMPFinder(method);

    if (finder == null) {
      String methodSignature = cmpDescriptor.getName() + '.' +
        method.getName() +
        JavaClassWriterHelper.parenleft_ +
        JavaClassWriterHelper.getParameterTypesList(method) +
        JavaClassWriterHelper.parenright_ ;
      String msg = I18NHelper.getMessage(messages,
View Full Code Here

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

     * fields already parsed.
     */
    private EjbCMPEntityDescriptor getCMPEntityDescriptor() {
        EjbDescriptor current = getEjbDescriptor();
        if (!(current instanceof EjbCMPEntityDescriptor)) {
            descriptor = new IASEjbCMPEntityDescriptor(current);
        }
        return (EjbCMPEntityDescriptor) descriptor;
    }
View Full Code Here

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

     * fields already parsed.
     */
    private EjbCMPEntityDescriptor getCMPEntityDescriptor() {
        EjbDescriptor current = getEjbDescriptor();
        if (!(current instanceof EjbCMPEntityDescriptor)) {
            descriptor = new IASEjbCMPEntityDescriptor(current);
        }
        return (EjbCMPEntityDescriptor) descriptor;
    }
View Full Code Here

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

                    }
   
                    if ( desc instanceof IASEjbCMPEntityDescriptor) {
   
                        // generate concrete CMP class implementation
                        IASEjbCMPEntityDescriptor entd =
                                (IASEjbCMPEntityDescriptor)desc;
   
                        if (_logger.isLoggable(Logger.FINE)) {
                            _logger.fine(
                                    "[CMPC] Home Object Impl name  is " //NOI18N
                                    + entd.getLocalHomeImplClassName());
                        }
   
                        // The classloader needs to be set else we fail down the road.
                        ClassLoader ocl = entd.getClassLoader();
                        entd.setClassLoader(jcl);
                   
                        try {
                            gen.generate(entd, stubsDir, stubsDir);
                        } catch (GeneratorException e) {
                            String msg = e.getMessage();
                            _logger.warning(msg);
                            generatorExceptionMsg = addGeneratorExceptionMessage(
                                    msg, generatorExceptionMsg);
                        finally {
                            entd.setClassLoader(ocl);
                        }

                    /* WARNING: IASRI 4683195
                     * JDO Code failed when there was a relationship involved
                     * because it depends upon the orginal ejbclasname and hence
View Full Code Here

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

     * fields already parsed.
     */
    private EjbCMPEntityDescriptor getCMPEntityDescriptor() {
        EjbDescriptor current = getEjbDescriptor();
        if (!(current instanceof EjbCMPEntityDescriptor)) {
            descriptor = new IASEjbCMPEntityDescriptor(current);
        }
        return (EjbCMPEntityDescriptor) descriptor;
    }
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.