Package org.dmlite.model.persistent

Examples of org.dmlite.model.persistent.IPersistentEntities


                      .getEntries();
                  for (IEntities entry : entries) {
                    String entryCode = entry
                        .getConceptConfig()
                        .getEntitiesCode();
                    IPersistentEntities persistentEntities = getPersistentEntry(entryCode);
                    persistentEntities.save();
                  }
                }
              } else if (arg instanceof EntitiesAction) {
                EntitiesAction action = (EntitiesAction) arg;
                String actionName = action.getName();
                IEntities entities = action.getEntities();
                if (actionName.equals("add")
                    || actionName.equals("remove")
                    || actionName.equals("update")) {
                  IEntities entry = domainModel
                      .getModelMeta().getEntry(entities);
                  if (entry != null) {
                    String entryCode = entry
                        .getConceptConfig()
                        .getEntitiesCode();
                    IPersistentEntities persistentEntities = getPersistentEntry(entryCode);
                    persistentEntities.save();
                  }
                }
              }
            } else if (arg instanceof EntitiesAction) {
              EntitiesAction action = (EntitiesAction) arg;
              String actionName = action.getName();
              IEntities entities = action.getEntities();
              if (actionName.equals("add")
                  || actionName.equals("remove")
                  || actionName.equals("update")) {
                IEntities entry = domainModel.getModelMeta()
                    .getEntry(entities);
                if (entry != null) {
                  String entryCode = entry.getConceptConfig()
                      .getEntitiesCode();
                  IPersistentEntities persistentEntities = getPersistentEntry(entryCode);
                  persistentEntities.save();
                }
              }
            }
          }
        }
View Full Code Here


          NeighborConfig neighborConfig = conceptConfig
              .getNeighborsConfig().getNeighborConfig(
                  neighborCode);
          String neighborConceptCode = neighborConfig
              .getDestination();
          IPersistentEntities persistentEntities = app.getDbContext()
              .getPersistentModel().getPersistentEntry(
                  neighborConceptCode);
          IOrderedEntities lookupEntities = null;
          if (persistentEntities != null) {
            lookupEntities = (IOrderedEntities) persistentEntities
                .getEntities();
          }
          if (lookupEntities != null) {
            ModelContext neighborModelContext = new ModelContext(
                modelContext);
View Full Code Here

              .getNeighborsConfig().getNeighborConfig(
                  neighborCode);
          String neighborConceptCode = neighborConfig
              .getDestination();
          App app = (App) getApplication();
          IPersistentEntities persistentEntities = app.getDbContext()
              .getPersistentModel().getPersistentEntry(
                  neighborConceptCode);
          IOrderedEntities neighborEntities = null;
          if (persistentEntities != null) {
            neighborEntities = (IOrderedEntities) persistentEntities
                .getEntities();
          }
          if (neighborEntities != null) {
            Long referenceOid = (Long) entity
                .getProperty(propertyCode);
View Full Code Here

        String neighborCode = propertyConfig.getReferenceNeighbor();
        NeighborConfig neighborConfig = entity.getConceptConfig()
            .getNeighborsConfig().getNeighborConfig(neighborCode);
        String neighborConceptCode = neighborConfig.getDestination();
        App app = (App) getApplication();
        IPersistentEntities persistentEntities = app.getDbContext()
            .getPersistentModel().getPersistentEntry(
                neighborConceptCode);
        IOrderedEntities neighborEntities = null;
        if (persistentEntities != null) {
          neighborEntities = (IOrderedEntities) persistentEntities
              .getEntities();
        }
        if (neighborEntities != null) {
          Long referenceOid = (Long) entity.getProperty(propertyCode);
          Oid neighborParentOid = new Oid(referenceOid);
View Full Code Here

TOP

Related Classes of org.dmlite.model.persistent.IPersistentEntities

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.