© 2001 BEA Systems, Inc.

com.bea.commerce.platform.ad
Class AdInfo

java.lang.Object
  |
  +--com.bea.commerce.platform.ad.AdInfo
All Implemented Interfaces:
java.io.Serializable

public class AdInfo
extends java.lang.Object
implements java.io.Serializable

This is a "struct" class for the information stored for a ad.

See Also:
Serialized Form

Constructor Summary
AdInfo()
          Construct an initialized AdInfo.
AdInfo(long bucketId, java.lang.String userId, java.lang.String placeholder, java.lang.String containerUID, java.lang.String containerType, java.lang.String contextUID, int weight, java.lang.String query, int count)
          Construct an AdInfo providing the properties
AdInfo(long bucketId, java.lang.String userId, java.lang.String placeholder, java.lang.String containerUID, java.lang.String containerType, java.lang.String contextUID, int weight, java.lang.String query, int count, java.sql.Timestamp expiration)
          Construct an AdInfo providing the properties
 
Method Summary
 java.sql.Timestamp getAdExpiration()
          get the ad expiration
 long getBucketId()
          get the ad bucket id
 java.lang.String getContainerType()
          get the container type
 java.lang.String getContainerUID()
          get the container name
 java.lang.String getContextUID()
          get the contextUID name
 int getCount()
          get the view count
 java.lang.String getPlaceholder()
          get the placeholder name
 java.lang.String getQuery()
          get the query string
 java.lang.String getUserId()
          get the userId
 int getWeight()
          get the ad weight
 void setAdExpiration(java.sql.Timestamp expiration)
          set the ad expiration
 void setBucketId(long bucketId)
          set the ad bucket id
 void setContainerType(java.lang.String containerType)
          set the container type
 void setContainerUID(java.lang.String containerUID)
          set the container name
 void setContextUID(java.lang.String contextUID)
          set the contextUID name
 void setCount(int count)
          set the view count
 void setPlaceholder(java.lang.String placeholder)
          set the placeholder name
 void setQuery(java.lang.String query)
          set the query string
 void setUserId(java.lang.String userId)
          set the userId
 void setWeight(int weight)
          set the ad weight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdInfo

public AdInfo()
Construct an initialized AdInfo.

AdInfo

public AdInfo(long bucketId,
              java.lang.String userId,
              java.lang.String placeholder,
              java.lang.String containerUID,
              java.lang.String containerType,
              java.lang.String contextUID,
              int weight,
              java.lang.String query,
              int count)
Construct an AdInfo providing the properties
Parameters:
userId - the userId for the ad
placeholder - the name of the placeholder
containerUID - the name of the container
containerType - the type of the context
contextUID - the context that created the ad
weight - the weight that add has relative to other ads
query - the content management query string
count - the view count

AdInfo

public AdInfo(long bucketId,
              java.lang.String userId,
              java.lang.String placeholder,
              java.lang.String containerUID,
              java.lang.String containerType,
              java.lang.String contextUID,
              int weight,
              java.lang.String query,
              int count,
              java.sql.Timestamp expiration)
Construct an AdInfo providing the properties
Parameters:
userId - the userId for the ad
placeholder - the name of the placeholder
containerUID - the name of the container
containerType - the type of the context
contextUID - the context that created the ad
weight - the weight that add has relative to other ads
query - the content management query string
count - the view count
expiration - the ad expiration
Method Detail

setUserId

public void setUserId(java.lang.String userId)
set the userId

getUserId

public java.lang.String getUserId()
get the userId

setPlaceholder

public void setPlaceholder(java.lang.String placeholder)
set the placeholder name

getPlaceholder

public java.lang.String getPlaceholder()
get the placeholder name

setContextUID

public void setContextUID(java.lang.String contextUID)
set the contextUID name

getContextUID

public java.lang.String getContextUID()
get the contextUID name

setContainerUID

public void setContainerUID(java.lang.String containerUID)
set the container name

getContainerUID

public java.lang.String getContainerUID()
get the container name

setContainerType

public void setContainerType(java.lang.String containerType)
set the container type

getContainerType

public java.lang.String getContainerType()
get the container type

setWeight

public void setWeight(int weight)
set the ad weight

getWeight

public int getWeight()
get the ad weight

setBucketId

public void setBucketId(long bucketId)
set the ad bucket id

getBucketId

public long getBucketId()
get the ad bucket id

setQuery

public void setQuery(java.lang.String query)
set the query string

getQuery

public java.lang.String getQuery()
get the query string

setCount

public void setCount(int count)
set the view count

getCount

public int getCount()
get the view count

setAdExpiration

public void setAdExpiration(java.sql.Timestamp expiration)
set the ad expiration

getAdExpiration

public java.sql.Timestamp getAdExpiration()
get the ad expiration

© 2001 BEA Systems, Inc.

Copyright © 2001 BEA Systems, Inc. All Rights Reserved