Examples of IEntities


Examples of org.dmlite.model.IEntities

   * @throws dmLite
   *             order exception if there is a problem
   */
  public IEntities createEntities(String entitiesClassName)
      throws DmException {
    IEntities entities = null;
    try {
      Class entitiesClass = Reflector.getClass(entitiesClassName);
      Constructor constructor = Reflector.getConstructor(entitiesClass,
          IDomainModel.class);
      Object object = Reflector.getInstance(constructor, domainModel);
View Full Code Here

Examples of org.dmlite.model.IEntities

   *
   * @param entity
   *            entity
   */
  public IEntities getEntry(IEntity entity) {
    IEntities entry = null;
    try {
      if (entity.getConceptConfig().isEntry()) {
        entry = domainModel.getEntry(entity.getConceptConfig()
            .getCode());
      } else {
View Full Code Here

Examples of org.dmlite.model.IEntities

   *
   * @param entities
   *            entities
   */
  public IEntities getEntry(IEntities entities) {
    IEntities entry = null;
    try {
      if (entities.getConceptConfig().isEntry()) {
        entry = (IEntities) domainModel.getEntry(entities
            .getConceptConfig().getCode());
      } else {
View Full Code Here

Examples of org.dmlite.model.IEntities

    boolean validProperty = true;
    try {
      if (propertyConfig.isValidateType()) {
        String validationType = propertyConfig.getValidationType();
        if (validationType != null && property != null) {
          IEntities validationTypeEntities = domainModel
              .getEntry(validationType);
          if (validationTypeEntities != null) {
            String propertyValue = Transformer.string(property);
            if (propertyValue != null
                && !validationTypeEntities
                    .containCode(propertyValue)) {
              validProperty = false;
              addPropertyTypeError(entities, entity,
                  propertyConfig);
            }
View Full Code Here

Examples of org.dmlite.model.IEntities

  public ConceptListPanel(final ModelContext modelContext,
      final ViewContext viewContext) {
    super(modelContext, viewContext);
    try {
      ModelContext conceptsModelContext = new ModelContext(modelContext);
      IEntities concepts = conceptsModelContext.getEntities();
      if (concepts != null) {
        ViewContext conceptsViewContext = new ViewContext(viewContext);
        conceptsViewContext.setWicketId("conceptList");
        ConceptList conceptList = new ConceptList(conceptsModelContext,
            conceptsViewContext);
View Full Code Here

Examples of org.dmlite.model.IEntities

   *            neighbor configuration
   * @return child entities
   */
  private IEntities executeGetChildEntitiesMethod(IEntity entity,
      NeighborConfig neighborConfig) {
    IEntities neighborValue = null;
    try {
      if (neighborConfig.getType().equals("child")) {
        neighborValue = (IEntities) executeGetNeighborMethod(entity,
            neighborConfig);
      }
View Full Code Here

Examples of org.dmlite.model.IEntities

            if (property != null) {
              output(property, property.getClass()
                  .getSimpleName());
            }
          } else {
            IEntities property = (IEntities) Reflector.getField(
                entity, neigborProperty);
            if (property != null) {
              output(property, property.getClass()
                  .getSimpleName());
            }
          }
        }
      }
View Full Code Here

Examples of org.dmlite.model.IEntities

      if (viewContext.isUpdate()) {
        actionType = "update";
      } else {
        actionType = "display";
      }
      IEntities entities = modelContext.getEntities();
      String entitySmallName = entities.getConceptConfig()
          .getSmallConceptCode();
      String className = App.PACKAGE_VIEW_COMPONENT_PREFIX + "."
          + entitySmallName + "." + actionType + "."
          + classSimpleName;
      result = getClass(className);
View Full Code Here

Examples of org.dmlite.model.IEntities

      if (viewContext.isUpdate()) {
        actionType = "update";
      } else {
        actionType = "display";
      }
      IEntities entities = modelContext.getEntities();
      String entitySmallName;
      IEntities lookupEntities = modelContext.getLookupEntities();
      if (lookupEntities != null) {
        entitySmallName = lookupEntities.getConceptConfig()
            .getSmallConceptCode();
      } else {
        entitySmallName = entities.getConceptConfig()
            .getSmallConceptCode();
      }
View Full Code Here

Examples of org.dmlite.model.IEntities

      if (viewContext.isUpdate()) {
        actionType = "update";
      } else {
        actionType = "display";
      }
      IEntities entities = modelContext.getEntities();
      String entitySmallName = entities.getConceptConfig()
          .getSmallConceptCode();
      String className = App.PACKAGE_VIEW_COMPONENT_PREFIX + "."
          + entitySmallName + "." + actionType + "."
          + classSimpleName;
      Class claz = getClass(className);
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.