コード例 #1
0
 /**
  * setAttrInvokeAccessor: generated method. Do not modify.
  *
  * @param index the index identifying the attribute
  * @param value the value to assign to the attribute
  * @param attrDef the attribute
  * @throws Exception
  */
 protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef)
     throws Exception {
   if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {
     AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);
     return;
   }
   super.setAttrInvokeAccessor(index, value, attrDef);
 }
コード例 #2
0
 /**
  * Add attribute defaulting logic in this method.
  *
  * @param attributeList list of attribute names/values to initialize the row
  */
 protected void create(AttributeList attributeList) {
   super.create(attributeList);
   SequenceImpl si = new SequenceImpl("cms_book_export_html_s", this.getDBTransaction());
   this.setExportId(si.getSequenceNumber());
 }