Package org.openbravo.base.structure

Examples of org.openbravo.base.structure.Identifiable


   * @param id
   *          the id to set in the instance
   */
  public Object instantiate(Serializable id) {
    if (mappedClass != null) {
      final Identifiable obObject = (Identifiable) OBProvider.getInstance().get(mappedClass);
      obObject.setId(id);
      Check.isTrue(obObject.getEntityName().equals(entityName),
          "Entityname of instantiated object " + obObject.getEntityName()
              + " and expected entityName: " + entityName + " is different.");
      return obObject;
    } else {
      final DynamicOBObject dob = new DynamicOBObject();
      dob.setEntityName(entityName);
View Full Code Here

TOP

Related Classes of org.openbravo.base.structure.Identifiable

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.