Package com.sourcetap.sfa.ui

Examples of com.sourcetap.sfa.ui.UIScreenSectionEntity


      Iterator uiScreenSectionEntityI = uiScreenSection.getUiScreenSectionEntityList()
                                .iterator();
      uiScreenSectionEntityI.next(); // Pass up the primary entity.
 
      while (uiScreenSectionEntityI.hasNext()) {
        UIScreenSectionEntity uiScreenSectionEntity = (UIScreenSectionEntity) uiScreenSectionEntityI.next();
        relatedSearchClauses.add(uiScreenSectionEntity);
      }
 
      uiScreenSectionEntityI = null; // Reset the iterator.
 
View Full Code Here


    Iterator uiScreenSectionEntityI = uiWebScreenSection.getUiScreenSectionEntityList()
                              .iterator();
    uiScreenSectionEntityI.next(); // Pass up the primary entity.

    while (uiScreenSectionEntityI.hasNext()) {
      UIScreenSectionEntity uiScreenSectionEntity = (UIScreenSectionEntity) uiScreenSectionEntityI.next();
     
      relatedSearchClauses.add(uiScreenSectionEntity);
    }

    uiScreenSectionEntityI = null; // Reset the iterator.




        switch (retrieveMethod) {
        case GenericEventProcessor.RETRIEVE_METHOD_ALL:

            // Find all entities of this type.
            // Don't need to populate the fields map.
            break;

        case GenericEventProcessor.RETRIEVE_METHOD_AND:

            // Find the main entity(ies) by building a WHERE clause using "=" and AND.
            throw new GenericEntityException(
                "RETRIEVE_METHOD_AND not implemented yet.");

        case GenericEventProcessor.RETRIEVE_METHOD_CLAUSE:

            if (TIMER) {
                timer.timerString(1,
                    "[GenericWebEventProcessor.processRetrieve] Start RETRIEVE_METHOD_CLAUSE");
            }

      HashMap joinedEntities = new HashMap();
     
      joinedEntities.put(primaryEntityName, "Y");
     
            // Find the main entity(ies) by building a WHERE clause using LIKE and AND, with one or more tables in the FROM clause.
            // First join all secondary screen section entities in the WHERE and FROM clauses in case
            // we are going to use query values from them.
            Iterator relatedClauseI = relatedSearchClauses.iterator();

            while (relatedClauseI.hasNext()) {
                UIScreenSectionEntity uiScreenSectionEntity = (UIScreenSectionEntity) relatedClauseI.next();
                String relationTitle = uiScreenSectionEntity.getRelationTitle();
                String relatedEntityName = uiScreenSectionEntity.getUiEntity().getEntityName();
        boolean isOuterJoin = uiScreenSectionEntity.getIsOuterJoined();
        String relatedAndFields = uiScreenSectionEntity.getRelationByAndFields();

                Debug.logVerbose("Adding relation clauses for " +
                        relationTitle + "/" + relatedEntityName, module);

                eventProcessor.addOneRelationClause(delegator, relationTitle, relatedAndFields,
View Full Code Here

            // Loop through the relations to get related entities.
            int entityCount = 0;
            Iterator relatedSearchClauseI = relatedSearchClauses.iterator();

            while (relatedSearchClauseI.hasNext()) {
                UIScreenSectionEntity relatedSearchClause = (UIScreenSectionEntity) relatedSearchClauseI.next();
                entityCount++;

                String relationRelEntityName = relatedSearchClause.getEntityName();

                if (TIMER) {
                    timer.timerString(2,
                        "[GenericEventProcessor.retrieve] Start appending related entity " +
                        String.valueOf(entityCount) + " (" +
View Full Code Here

TOP

Related Classes of com.sourcetap.sfa.ui.UIScreenSectionEntity

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.