© 2002 BEA Systems, Inc.


com.bea.p13n.ad
Class AdInfo

java.lang.Object
  |
  +--com.bea.p13n.ad.AdInfo

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

This is a data structure for the information stored for about ad in an ad bucket.

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


© 2002 BEA Systems, Inc.

Copyright © 2002 BEA Systems, Inc. All Rights Reserved