Adempiere 3.5.2a

org.compiere.model
Class X_CM_Ad

java.lang.Object
  extended by org.compiere.model.PO
      extended by org.compiere.model.X_CM_Ad
All Implemented Interfaces:
Serializable, Comparator, I_CM_Ad, I_Persistent, Evaluatee
Direct Known Subclasses:
MAd

public class X_CM_Ad
extends PO
implements I_CM_Ad, I_Persistent

Generated Model for CM_Ad

Version:
Release 3.5.2a - $Id$
Author:
Adempiere (generated)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.compiere.model.PO
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_ctx, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID
 
Fields inherited from interface org.compiere.model.I_CM_Ad
accessLevel, COLUMNNAME_ActualClick, COLUMNNAME_ActualImpression, COLUMNNAME_CM_Ad_Cat_ID, COLUMNNAME_CM_Ad_ID, COLUMNNAME_CM_Media_ID, COLUMNNAME_ContentHTML, COLUMNNAME_Description, COLUMNNAME_EndDate, COLUMNNAME_Help, COLUMNNAME_IsAdFlag, COLUMNNAME_IsLogged, COLUMNNAME_MaxClick, COLUMNNAME_MaxImpression, COLUMNNAME_Name, COLUMNNAME_StartDate, COLUMNNAME_StartImpression, COLUMNNAME_Target_Frame, COLUMNNAME_TargetURL, Model, Table_ID, Table_Name
 
Constructor Summary
X_CM_Ad(Properties ctx, int CM_Ad_ID, String trxName)
          Standard Constructor
X_CM_Ad(Properties ctx, ResultSet rs, String trxName)
          Load Constructor
 
Method Summary
protected  int get_AccessLevel()
          AccessLevel
 int getActualClick()
          Get Actual Click Count.
 int getActualImpression()
          Get Actual Impression Count.
 int getCM_Ad_Cat_ID()
          Get Advertisement Category.
 I_CM_Ad_Cat getCM_Ad_Cat()
           
 int getCM_Ad_ID()
          Get Advertisement.
 int getCM_Media_ID()
          Get Media Item.
 I_CM_Media getCM_Media()
           
 String getContentHTML()
          Get Content HTML.
 String getDescription()
          Get Description.
 Timestamp getEndDate()
          Get End Date.
 String getHelp()
          Get Comment/Help.
 KeyNamePair getKeyNamePair()
          Get Record ID/ColumnName
 int getMaxClick()
          Get Max Click Count.
 int getMaxImpression()
          Get Max Impression Count.
 String getName()
          Get Name.
 Timestamp getStartDate()
          Get Start Date.
 int getStartImpression()
          Get Start Count Impression.
 String getTarget_Frame()
          Get Target Frame.
 String getTargetURL()
          Get Target URL.
protected  POInfo initPO(Properties ctx)
          Load Meta Data
 boolean isAdFlag()
          Get Special AD Flag.
 boolean isLogged()
          Get Logging.
 void setActualClick(int ActualClick)
          Set Actual Click Count.
 void setActualImpression(int ActualImpression)
          Set Actual Impression Count.
 void setCM_Ad_Cat_ID(int CM_Ad_Cat_ID)
          Set Advertisement Category.
 void setCM_Ad_ID(int CM_Ad_ID)
          Set Advertisement.
 void setCM_Media_ID(int CM_Media_ID)
          Set Media Item.
 void setContentHTML(String ContentHTML)
          Set Content HTML.
 void setDescription(String Description)
          Set Description.
 void setEndDate(Timestamp EndDate)
          Set End Date.
 void setHelp(String Help)
          Set Comment/Help.
 void setIsAdFlag(boolean IsAdFlag)
          Set Special AD Flag.
 void setIsLogged(boolean IsLogged)
          Set Logging.
 void setMaxClick(int MaxClick)
          Set Max Click Count.
 void setMaxImpression(int MaxImpression)
          Set Max Impression Count.
 void setName(String Name)
          Set Name.
 void setStartDate(Timestamp StartDate)
          Set Start Date.
 void setStartImpression(int StartImpression)
          Set Start Count Impression.
 void setTarget_Frame(String Target_Frame)
          Set Target Frame.
 void setTargetURL(String TargetURL)
          Set Target URL.
 String toString()
          String representation
 
Methods inherited from class org.compiere.model.PO
afterDelete, afterSave, beforeDelete, beforeSave, compare, copyValues, copyValues, createAttachment, delete_Accounting, delete_Tree, delete, delete, deleteEx, deleteEx, dump, dump, equals, get_ColumnCount, get_ColumnDescription, get_ColumnDisplayType, get_ColumnIndex, get_ColumnLabel, get_ColumnLookup, get_ColumnName, get_DisplayValue, get_HashMap, get_ID, get_IDOld, get_KeyColumns, get_Logger, get_Table_ID, get_TableName, get_Translation, get_TrxName, get_Value, get_Value, get_ValueAsInt, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueE, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_WhereClause, get_xmlDocument, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getDoc, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, insert_Accounting, insert_Tree, insert_Tree, is_Changed, is_new, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, isReplication, load, load, load, load, loadComplete, loadDefaults, loadSpecial, lock, save, save, saveEx, saveEx, saveNew_getID, saveNewSpecial, saveReplica, saveUpdate, set_ColumnUpdateable, set_CustomColumn, set_TrxName, set_TrxName, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueOfColumn, setAD_Client_ID, setAD_Org_ID, setClientOrg, setClientOrg, setDoc, setDocWorkflowMgr, setIsActive, setReplication, setStandardDefaults, setUpdateable, setUpdatedBy, unlock
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.compiere.model.I_Persistent
save
 

Constructor Detail

X_CM_Ad

public X_CM_Ad(Properties ctx,
               int CM_Ad_ID,
               String trxName)
Standard Constructor


X_CM_Ad

public X_CM_Ad(Properties ctx,
               ResultSet rs,
               String trxName)
Load Constructor

Method Detail

get_AccessLevel

protected int get_AccessLevel()
AccessLevel

Specified by:
get_AccessLevel in class PO
Returns:
6 - System - Client

initPO

protected POInfo initPO(Properties ctx)
Load Meta Data

Specified by:
initPO in class PO
Parameters:
ctx - context
Returns:
POInfo

toString

public String toString()
Description copied from class: PO
String representation

Overrides:
toString in class PO
Returns:
String representation

setActualClick

public void setActualClick(int ActualClick)
Set Actual Click Count.

Specified by:
setActualClick in interface I_CM_Ad
Parameters:
ActualClick - How many clicks have been counted

getActualClick

public int getActualClick()
Get Actual Click Count.

Specified by:
getActualClick in interface I_CM_Ad
Returns:
How many clicks have been counted

setActualImpression

public void setActualImpression(int ActualImpression)
Set Actual Impression Count.

Specified by:
setActualImpression in interface I_CM_Ad
Parameters:
ActualImpression - How many impressions have been counted

getActualImpression

public int getActualImpression()
Get Actual Impression Count.

Specified by:
getActualImpression in interface I_CM_Ad
Returns:
How many impressions have been counted

getCM_Ad_Cat

public I_CM_Ad_Cat getCM_Ad_Cat()
                         throws Exception
Specified by:
getCM_Ad_Cat in interface I_CM_Ad
Throws:
Exception

setCM_Ad_Cat_ID

public void setCM_Ad_Cat_ID(int CM_Ad_Cat_ID)
Set Advertisement Category.

Specified by:
setCM_Ad_Cat_ID in interface I_CM_Ad
Parameters:
CM_Ad_Cat_ID - Advertisement Category like Banner Homepage

getCM_Ad_Cat_ID

public int getCM_Ad_Cat_ID()
Get Advertisement Category.

Specified by:
getCM_Ad_Cat_ID in interface I_CM_Ad
Returns:
Advertisement Category like Banner Homepage

setCM_Ad_ID

public void setCM_Ad_ID(int CM_Ad_ID)
Set Advertisement.

Specified by:
setCM_Ad_ID in interface I_CM_Ad
Parameters:
CM_Ad_ID - An Advertisement is something like a banner

getCM_Ad_ID

public int getCM_Ad_ID()
Get Advertisement.

Specified by:
getCM_Ad_ID in interface I_CM_Ad
Returns:
An Advertisement is something like a banner

getCM_Media

public I_CM_Media getCM_Media()
                       throws Exception
Specified by:
getCM_Media in interface I_CM_Ad
Throws:
Exception

setCM_Media_ID

public void setCM_Media_ID(int CM_Media_ID)
Set Media Item.

Specified by:
setCM_Media_ID in interface I_CM_Ad
Parameters:
CM_Media_ID - Contains media content like images, flash movies etc.

getCM_Media_ID

public int getCM_Media_ID()
Get Media Item.

Specified by:
getCM_Media_ID in interface I_CM_Ad
Returns:
Contains media content like images, flash movies etc.

setContentHTML

public void setContentHTML(String ContentHTML)
Set Content HTML.

Specified by:
setContentHTML in interface I_CM_Ad
Parameters:
ContentHTML - Contains the content itself

getContentHTML

public String getContentHTML()
Get Content HTML.

Specified by:
getContentHTML in interface I_CM_Ad
Returns:
Contains the content itself

setDescription

public void setDescription(String Description)
Set Description.

Specified by:
setDescription in interface I_CM_Ad
Parameters:
Description - Optional short description of the record

getDescription

public String getDescription()
Get Description.

Specified by:
getDescription in interface I_CM_Ad
Returns:
Optional short description of the record

setEndDate

public void setEndDate(Timestamp EndDate)
Set End Date.

Specified by:
setEndDate in interface I_CM_Ad
Parameters:
EndDate - Last effective date (inclusive)

getEndDate

public Timestamp getEndDate()
Get End Date.

Specified by:
getEndDate in interface I_CM_Ad
Returns:
Last effective date (inclusive)

setHelp

public void setHelp(String Help)
Set Comment/Help.

Specified by:
setHelp in interface I_CM_Ad
Parameters:
Help - Comment or Hint

getHelp

public String getHelp()
Get Comment/Help.

Specified by:
getHelp in interface I_CM_Ad
Returns:
Comment or Hint

setIsAdFlag

public void setIsAdFlag(boolean IsAdFlag)
Set Special AD Flag.

Specified by:
setIsAdFlag in interface I_CM_Ad
Parameters:
IsAdFlag - Do we need to specially mention this ad?

isAdFlag

public boolean isAdFlag()
Get Special AD Flag.

Specified by:
isAdFlag in interface I_CM_Ad
Returns:
Do we need to specially mention this ad?

setIsLogged

public void setIsLogged(boolean IsLogged)
Set Logging.

Specified by:
setIsLogged in interface I_CM_Ad
Parameters:
IsLogged - Do we need to log the banner impressions and clicks? (needs much performance)

isLogged

public boolean isLogged()
Get Logging.

Specified by:
isLogged in interface I_CM_Ad
Returns:
Do we need to log the banner impressions and clicks? (needs much performance)

setMaxClick

public void setMaxClick(int MaxClick)
Set Max Click Count.

Specified by:
setMaxClick in interface I_CM_Ad
Parameters:
MaxClick - Maximum Click Count until banner is deactivated

getMaxClick

public int getMaxClick()
Get Max Click Count.

Specified by:
getMaxClick in interface I_CM_Ad
Returns:
Maximum Click Count until banner is deactivated

setMaxImpression

public void setMaxImpression(int MaxImpression)
Set Max Impression Count.

Specified by:
setMaxImpression in interface I_CM_Ad
Parameters:
MaxImpression - Maximum Impression Count until banner is deactivated

getMaxImpression

public int getMaxImpression()
Get Max Impression Count.

Specified by:
getMaxImpression in interface I_CM_Ad
Returns:
Maximum Impression Count until banner is deactivated

setName

public void setName(String Name)
Set Name.

Specified by:
setName in interface I_CM_Ad
Parameters:
Name - Alphanumeric identifier of the entity

getName

public String getName()
Get Name.

Specified by:
getName in interface I_CM_Ad
Returns:
Alphanumeric identifier of the entity

getKeyNamePair

public KeyNamePair getKeyNamePair()
Get Record ID/ColumnName

Returns:
ID/ColumnName pair

setStartDate

public void setStartDate(Timestamp StartDate)
Set Start Date.

Specified by:
setStartDate in interface I_CM_Ad
Parameters:
StartDate - First effective day (inclusive)

getStartDate

public Timestamp getStartDate()
Get Start Date.

Specified by:
getStartDate in interface I_CM_Ad
Returns:
First effective day (inclusive)

setStartImpression

public void setStartImpression(int StartImpression)
Set Start Count Impression.

Specified by:
setStartImpression in interface I_CM_Ad
Parameters:
StartImpression - For rotation we need a start count

getStartImpression

public int getStartImpression()
Get Start Count Impression.

Specified by:
getStartImpression in interface I_CM_Ad
Returns:
For rotation we need a start count

setTarget_Frame

public void setTarget_Frame(String Target_Frame)
Set Target Frame.

Specified by:
setTarget_Frame in interface I_CM_Ad
Parameters:
Target_Frame - Which target should be used if user clicks?

getTarget_Frame

public String getTarget_Frame()
Get Target Frame.

Specified by:
getTarget_Frame in interface I_CM_Ad
Returns:
Which target should be used if user clicks?

setTargetURL

public void setTargetURL(String TargetURL)
Set Target URL.

Specified by:
setTargetURL in interface I_CM_Ad
Parameters:
TargetURL - URL for the Target

getTargetURL

public String getTargetURL()
Get Target URL.

Specified by:
getTargetURL in interface I_CM_Ad
Returns:
URL for the Target

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.