Package org.openbravo.base.util

Examples of org.openbravo.base.util.ArgumentException


      return ((HibernateProxy) o).getHibernateLazyInitializer().getIdentifier();
    }
    if (o instanceof BaseOBObject) {
      return (Serializable) ((BaseOBObject) o).getId();
    }
    throw new ArgumentException("Argument is not a BaseOBObject and not a HibernateProxy "
        + (o != null ? o.getClass().getName() : "it is NULL"));
  }
View Full Code Here


        return (Serializable) ((BaseOBObject) referedObject).getId();
    } else if (referedObject instanceof BaseOBObject) {
      return (Serializable) ((BaseOBObject) referedObject).get(referencedProperty.getName());
    }

    throw new ArgumentException("Argument is not a BaseOBObject and not a HibernateProxy");
  }
View Full Code Here

TOP

Related Classes of org.openbravo.base.util.ArgumentException

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.