Esempio n. 1
0
 /**
  * Return new instance of VO with basic properties set.
  *
  * @param id ID of VO
  * @param name name of VO
  * @param shortName shortName of VO
  * @return Vo object
  */
 public static final Vo createNew(int id, String name, String shortName) {
   Vo vo = new JSONObject().getJavaScriptObject().cast();
   vo.setId(id);
   vo.setName(name);
   vo.setShortName(shortName);
   vo.setObjectType("Vo");
   return vo;
 }
Esempio n. 2
0
 /**
  * Compares to another object
  *
  * @param o Object to compare
  * @return true, if they are the same
  */
 public final boolean equals(Vo o) {
   return o.getId() == this.getId();
 }