Ejemplo n.º 1
0
// ---------------------------------------------------------------------
// ---    File generated by Oracle ADF Business Components Design Time.
// ---    Mon Apr 14 14:34:24 CST 2014
// ---    Custom code may be added to this class.
// ---    Warning: Do not modify method signatures of generated methods.
// ---------------------------------------------------------------------
public class CmsElecProdVORowImpl extends ViewRowImpl {
  /** AttributesEnum: generated enum for identifying attributes and accessors. Do not modify. */
  public enum AttributesEnum {
    ElecProdId {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getElecProdId();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setElecProdId((Number) value);
      }
    },
    DocId {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getDocId();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setDocId((Number) value);
      }
    },
    ElecProdName {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getElecProdName();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setElecProdName((String) value);
      }
    },
    Isbn {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getIsbn();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setIsbn((String) value);
      }
    },
    LastUpdateDate {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getLastUpdateDate();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setLastUpdateDate((Date) value);
      }
    },
    TimeLength {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getTimeLength();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setTimeLength((String) value);
      }
    },
    PubTime {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getPubTime();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setPubTime((Date) value);
      }
    },
    AssortBook {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getAssortBook();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setAssortBook((String) value);
      }
    },
    Status {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getStatus();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setStatus((String) value);
      }
    },
    LibCode {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getLibCode();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setLibCode((String) value);
      }
    },
    Checked {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getChecked();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setChecked((Boolean) value);
      }
    },
    CategoryId {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getCategoryId();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setCategoryId((Number) value);
      }
    },
    CategoryGroupType {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getCategoryGroupType();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setCategoryGroupType((String) value);
      }
    },
    DeleteFlag {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getDeleteFlag();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setDeleteFlag((String) value);
      }
    },
    ThumbnailUrl {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getThumbnailUrl();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setThumbnailUrl((String) value);
      }
    },
    Keyword {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getKeyword();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setKeyword((String) value);
      }
    },
    ItemCode {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getItemCode();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setItemCode((String) value);
      }
    },
    CompCode {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getCompCode();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setCompCode((String) value);
      }
    },
    SyncFlag {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getSyncFlag();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setSyncFlag((String) value);
      }
    },
    PublishingHouse {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getPublishingHouse();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setPublishingHouse((String) value);
      }
    },
    Lang {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getLang();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setLang((String) value);
      }
    },
    CarrierType {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getCarrierType();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setCarrierType((String) value);
      }
    },
    Amount {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getAmount();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setAmount((Number) value);
      }
    },
    DiskDesign {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getDiskDesign();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setDiskDesign((String) value);
      }
    },
    Editor {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getEditor();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setEditor((String) value);
      }
    },
    TextEditor {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getTextEditor();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setTextEditor((String) value);
      }
    },
    Producer {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getProducer();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setProducer((String) value);
      }
    },
    ContentDesc {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getContentDesc();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setContentDesc((String) value);
      }
    },
    Remarks {
      public Object get(CmsElecProdVORowImpl obj) {
        return obj.getRemarks();
      }

      public void put(CmsElecProdVORowImpl obj, Object value) {
        obj.setRemarks((String) value);
      }
    };
    private static AttributesEnum[] vals = null;
    private static int firstIndex = 0;

    public abstract Object get(CmsElecProdVORowImpl object);

    public abstract void put(CmsElecProdVORowImpl object, Object value);

    public int index() {
      return AttributesEnum.firstIndex() + ordinal();
    }

    public static int firstIndex() {
      return firstIndex;
    }

    public static int count() {
      return AttributesEnum.firstIndex() + AttributesEnum.staticValues().length;
    }

    public static AttributesEnum[] staticValues() {
      if (vals == null) {
        vals = AttributesEnum.values();
      }
      return vals;
    }
  }

  public static final int ELECPRODID = AttributesEnum.ElecProdId.index();
  public static final int DOCID = AttributesEnum.DocId.index();
  public static final int ELECPRODNAME = AttributesEnum.ElecProdName.index();
  public static final int ISBN = AttributesEnum.Isbn.index();
  public static final int LASTUPDATEDATE = AttributesEnum.LastUpdateDate.index();
  public static final int TIMELENGTH = AttributesEnum.TimeLength.index();
  public static final int PUBTIME = AttributesEnum.PubTime.index();
  public static final int ASSORTBOOK = AttributesEnum.AssortBook.index();
  public static final int STATUS = AttributesEnum.Status.index();
  public static final int LIBCODE = AttributesEnum.LibCode.index();
  public static final int CHECKED = AttributesEnum.Checked.index();
  public static final int CATEGORYID = AttributesEnum.CategoryId.index();
  public static final int CATEGORYGROUPTYPE = AttributesEnum.CategoryGroupType.index();
  public static final int DELETEFLAG = AttributesEnum.DeleteFlag.index();
  public static final int THUMBNAILURL = AttributesEnum.ThumbnailUrl.index();
  public static final int KEYWORD = AttributesEnum.Keyword.index();
  public static final int ITEMCODE = AttributesEnum.ItemCode.index();
  public static final int COMPCODE = AttributesEnum.CompCode.index();
  public static final int SYNCFLAG = AttributesEnum.SyncFlag.index();
  public static final int PUBLISHINGHOUSE = AttributesEnum.PublishingHouse.index();
  public static final int LANG = AttributesEnum.Lang.index();
  public static final int CARRIERTYPE = AttributesEnum.CarrierType.index();
  public static final int AMOUNT = AttributesEnum.Amount.index();
  public static final int DISKDESIGN = AttributesEnum.DiskDesign.index();
  public static final int EDITOR = AttributesEnum.Editor.index();
  public static final int TEXTEDITOR = AttributesEnum.TextEditor.index();
  public static final int PRODUCER = AttributesEnum.Producer.index();
  public static final int CONTENTDESC = AttributesEnum.ContentDesc.index();
  public static final int REMARKS = AttributesEnum.Remarks.index();

  /** This is the default constructor (do not remove). */
  public CmsElecProdVORowImpl() {}

  /**
   * Gets the attribute value for the calculated attribute ElecProdId.
   *
   * @return the ElecProdId
   */
  public Number getElecProdId() {
    return (Number) getAttributeInternal(ELECPRODID);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute ElecProdId.
   *
   * @param value value to set the ElecProdId
   */
  public void setElecProdId(Number value) {
    setAttributeInternal(ELECPRODID, value);
  }

  /**
   * Gets the attribute value for the calculated attribute DocId.
   *
   * @return the DocId
   */
  public Number getDocId() {
    return (Number) getAttributeInternal(DOCID);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute DocId.
   *
   * @param value value to set the DocId
   */
  public void setDocId(Number value) {
    setAttributeInternal(DOCID, value);
  }

  /**
   * Gets the attribute value for the calculated attribute ElecProdName.
   *
   * @return the ElecProdName
   */
  public String getElecProdName() {
    return (String) getAttributeInternal(ELECPRODNAME);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute ElecProdName.
   *
   * @param value value to set the ElecProdName
   */
  public void setElecProdName(String value) {
    setAttributeInternal(ELECPRODNAME, value);
  }

  /**
   * Gets the attribute value for the calculated attribute Isbn.
   *
   * @return the Isbn
   */
  public String getIsbn() {
    return (String) getAttributeInternal(ISBN);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute Isbn.
   *
   * @param value value to set the Isbn
   */
  public void setIsbn(String value) {
    setAttributeInternal(ISBN, value);
  }

  /**
   * Gets the attribute value for the calculated attribute LastUpdateDate.
   *
   * @return the LastUpdateDate
   */
  public Date getLastUpdateDate() {
    return (Date) getAttributeInternal(LASTUPDATEDATE);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute LastUpdateDate.
   *
   * @param value value to set the LastUpdateDate
   */
  public void setLastUpdateDate(Date value) {
    setAttributeInternal(LASTUPDATEDATE, value);
  }

  /**
   * Gets the attribute value for the calculated attribute TimeLength.
   *
   * @return the TimeLength
   */
  public String getTimeLength() {
    return (String) getAttributeInternal(TIMELENGTH);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute TimeLength.
   *
   * @param value value to set the TimeLength
   */
  public void setTimeLength(String value) {
    setAttributeInternal(TIMELENGTH, value);
  }

  /**
   * Gets the attribute value for the calculated attribute PubTime.
   *
   * @return the PubTime
   */
  public Date getPubTime() {
    return (Date) getAttributeInternal(PUBTIME);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute PubTime.
   *
   * @param value value to set the PubTime
   */
  public void setPubTime(Date value) {
    setAttributeInternal(PUBTIME, value);
  }

  /**
   * Gets the attribute value for the calculated attribute AssortBook.
   *
   * @return the AssortBook
   */
  public String getAssortBook() {
    return (String) getAttributeInternal(ASSORTBOOK);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute AssortBook.
   *
   * @param value value to set the AssortBook
   */
  public void setAssortBook(String value) {
    setAttributeInternal(ASSORTBOOK, value);
  }

  /**
   * Gets the attribute value for the calculated attribute Status.
   *
   * @return the Status
   */
  public String getStatus() {
    return (String) getAttributeInternal(STATUS);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute Status.
   *
   * @param value value to set the Status
   */
  public void setStatus(String value) {
    setAttributeInternal(STATUS, value);
  }

  /**
   * Gets the attribute value for the calculated attribute LibCode.
   *
   * @return the LibCode
   */
  public String getLibCode() {
    return (String) getAttributeInternal(LIBCODE);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute LibCode.
   *
   * @param value value to set the LibCode
   */
  public void setLibCode(String value) {
    setAttributeInternal(LIBCODE, value);
  }

  /**
   * Gets the attribute value for the calculated attribute Checked.
   *
   * @return the Checked
   */
  public Boolean getChecked() {
    Boolean result = null;
    Hashtable map = this.getDBTransaction().getSession().getUserData();
    String status = null;
    if ("Y".equals(this.getDeleteFlag())) {
      status = "DELETED_" + this.getLibCode();
    } else {
      status = this.getStatus();
    }
    String selectAllFlag = (String) map.get(status + "_selectAllFlag");
    String key = status + "_" + this.getDocId();
    List<String> currSelectedList = (List<String>) map.get(status + "_currSelected");
    if ("O".equals(selectAllFlag)) {
      if (currSelectedList.contains(key)) {
        result = true;
      } else {
        result = false;
      }
    } else {
      if ("Y".equals(selectAllFlag)) {
        result = true;
      } else if ("N".equals(selectAllFlag)) {
        result = false;
      }
    }
    this.setChecked(result);
    return (Boolean) getAttributeInternal(CHECKED);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute Checked.
   *
   * @param value value to set the Checked
   */
  public void setChecked(Boolean value) {
    setAttributeInternal(CHECKED, value);
  }

  /**
   * Gets the attribute value for the calculated attribute CategoryId.
   *
   * @return the CategoryId
   */
  public Number getCategoryId() {
    return (Number) getAttributeInternal(CATEGORYID);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute CategoryId.
   *
   * @param value value to set the CategoryId
   */
  public void setCategoryId(Number value) {
    setAttributeInternal(CATEGORYID, value);
  }

  /**
   * Gets the attribute value for the calculated attribute CategoryGroupType.
   *
   * @return the CategoryGroupType
   */
  public String getCategoryGroupType() {
    return (String) getAttributeInternal(CATEGORYGROUPTYPE);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute CategoryGroupType.
   *
   * @param value value to set the CategoryGroupType
   */
  public void setCategoryGroupType(String value) {
    setAttributeInternal(CATEGORYGROUPTYPE, value);
  }

  /**
   * Gets the attribute value for the calculated attribute DeleteFlag.
   *
   * @return the DeleteFlag
   */
  public String getDeleteFlag() {
    return (String) getAttributeInternal(DELETEFLAG);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute DeleteFlag.
   *
   * @param value value to set the DeleteFlag
   */
  public void setDeleteFlag(String value) {
    setAttributeInternal(DELETEFLAG, value);
  }

  /**
   * Gets the attribute value for the calculated attribute ThumbnailUrl.
   *
   * @return the ThumbnailUrl
   */
  public String getThumbnailUrl() {
    return (String) getAttributeInternal(THUMBNAILURL);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute ThumbnailUrl.
   *
   * @param value value to set the ThumbnailUrl
   */
  public void setThumbnailUrl(String value) {
    setAttributeInternal(THUMBNAILURL, value);
  }

  /**
   * Gets the attribute value for the calculated attribute Keyword.
   *
   * @return the Keyword
   */
  public String getKeyword() {
    return (String) getAttributeInternal(KEYWORD);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute Keyword.
   *
   * @param value value to set the Keyword
   */
  public void setKeyword(String value) {
    setAttributeInternal(KEYWORD, value);
  }

  /**
   * Gets the attribute value for the calculated attribute ItemCode.
   *
   * @return the ItemCode
   */
  public String getItemCode() {
    return (String) getAttributeInternal(ITEMCODE);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute ItemCode.
   *
   * @param value value to set the ItemCode
   */
  public void setItemCode(String value) {
    setAttributeInternal(ITEMCODE, value);
  }

  /**
   * Gets the attribute value for the calculated attribute CompCode.
   *
   * @return the CompCode
   */
  public String getCompCode() {
    return (String) getAttributeInternal(COMPCODE);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute CompCode.
   *
   * @param value value to set the CompCode
   */
  public void setCompCode(String value) {
    setAttributeInternal(COMPCODE, value);
  }

  /**
   * Gets the attribute value for the calculated attribute SyncFlag.
   *
   * @return the SyncFlag
   */
  public String getSyncFlag() {
    return (String) getAttributeInternal(SYNCFLAG);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute SyncFlag.
   *
   * @param value value to set the SyncFlag
   */
  public void setSyncFlag(String value) {
    setAttributeInternal(SYNCFLAG, value);
  }

  /**
   * Gets the attribute value for the calculated attribute PublishingHouse.
   *
   * @return the PublishingHouse
   */
  public String getPublishingHouse() {
    return (String) getAttributeInternal(PUBLISHINGHOUSE);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute PublishingHouse.
   *
   * @param value value to set the PublishingHouse
   */
  public void setPublishingHouse(String value) {
    setAttributeInternal(PUBLISHINGHOUSE, value);
  }

  /**
   * Gets the attribute value for the calculated attribute Lang.
   *
   * @return the Lang
   */
  public String getLang() {
    return (String) getAttributeInternal(LANG);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute Lang.
   *
   * @param value value to set the Lang
   */
  public void setLang(String value) {
    setAttributeInternal(LANG, value);
  }

  /**
   * Gets the attribute value for the calculated attribute CarrierType.
   *
   * @return the CarrierType
   */
  public String getCarrierType() {
    return (String) getAttributeInternal(CARRIERTYPE);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute CarrierType.
   *
   * @param value value to set the CarrierType
   */
  public void setCarrierType(String value) {
    setAttributeInternal(CARRIERTYPE, value);
  }

  /**
   * Gets the attribute value for the calculated attribute Amount.
   *
   * @return the Amount
   */
  public Number getAmount() {
    return (Number) getAttributeInternal(AMOUNT);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute Amount.
   *
   * @param value value to set the Amount
   */
  public void setAmount(Number value) {
    setAttributeInternal(AMOUNT, value);
  }

  /**
   * Gets the attribute value for the calculated attribute DiskDesign.
   *
   * @return the DiskDesign
   */
  public String getDiskDesign() {
    return (String) getAttributeInternal(DISKDESIGN);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute DiskDesign.
   *
   * @param value value to set the DiskDesign
   */
  public void setDiskDesign(String value) {
    setAttributeInternal(DISKDESIGN, value);
  }

  /**
   * Gets the attribute value for the calculated attribute Editor.
   *
   * @return the Editor
   */
  public String getEditor() {
    return (String) getAttributeInternal(EDITOR);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute Editor.
   *
   * @param value value to set the Editor
   */
  public void setEditor(String value) {
    setAttributeInternal(EDITOR, value);
  }

  /**
   * Gets the attribute value for the calculated attribute TextEditor.
   *
   * @return the TextEditor
   */
  public String getTextEditor() {
    return (String) getAttributeInternal(TEXTEDITOR);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute TextEditor.
   *
   * @param value value to set the TextEditor
   */
  public void setTextEditor(String value) {
    setAttributeInternal(TEXTEDITOR, value);
  }

  /**
   * Gets the attribute value for the calculated attribute Producer.
   *
   * @return the Producer
   */
  public String getProducer() {
    return (String) getAttributeInternal(PRODUCER);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute Producer.
   *
   * @param value value to set the Producer
   */
  public void setProducer(String value) {
    setAttributeInternal(PRODUCER, value);
  }

  /**
   * Gets the attribute value for the calculated attribute ContentDesc.
   *
   * @return the ContentDesc
   */
  public String getContentDesc() {
    return (String) getAttributeInternal(CONTENTDESC);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute ContentDesc.
   *
   * @param value value to set the ContentDesc
   */
  public void setContentDesc(String value) {
    setAttributeInternal(CONTENTDESC, value);
  }

  /**
   * Gets the attribute value for the calculated attribute Remarks.
   *
   * @return the Remarks
   */
  public String getRemarks() {
    return (String) getAttributeInternal(REMARKS);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute Remarks.
   *
   * @param value value to set the Remarks
   */
  public void setRemarks(String value) {
    setAttributeInternal(REMARKS, value);
  }

  /**
   * getAttrInvokeAccessor: generated method. Do not modify.
   *
   * @param index the index identifying the attribute
   * @param attrDef the attribute
   * @return the attribute value
   * @throws Exception
   */
  protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {
    if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {
      return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);
    }
    return super.getAttrInvokeAccessor(index, attrDef);
  }

  /**
   * 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);
  }
}
Ejemplo n.º 2
0
// ---------------------------------------------------------------------
// ---    File generated by Oracle ADF Business Components Design Time.
// ---    Sun May 31 23:33:50 CST 2015
// ---    Custom code may be added to this class.
// ---    Warning: Do not modify method signatures of generated methods.
// ---------------------------------------------------------------------
public class CmsVideoQVORowImpl extends ViewRowImpl {
  /** AttributesEnum: generated enum for identifying attributes and accessors. Do not modify. */
  public enum AttributesEnum {
    FileName {
      public Object get(CmsVideoQVORowImpl obj) {
        return obj.getFileName();
      }

      public void put(CmsVideoQVORowImpl obj, Object value) {
        obj.setFileName((String) value);
      }
    },
    SeriesName {
      public Object get(CmsVideoQVORowImpl obj) {
        return obj.getSeriesName();
      }

      public void put(CmsVideoQVORowImpl obj, Object value) {
        obj.setSeriesName((String) value);
      }
    },
    Isbn {
      public Object get(CmsVideoQVORowImpl obj) {
        return obj.getIsbn();
      }

      public void put(CmsVideoQVORowImpl obj, Object value) {
        obj.setIsbn((String) value);
      }
    },
    ItemCode {
      public Object get(CmsVideoQVORowImpl obj) {
        return obj.getItemCode();
      }

      public void put(CmsVideoQVORowImpl obj, Object value) {
        obj.setItemCode((String) value);
      }
    },
    CarrierType {
      public Object get(CmsVideoQVORowImpl obj) {
        return obj.getCarrierType();
      }

      public void put(CmsVideoQVORowImpl obj, Object value) {
        obj.setCarrierType((String) value);
      }
    },
    Lang {
      public Object get(CmsVideoQVORowImpl obj) {
        return obj.getLang();
      }

      public void put(CmsVideoQVORowImpl obj, Object value) {
        obj.setLang((String) value);
      }
    },
    Editor {
      public Object get(CmsVideoQVORowImpl obj) {
        return obj.getEditor();
      }

      public void put(CmsVideoQVORowImpl obj, Object value) {
        obj.setEditor((String) value);
      }
    },
    TextEditor {
      public Object get(CmsVideoQVORowImpl obj) {
        return obj.getTextEditor();
      }

      public void put(CmsVideoQVORowImpl obj, Object value) {
        obj.setTextEditor((String) value);
      }
    },
    Producer {
      public Object get(CmsVideoQVORowImpl obj) {
        return obj.getProducer();
      }

      public void put(CmsVideoQVORowImpl obj, Object value) {
        obj.setProducer((String) value);
      }
    },
    PubTime {
      public Object get(CmsVideoQVORowImpl obj) {
        return obj.getPubTime();
      }

      public void put(CmsVideoQVORowImpl obj, Object value) {
        obj.setPubTime((Date) value);
      }
    },
    AssortBook {
      public Object get(CmsVideoQVORowImpl obj) {
        return obj.getAssortBook();
      }

      public void put(CmsVideoQVORowImpl obj, Object value) {
        obj.setAssortBook((String) value);
      }
    },
    Keyword {
      public Object get(CmsVideoQVORowImpl obj) {
        return obj.getKeyword();
      }

      public void put(CmsVideoQVORowImpl obj, Object value) {
        obj.setKeyword((String) value);
      }
    },
    ContentDesc {
      public Object get(CmsVideoQVORowImpl obj) {
        return obj.getContentDesc();
      }

      public void put(CmsVideoQVORowImpl obj, Object value) {
        obj.setContentDesc((String) value);
      }
    },
    Remarks {
      public Object get(CmsVideoQVORowImpl obj) {
        return obj.getRemarks();
      }

      public void put(CmsVideoQVORowImpl obj, Object value) {
        obj.setRemarks((String) value);
      }
    },
    FileFormat {
      public Object get(CmsVideoQVORowImpl obj) {
        return obj.getFileFormat();
      }

      public void put(CmsVideoQVORowImpl obj, Object value) {
        obj.setFileFormat((String) value);
      }
    },
    FileSize {
      public Object get(CmsVideoQVORowImpl obj) {
        return obj.getFileSize();
      }

      public void put(CmsVideoQVORowImpl obj, Object value) {
        obj.setFileSize((String) value);
      }
    },
    FileTime {
      public Object get(CmsVideoQVORowImpl obj) {
        return obj.getFileTime();
      }

      public void put(CmsVideoQVORowImpl obj, Object value) {
        obj.setFileTime((String) value);
      }
    },
    FileStoreTime {
      public Object get(CmsVideoQVORowImpl obj) {
        return obj.getFileStoreTime();
      }

      public void put(CmsVideoQVORowImpl obj, Object value) {
        obj.setFileStoreTime((Date) value);
      }
    },
    Lookup4CarrierType {
      public Object get(CmsVideoQVORowImpl obj) {
        return obj.getLookup4CarrierType();
      }

      public void put(CmsVideoQVORowImpl obj, Object value) {
        obj.setAttributeInternal(index(), value);
      }
    },
    Lookup4Lang {
      public Object get(CmsVideoQVORowImpl obj) {
        return obj.getLookup4Lang();
      }

      public void put(CmsVideoQVORowImpl obj, Object value) {
        obj.setAttributeInternal(index(), value);
      }
    };
    private static AttributesEnum[] vals = null;
    private static int firstIndex = 0;

    public abstract Object get(CmsVideoQVORowImpl object);

    public abstract void put(CmsVideoQVORowImpl object, Object value);

    public int index() {
      return AttributesEnum.firstIndex() + ordinal();
    }

    public static int firstIndex() {
      return firstIndex;
    }

    public static int count() {
      return AttributesEnum.firstIndex() + AttributesEnum.staticValues().length;
    }

    public static AttributesEnum[] staticValues() {
      if (vals == null) {
        vals = AttributesEnum.values();
      }
      return vals;
    }
  }

  public static final int FILENAME = AttributesEnum.FileName.index();
  public static final int SERIESNAME = AttributesEnum.SeriesName.index();
  public static final int ISBN = AttributesEnum.Isbn.index();
  public static final int ITEMCODE = AttributesEnum.ItemCode.index();
  public static final int CARRIERTYPE = AttributesEnum.CarrierType.index();
  public static final int LANG = AttributesEnum.Lang.index();
  public static final int EDITOR = AttributesEnum.Editor.index();
  public static final int TEXTEDITOR = AttributesEnum.TextEditor.index();
  public static final int PRODUCER = AttributesEnum.Producer.index();
  public static final int PUBTIME = AttributesEnum.PubTime.index();
  public static final int ASSORTBOOK = AttributesEnum.AssortBook.index();
  public static final int KEYWORD = AttributesEnum.Keyword.index();
  public static final int CONTENTDESC = AttributesEnum.ContentDesc.index();
  public static final int REMARKS = AttributesEnum.Remarks.index();
  public static final int FILEFORMAT = AttributesEnum.FileFormat.index();
  public static final int FILESIZE = AttributesEnum.FileSize.index();
  public static final int FILETIME = AttributesEnum.FileTime.index();
  public static final int FILESTORETIME = AttributesEnum.FileStoreTime.index();
  public static final int LOOKUP4CARRIERTYPE = AttributesEnum.Lookup4CarrierType.index();
  public static final int LOOKUP4LANG = AttributesEnum.Lookup4Lang.index();

  /** This is the default constructor (do not remove). */
  public CmsVideoQVORowImpl() {}

  /**
   * Gets the attribute value for the calculated attribute FileName.
   *
   * @return the FileName
   */
  public String getFileName() {
    return (String) getAttributeInternal(FILENAME);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute FileName.
   *
   * @param value value to set the FileName
   */
  public void setFileName(String value) {
    setAttributeInternal(FILENAME, value);
  }

  /**
   * Gets the attribute value for the calculated attribute SeriesName.
   *
   * @return the SeriesName
   */
  public String getSeriesName() {
    return (String) getAttributeInternal(SERIESNAME);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute SeriesName.
   *
   * @param value value to set the SeriesName
   */
  public void setSeriesName(String value) {
    setAttributeInternal(SERIESNAME, value);
  }

  /**
   * Gets the attribute value for the calculated attribute Isbn.
   *
   * @return the Isbn
   */
  public String getIsbn() {
    return (String) getAttributeInternal(ISBN);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute Isbn.
   *
   * @param value value to set the Isbn
   */
  public void setIsbn(String value) {
    setAttributeInternal(ISBN, value);
  }

  /**
   * Gets the attribute value for the calculated attribute ItemCode.
   *
   * @return the ItemCode
   */
  public String getItemCode() {
    return (String) getAttributeInternal(ITEMCODE);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute ItemCode.
   *
   * @param value value to set the ItemCode
   */
  public void setItemCode(String value) {
    setAttributeInternal(ITEMCODE, value);
  }

  /**
   * Gets the attribute value for the calculated attribute CarrierType.
   *
   * @return the CarrierType
   */
  public String getCarrierType() {
    return (String) getAttributeInternal(CARRIERTYPE);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute CarrierType.
   *
   * @param value value to set the CarrierType
   */
  public void setCarrierType(String value) {
    setAttributeInternal(CARRIERTYPE, value);
  }

  /**
   * Gets the attribute value for the calculated attribute Lang.
   *
   * @return the Lang
   */
  public String getLang() {
    return (String) getAttributeInternal(LANG);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute Lang.
   *
   * @param value value to set the Lang
   */
  public void setLang(String value) {
    setAttributeInternal(LANG, value);
  }

  /**
   * Gets the attribute value for the calculated attribute Editor.
   *
   * @return the Editor
   */
  public String getEditor() {
    return (String) getAttributeInternal(EDITOR);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute Editor.
   *
   * @param value value to set the Editor
   */
  public void setEditor(String value) {
    setAttributeInternal(EDITOR, value);
  }

  /**
   * Gets the attribute value for the calculated attribute TextEditor.
   *
   * @return the TextEditor
   */
  public String getTextEditor() {
    return (String) getAttributeInternal(TEXTEDITOR);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute TextEditor.
   *
   * @param value value to set the TextEditor
   */
  public void setTextEditor(String value) {
    setAttributeInternal(TEXTEDITOR, value);
  }

  /**
   * Gets the attribute value for the calculated attribute Producer.
   *
   * @return the Producer
   */
  public String getProducer() {
    return (String) getAttributeInternal(PRODUCER);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute Producer.
   *
   * @param value value to set the Producer
   */
  public void setProducer(String value) {
    setAttributeInternal(PRODUCER, value);
  }

  /**
   * Gets the attribute value for the calculated attribute PubTime.
   *
   * @return the PubTime
   */
  public Date getPubTime() {
    return (Date) getAttributeInternal(PUBTIME);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute PubTime.
   *
   * @param value value to set the PubTime
   */
  public void setPubTime(Date value) {
    setAttributeInternal(PUBTIME, value);
  }

  /**
   * Gets the attribute value for the calculated attribute AssortBook.
   *
   * @return the AssortBook
   */
  public String getAssortBook() {
    return (String) getAttributeInternal(ASSORTBOOK);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute AssortBook.
   *
   * @param value value to set the AssortBook
   */
  public void setAssortBook(String value) {
    setAttributeInternal(ASSORTBOOK, value);
  }

  /**
   * Gets the attribute value for the calculated attribute Keyword.
   *
   * @return the Keyword
   */
  public String getKeyword() {
    return (String) getAttributeInternal(KEYWORD);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute Keyword.
   *
   * @param value value to set the Keyword
   */
  public void setKeyword(String value) {
    setAttributeInternal(KEYWORD, value);
  }

  /**
   * Gets the attribute value for the calculated attribute ContentDesc.
   *
   * @return the ContentDesc
   */
  public String getContentDesc() {
    return (String) getAttributeInternal(CONTENTDESC);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute ContentDesc.
   *
   * @param value value to set the ContentDesc
   */
  public void setContentDesc(String value) {
    setAttributeInternal(CONTENTDESC, value);
  }

  /**
   * Gets the attribute value for the calculated attribute Remarks.
   *
   * @return the Remarks
   */
  public String getRemarks() {
    return (String) getAttributeInternal(REMARKS);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute Remarks.
   *
   * @param value value to set the Remarks
   */
  public void setRemarks(String value) {
    setAttributeInternal(REMARKS, value);
  }

  /**
   * Gets the attribute value for the calculated attribute FileFormat.
   *
   * @return the FileFormat
   */
  public String getFileFormat() {
    return (String) getAttributeInternal(FILEFORMAT);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute FileFormat.
   *
   * @param value value to set the FileFormat
   */
  public void setFileFormat(String value) {
    setAttributeInternal(FILEFORMAT, value);
  }

  /**
   * Gets the attribute value for the calculated attribute FileSize.
   *
   * @return the FileSize
   */
  public String getFileSize() {
    return (String) getAttributeInternal(FILESIZE);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute FileSize.
   *
   * @param value value to set the FileSize
   */
  public void setFileSize(String value) {
    setAttributeInternal(FILESIZE, value);
  }

  /**
   * Gets the attribute value for the calculated attribute FileTime.
   *
   * @return the FileTime
   */
  public String getFileTime() {
    return (String) getAttributeInternal(FILETIME);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute FileTime.
   *
   * @param value value to set the FileTime
   */
  public void setFileTime(String value) {
    setAttributeInternal(FILETIME, value);
  }

  /**
   * Gets the attribute value for the calculated attribute FileStoreTime.
   *
   * @return the FileStoreTime
   */
  public Date getFileStoreTime() {
    return (Date) getAttributeInternal(FILESTORETIME);
  }

  /**
   * Sets <code>value</code> as the attribute value for the calculated attribute FileStoreTime.
   *
   * @param value value to set the FileStoreTime
   */
  public void setFileStoreTime(Date value) {
    setAttributeInternal(FILESTORETIME, value);
  }

  /** Gets the view accessor <code>RowSet</code> Lookup4CarrierType. */
  public RowSet getLookup4CarrierType() {
    return (RowSet) getAttributeInternal(LOOKUP4CARRIERTYPE);
  }

  /** Gets the view accessor <code>RowSet</code> Lookup4Lang. */
  public RowSet getLookup4Lang() {
    return (RowSet) getAttributeInternal(LOOKUP4LANG);
  }

  /**
   * getAttrInvokeAccessor: generated method. Do not modify.
   *
   * @param index the index identifying the attribute
   * @param attrDef the attribute
   * @return the attribute value
   * @throws Exception
   */
  protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {
    if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {
      return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);
    }
    return super.getAttrInvokeAccessor(index, attrDef);
  }

  /**
   * 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);
  }
}
// ---------------------------------------------------------------------
// ---    File generated by Oracle ADF Business Components Design Time.
// ---    Fri Sep 12 11:42:30 CST 2014
// ---    Custom code may be added to this class.
// ---    Warning: Do not modify method signatures of generated methods.
// ---------------------------------------------------------------------
public class CmsBookExportHtmlTEOImpl extends CustomEntityImpl {
  /** AttributesEnum: generated enum for identifying attributes and accessors. Do not modify. */
  public enum AttributesEnum {
    ExportId {
      public Object get(CmsBookExportHtmlTEOImpl obj) {
        return obj.getExportId();
      }

      public void put(CmsBookExportHtmlTEOImpl obj, Object value) {
        obj.setExportId((Number) value);
      }
    },
    DocId {
      public Object get(CmsBookExportHtmlTEOImpl obj) {
        return obj.getDocId();
      }

      public void put(CmsBookExportHtmlTEOImpl obj, Object value) {
        obj.setDocId((Number) value);
      }
    },
    ExportTheme {
      public Object get(CmsBookExportHtmlTEOImpl obj) {
        return obj.getExportTheme();
      }

      public void put(CmsBookExportHtmlTEOImpl obj, Object value) {
        obj.setExportTheme((String) value);
      }
    },
    CategoryLevel {
      public Object get(CmsBookExportHtmlTEOImpl obj) {
        return obj.getCategoryLevel();
      }

      public void put(CmsBookExportHtmlTEOImpl obj, Object value) {
        obj.setCategoryLevel((String) value);
      }
    },
    ExportReason {
      public Object get(CmsBookExportHtmlTEOImpl obj) {
        return obj.getExportReason();
      }

      public void put(CmsBookExportHtmlTEOImpl obj, Object value) {
        obj.setExportReason((String) value);
      }
    },
    Remarks {
      public Object get(CmsBookExportHtmlTEOImpl obj) {
        return obj.getRemarks();
      }

      public void put(CmsBookExportHtmlTEOImpl obj, Object value) {
        obj.setRemarks((String) value);
      }
    },
    ObjectVersionNumber {
      public Object get(CmsBookExportHtmlTEOImpl obj) {
        return obj.getObjectVersionNumber();
      }

      public void put(CmsBookExportHtmlTEOImpl obj, Object value) {
        obj.setAttributeInternal(index(), value);
      }
    },
    CreatedBy {
      public Object get(CmsBookExportHtmlTEOImpl obj) {
        return obj.getCreatedBy();
      }

      public void put(CmsBookExportHtmlTEOImpl obj, Object value) {
        obj.setCreatedBy((Number) value);
      }
    },
    CreationDate {
      public Object get(CmsBookExportHtmlTEOImpl obj) {
        return obj.getCreationDate();
      }

      public void put(CmsBookExportHtmlTEOImpl obj, Object value) {
        obj.setCreationDate((Date) value);
      }
    },
    LastUpdatedBy {
      public Object get(CmsBookExportHtmlTEOImpl obj) {
        return obj.getLastUpdatedBy();
      }

      public void put(CmsBookExportHtmlTEOImpl obj, Object value) {
        obj.setLastUpdatedBy((Number) value);
      }
    },
    LastUpdateDate {
      public Object get(CmsBookExportHtmlTEOImpl obj) {
        return obj.getLastUpdateDate();
      }

      public void put(CmsBookExportHtmlTEOImpl obj, Object value) {
        obj.setLastUpdateDate((Date) value);
      }
    },
    Attribute1 {
      public Object get(CmsBookExportHtmlTEOImpl obj) {
        return obj.getAttribute1();
      }

      public void put(CmsBookExportHtmlTEOImpl obj, Object value) {
        obj.setAttribute1((String) value);
      }
    },
    Attribute2 {
      public Object get(CmsBookExportHtmlTEOImpl obj) {
        return obj.getAttribute2();
      }

      public void put(CmsBookExportHtmlTEOImpl obj, Object value) {
        obj.setAttribute2((String) value);
      }
    },
    Attribute3 {
      public Object get(CmsBookExportHtmlTEOImpl obj) {
        return obj.getAttribute3();
      }

      public void put(CmsBookExportHtmlTEOImpl obj, Object value) {
        obj.setAttribute3((String) value);
      }
    },
    Attribute4 {
      public Object get(CmsBookExportHtmlTEOImpl obj) {
        return obj.getAttribute4();
      }

      public void put(CmsBookExportHtmlTEOImpl obj, Object value) {
        obj.setAttribute4((String) value);
      }
    },
    Attribute5 {
      public Object get(CmsBookExportHtmlTEOImpl obj) {
        return obj.getAttribute5();
      }

      public void put(CmsBookExportHtmlTEOImpl obj, Object value) {
        obj.setAttribute5((String) value);
      }
    },
    Attribute6 {
      public Object get(CmsBookExportHtmlTEOImpl obj) {
        return obj.getAttribute6();
      }

      public void put(CmsBookExportHtmlTEOImpl obj, Object value) {
        obj.setAttribute6((String) value);
      }
    },
    Attribute7 {
      public Object get(CmsBookExportHtmlTEOImpl obj) {
        return obj.getAttribute7();
      }

      public void put(CmsBookExportHtmlTEOImpl obj, Object value) {
        obj.setAttribute7((String) value);
      }
    },
    Attribute8 {
      public Object get(CmsBookExportHtmlTEOImpl obj) {
        return obj.getAttribute8();
      }

      public void put(CmsBookExportHtmlTEOImpl obj, Object value) {
        obj.setAttribute8((String) value);
      }
    },
    Attribute9 {
      public Object get(CmsBookExportHtmlTEOImpl obj) {
        return obj.getAttribute9();
      }

      public void put(CmsBookExportHtmlTEOImpl obj, Object value) {
        obj.setAttribute9((String) value);
      }
    },
    Attribute10 {
      public Object get(CmsBookExportHtmlTEOImpl obj) {
        return obj.getAttribute10();
      }

      public void put(CmsBookExportHtmlTEOImpl obj, Object value) {
        obj.setAttribute10((String) value);
      }
    },
    Attribute11 {
      public Object get(CmsBookExportHtmlTEOImpl obj) {
        return obj.getAttribute11();
      }

      public void put(CmsBookExportHtmlTEOImpl obj, Object value) {
        obj.setAttribute11((String) value);
      }
    },
    Attribute12 {
      public Object get(CmsBookExportHtmlTEOImpl obj) {
        return obj.getAttribute12();
      }

      public void put(CmsBookExportHtmlTEOImpl obj, Object value) {
        obj.setAttribute12((String) value);
      }
    },
    Attribute13 {
      public Object get(CmsBookExportHtmlTEOImpl obj) {
        return obj.getAttribute13();
      }

      public void put(CmsBookExportHtmlTEOImpl obj, Object value) {
        obj.setAttribute13((String) value);
      }
    },
    Attribute14 {
      public Object get(CmsBookExportHtmlTEOImpl obj) {
        return obj.getAttribute14();
      }

      public void put(CmsBookExportHtmlTEOImpl obj, Object value) {
        obj.setAttribute14((String) value);
      }
    },
    Attribute15 {
      public Object get(CmsBookExportHtmlTEOImpl obj) {
        return obj.getAttribute15();
      }

      public void put(CmsBookExportHtmlTEOImpl obj, Object value) {
        obj.setAttribute15((String) value);
      }
    };
    private static AttributesEnum[] vals = null;
    private static int firstIndex = 0;

    public abstract Object get(CmsBookExportHtmlTEOImpl object);

    public abstract void put(CmsBookExportHtmlTEOImpl object, Object value);

    public int index() {
      return AttributesEnum.firstIndex() + ordinal();
    }

    public static int firstIndex() {
      return firstIndex;
    }

    public static int count() {
      return AttributesEnum.firstIndex() + AttributesEnum.staticValues().length;
    }

    public static AttributesEnum[] staticValues() {
      if (vals == null) {
        vals = AttributesEnum.values();
      }
      return vals;
    }
  }

  public static final int EXPORTID = AttributesEnum.ExportId.index();
  public static final int DOCID = AttributesEnum.DocId.index();
  public static final int EXPORTTHEME = AttributesEnum.ExportTheme.index();
  public static final int CATEGORYLEVEL = AttributesEnum.CategoryLevel.index();
  public static final int EXPORTREASON = AttributesEnum.ExportReason.index();
  public static final int REMARKS = AttributesEnum.Remarks.index();
  public static final int OBJECTVERSIONNUMBER = AttributesEnum.ObjectVersionNumber.index();
  public static final int CREATEDBY = AttributesEnum.CreatedBy.index();
  public static final int CREATIONDATE = AttributesEnum.CreationDate.index();
  public static final int LASTUPDATEDBY = AttributesEnum.LastUpdatedBy.index();
  public static final int LASTUPDATEDATE = AttributesEnum.LastUpdateDate.index();
  public static final int ATTRIBUTE1 = AttributesEnum.Attribute1.index();
  public static final int ATTRIBUTE2 = AttributesEnum.Attribute2.index();
  public static final int ATTRIBUTE3 = AttributesEnum.Attribute3.index();
  public static final int ATTRIBUTE4 = AttributesEnum.Attribute4.index();
  public static final int ATTRIBUTE5 = AttributesEnum.Attribute5.index();
  public static final int ATTRIBUTE6 = AttributesEnum.Attribute6.index();
  public static final int ATTRIBUTE7 = AttributesEnum.Attribute7.index();
  public static final int ATTRIBUTE8 = AttributesEnum.Attribute8.index();
  public static final int ATTRIBUTE9 = AttributesEnum.Attribute9.index();
  public static final int ATTRIBUTE10 = AttributesEnum.Attribute10.index();
  public static final int ATTRIBUTE11 = AttributesEnum.Attribute11.index();
  public static final int ATTRIBUTE12 = AttributesEnum.Attribute12.index();
  public static final int ATTRIBUTE13 = AttributesEnum.Attribute13.index();
  public static final int ATTRIBUTE14 = AttributesEnum.Attribute14.index();
  public static final int ATTRIBUTE15 = AttributesEnum.Attribute15.index();

  /** This is the default constructor (do not remove). */
  public CmsBookExportHtmlTEOImpl() {}

  /** @return the definition object for this instance class. */
  public static synchronized EntityDefImpl getDefinitionObject() {
    return EntityDefImpl.findDefObject("com.zypg.cms.work.model.entity.CmsBookExportHtmlTEO");
  }

  /**
   * Gets the attribute value for ExportId, using the alias name ExportId.
   *
   * @return the value of ExportId
   */
  public Number getExportId() {
    return (Number) getAttributeInternal(EXPORTID);
  }

  /**
   * Sets <code>value</code> as the attribute value for ExportId.
   *
   * @param value value to set the ExportId
   */
  public void setExportId(Number value) {
    setAttributeInternal(EXPORTID, value);
  }

  /**
   * Gets the attribute value for DocId, using the alias name DocId.
   *
   * @return the value of DocId
   */
  public Number getDocId() {
    return (Number) getAttributeInternal(DOCID);
  }

  /**
   * Sets <code>value</code> as the attribute value for DocId.
   *
   * @param value value to set the DocId
   */
  public void setDocId(Number value) {
    setAttributeInternal(DOCID, value);
  }

  /**
   * Gets the attribute value for ExportTheme, using the alias name ExportTheme.
   *
   * @return the value of ExportTheme
   */
  public String getExportTheme() {
    return (String) getAttributeInternal(EXPORTTHEME);
  }

  /**
   * Sets <code>value</code> as the attribute value for ExportTheme.
   *
   * @param value value to set the ExportTheme
   */
  public void setExportTheme(String value) {
    setAttributeInternal(EXPORTTHEME, value);
  }

  /**
   * Gets the attribute value for CategoryLevel, using the alias name CategoryLevel.
   *
   * @return the value of CategoryLevel
   */
  public String getCategoryLevel() {
    return (String) getAttributeInternal(CATEGORYLEVEL);
  }

  /**
   * Sets <code>value</code> as the attribute value for CategoryLevel.
   *
   * @param value value to set the CategoryLevel
   */
  public void setCategoryLevel(String value) {
    setAttributeInternal(CATEGORYLEVEL, value);
  }

  /**
   * Gets the attribute value for ExportReason, using the alias name ExportReason.
   *
   * @return the value of ExportReason
   */
  public String getExportReason() {
    return (String) getAttributeInternal(EXPORTREASON);
  }

  /**
   * Sets <code>value</code> as the attribute value for ExportReason.
   *
   * @param value value to set the ExportReason
   */
  public void setExportReason(String value) {
    setAttributeInternal(EXPORTREASON, value);
  }

  /**
   * Gets the attribute value for Remarks, using the alias name Remarks.
   *
   * @return the value of Remarks
   */
  public String getRemarks() {
    return (String) getAttributeInternal(REMARKS);
  }

  /**
   * Sets <code>value</code> as the attribute value for Remarks.
   *
   * @param value value to set the Remarks
   */
  public void setRemarks(String value) {
    setAttributeInternal(REMARKS, value);
  }

  /**
   * Gets the attribute value for ObjectVersionNumber, using the alias name ObjectVersionNumber.
   *
   * @return the value of ObjectVersionNumber
   */
  public Number getObjectVersionNumber() {
    return (Number) getAttributeInternal(OBJECTVERSIONNUMBER);
  }

  /**
   * Gets the attribute value for CreatedBy, using the alias name CreatedBy.
   *
   * @return the value of CreatedBy
   */
  public Number getCreatedBy() {
    return (Number) getAttributeInternal(CREATEDBY);
  }

  /**
   * Sets <code>value</code> as the attribute value for CreatedBy.
   *
   * @param value value to set the CreatedBy
   */
  public void setCreatedBy(Number value) {
    setAttributeInternal(CREATEDBY, value);
  }

  /**
   * Gets the attribute value for CreationDate, using the alias name CreationDate.
   *
   * @return the value of CreationDate
   */
  public Date getCreationDate() {
    return (Date) getAttributeInternal(CREATIONDATE);
  }

  /**
   * Sets <code>value</code> as the attribute value for CreationDate.
   *
   * @param value value to set the CreationDate
   */
  public void setCreationDate(Date value) {
    setAttributeInternal(CREATIONDATE, value);
  }

  /**
   * Gets the attribute value for LastUpdatedBy, using the alias name LastUpdatedBy.
   *
   * @return the value of LastUpdatedBy
   */
  public Number getLastUpdatedBy() {
    return (Number) getAttributeInternal(LASTUPDATEDBY);
  }

  /**
   * Sets <code>value</code> as the attribute value for LastUpdatedBy.
   *
   * @param value value to set the LastUpdatedBy
   */
  public void setLastUpdatedBy(Number value) {
    setAttributeInternal(LASTUPDATEDBY, value);
  }

  /**
   * Gets the attribute value for LastUpdateDate, using the alias name LastUpdateDate.
   *
   * @return the value of LastUpdateDate
   */
  public Date getLastUpdateDate() {
    return (Date) getAttributeInternal(LASTUPDATEDATE);
  }

  /**
   * Sets <code>value</code> as the attribute value for LastUpdateDate.
   *
   * @param value value to set the LastUpdateDate
   */
  public void setLastUpdateDate(Date value) {
    setAttributeInternal(LASTUPDATEDATE, value);
  }

  /**
   * Gets the attribute value for Attribute1, using the alias name Attribute1.
   *
   * @return the value of Attribute1
   */
  public String getAttribute1() {
    return (String) getAttributeInternal(ATTRIBUTE1);
  }

  /**
   * Sets <code>value</code> as the attribute value for Attribute1.
   *
   * @param value value to set the Attribute1
   */
  public void setAttribute1(String value) {
    setAttributeInternal(ATTRIBUTE1, value);
  }

  /**
   * Gets the attribute value for Attribute2, using the alias name Attribute2.
   *
   * @return the value of Attribute2
   */
  public String getAttribute2() {
    return (String) getAttributeInternal(ATTRIBUTE2);
  }

  /**
   * Sets <code>value</code> as the attribute value for Attribute2.
   *
   * @param value value to set the Attribute2
   */
  public void setAttribute2(String value) {
    setAttributeInternal(ATTRIBUTE2, value);
  }

  /**
   * Gets the attribute value for Attribute3, using the alias name Attribute3.
   *
   * @return the value of Attribute3
   */
  public String getAttribute3() {
    return (String) getAttributeInternal(ATTRIBUTE3);
  }

  /**
   * Sets <code>value</code> as the attribute value for Attribute3.
   *
   * @param value value to set the Attribute3
   */
  public void setAttribute3(String value) {
    setAttributeInternal(ATTRIBUTE3, value);
  }

  /**
   * Gets the attribute value for Attribute4, using the alias name Attribute4.
   *
   * @return the value of Attribute4
   */
  public String getAttribute4() {
    return (String) getAttributeInternal(ATTRIBUTE4);
  }

  /**
   * Sets <code>value</code> as the attribute value for Attribute4.
   *
   * @param value value to set the Attribute4
   */
  public void setAttribute4(String value) {
    setAttributeInternal(ATTRIBUTE4, value);
  }

  /**
   * Gets the attribute value for Attribute5, using the alias name Attribute5.
   *
   * @return the value of Attribute5
   */
  public String getAttribute5() {
    return (String) getAttributeInternal(ATTRIBUTE5);
  }

  /**
   * Sets <code>value</code> as the attribute value for Attribute5.
   *
   * @param value value to set the Attribute5
   */
  public void setAttribute5(String value) {
    setAttributeInternal(ATTRIBUTE5, value);
  }

  /**
   * Gets the attribute value for Attribute6, using the alias name Attribute6.
   *
   * @return the value of Attribute6
   */
  public String getAttribute6() {
    return (String) getAttributeInternal(ATTRIBUTE6);
  }

  /**
   * Sets <code>value</code> as the attribute value for Attribute6.
   *
   * @param value value to set the Attribute6
   */
  public void setAttribute6(String value) {
    setAttributeInternal(ATTRIBUTE6, value);
  }

  /**
   * Gets the attribute value for Attribute7, using the alias name Attribute7.
   *
   * @return the value of Attribute7
   */
  public String getAttribute7() {
    return (String) getAttributeInternal(ATTRIBUTE7);
  }

  /**
   * Sets <code>value</code> as the attribute value for Attribute7.
   *
   * @param value value to set the Attribute7
   */
  public void setAttribute7(String value) {
    setAttributeInternal(ATTRIBUTE7, value);
  }

  /**
   * Gets the attribute value for Attribute8, using the alias name Attribute8.
   *
   * @return the value of Attribute8
   */
  public String getAttribute8() {
    return (String) getAttributeInternal(ATTRIBUTE8);
  }

  /**
   * Sets <code>value</code> as the attribute value for Attribute8.
   *
   * @param value value to set the Attribute8
   */
  public void setAttribute8(String value) {
    setAttributeInternal(ATTRIBUTE8, value);
  }

  /**
   * Gets the attribute value for Attribute9, using the alias name Attribute9.
   *
   * @return the value of Attribute9
   */
  public String getAttribute9() {
    return (String) getAttributeInternal(ATTRIBUTE9);
  }

  /**
   * Sets <code>value</code> as the attribute value for Attribute9.
   *
   * @param value value to set the Attribute9
   */
  public void setAttribute9(String value) {
    setAttributeInternal(ATTRIBUTE9, value);
  }

  /**
   * Gets the attribute value for Attribute10, using the alias name Attribute10.
   *
   * @return the value of Attribute10
   */
  public String getAttribute10() {
    return (String) getAttributeInternal(ATTRIBUTE10);
  }

  /**
   * Sets <code>value</code> as the attribute value for Attribute10.
   *
   * @param value value to set the Attribute10
   */
  public void setAttribute10(String value) {
    setAttributeInternal(ATTRIBUTE10, value);
  }

  /**
   * Gets the attribute value for Attribute11, using the alias name Attribute11.
   *
   * @return the value of Attribute11
   */
  public String getAttribute11() {
    return (String) getAttributeInternal(ATTRIBUTE11);
  }

  /**
   * Sets <code>value</code> as the attribute value for Attribute11.
   *
   * @param value value to set the Attribute11
   */
  public void setAttribute11(String value) {
    setAttributeInternal(ATTRIBUTE11, value);
  }

  /**
   * Gets the attribute value for Attribute12, using the alias name Attribute12.
   *
   * @return the value of Attribute12
   */
  public String getAttribute12() {
    return (String) getAttributeInternal(ATTRIBUTE12);
  }

  /**
   * Sets <code>value</code> as the attribute value for Attribute12.
   *
   * @param value value to set the Attribute12
   */
  public void setAttribute12(String value) {
    setAttributeInternal(ATTRIBUTE12, value);
  }

  /**
   * Gets the attribute value for Attribute13, using the alias name Attribute13.
   *
   * @return the value of Attribute13
   */
  public String getAttribute13() {
    return (String) getAttributeInternal(ATTRIBUTE13);
  }

  /**
   * Sets <code>value</code> as the attribute value for Attribute13.
   *
   * @param value value to set the Attribute13
   */
  public void setAttribute13(String value) {
    setAttributeInternal(ATTRIBUTE13, value);
  }

  /**
   * Gets the attribute value for Attribute14, using the alias name Attribute14.
   *
   * @return the value of Attribute14
   */
  public String getAttribute14() {
    return (String) getAttributeInternal(ATTRIBUTE14);
  }

  /**
   * Sets <code>value</code> as the attribute value for Attribute14.
   *
   * @param value value to set the Attribute14
   */
  public void setAttribute14(String value) {
    setAttributeInternal(ATTRIBUTE14, value);
  }

  /**
   * Gets the attribute value for Attribute15, using the alias name Attribute15.
   *
   * @return the value of Attribute15
   */
  public String getAttribute15() {
    return (String) getAttributeInternal(ATTRIBUTE15);
  }

  /**
   * Sets <code>value</code> as the attribute value for Attribute15.
   *
   * @param value value to set the Attribute15
   */
  public void setAttribute15(String value) {
    setAttributeInternal(ATTRIBUTE15, value);
  }

  /**
   * getAttrInvokeAccessor: generated method. Do not modify.
   *
   * @param index the index identifying the attribute
   * @param attrDef the attribute
   * @return the attribute value
   * @throws Exception
   */
  protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {
    if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {
      return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);
    }
    return super.getAttrInvokeAccessor(index, attrDef);
  }

  /**
   * 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);
  }

  /**
   * @param exportId key constituent
   * @return a Key object based on given key constituents.
   */
  public static Key createPrimaryKey(Number exportId) {
    return new Key(new Object[] {exportId});
  }

  /**
   * 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());
  }
}