Package org.dmlite.model

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


   *
   * @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

   *
   * @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

    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

  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

   *            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

            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

      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

      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

      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

Related Classes of org.dmlite.model.IEntities

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.