Package org.dmlite.model.id

Examples of org.dmlite.model.id.Oid


  }

  public Topic getTopic() {
    if (topic == null) {
      Topics topics = (Topics) getDomainModel().getEntry("Topics");
      topic = (Topic) topics.retrieveByOid(new Oid(topicOid));
    }
    return topic;
  }
View Full Code Here


  public void setTopicOid(Long topicOid) {
    this.topicOid = topicOid;
    if (topicOid != null) {
      Topics topics = (Topics) getDomainModel().getEntry("Topics");
      topic = (Topic) topics.retrieveByOid(new Oid(topicOid));
    }
  }
View Full Code Here

  public Interest getInterest(Oid oid) {
    return (Interest) retrieveByOid(oid);
  }

  public Interest getInterest(Long oidUniqueNumber) {
    return getInterest(new Oid(oidUniqueNumber));
  }
View Full Code Here

      if (!preAdd(entity)) {
        return false;
      }

      if (entity.getOid() == null) {
        Oid oid = new Oid();
        entity.setOid(oid);
      }

      IDomainModel domainModel = getDomainModel();
      if (domainModel != null) {
View Full Code Here

   * @param oidUniqueNumber
   *            oid unique number
   * @return applicant
   */
  public Applicant getApplicant(long oidUniqueNumber) {
    Oid oid = new Oid(new Long(oidUniqueNumber));
    Applicant applicant = (Applicant) retrieveByOid(oid);
    return applicant;
  }
View Full Code Here

   *            domain model
   */
  public Entity(IDomainModel domainModel) {
    this.domainModel = domainModel;
    setConceptConfig();
    setOid(new Oid());
  }
View Full Code Here

   *            property value
   */
  public void setProperty(String propertyCode, Object propertyValue) {
    try {
      if (propertyCode.equals("oid")) {
        Oid oid = (Oid) propertyValue;
        setOid(oid);
      } else if (propertyCode.equals("code")) {
        String code = (String) propertyValue;
        setCode(code);
      } else {
View Full Code Here

TOP

Related Classes of org.dmlite.model.id.Oid

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.