com.remedy.cmdb.api
Class CMDBAttachmentLimit

java.lang.Object
  extended bycom.remedy.cmdb.api.CMDBAttributeLimit
      extended bycom.remedy.cmdb.api.CMDBAttachmentLimit

public class CMDBAttachmentLimit
extends CMDBAttributeLimit

The CMDBAttachmentLimit class defines the limit of an attachment attribute.


Field Summary
 
Fields inherited from class com.remedy.cmdb.api.CMDBAttributeLimit
CMDB_ATTR_DATA_TYPE_ATTACH, CMDB_ATTR_DATA_TYPE_ATTACH_POOL, CMDB_ATTR_DATA_TYPE_CHAR, CMDB_ATTR_DATA_TYPE_CURRENCY, CMDB_ATTR_DATA_TYPE_DATE, CMDB_ATTR_DATA_TYPE_DECIMAL, CMDB_ATTR_DATA_TYPE_DIARY, CMDB_ATTR_DATA_TYPE_ENUM, CMDB_ATTR_DATA_TYPE_INTEGER, CMDB_ATTR_DATA_TYPE_NULL, CMDB_ATTR_DATA_TYPE_REAL, CMDB_ATTR_DATA_TYPE_TIME, CMDB_ATTR_DATA_TYPE_TIME_OF_DAY
 
Constructor Summary
CMDBAttachmentLimit()
          Default constructor that creates a attachment attribute limit with an unlimited size, and without attachment pool.
CMDBAttachmentLimit(long maxSize, java.lang.String attachmentPoolName)
          Creates a attachment attribute limit with the specified limit information.
 
Method Summary
 java.lang.String getAttachmentPoolName()
          Gets the name of the attachment pool of the attachment attribute limit.
 long getMaxSize()
          Gets the maximum size of the attachment.
 void setAttachmentPoolName(java.lang.String attaPoolName)
          Sets the name of the attachment pool into the attachment attribute limit.
 void setMaxSize(long maxSize)
          Sets the maximum size of the attachment.
 
Methods inherited from class com.remedy.cmdb.api.CMDBAttributeLimit
getDataType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMDBAttachmentLimit

public CMDBAttachmentLimit()
Default constructor that creates a attachment attribute limit with an unlimited size, and without attachment pool.


CMDBAttachmentLimit

public CMDBAttachmentLimit(long maxSize,
                           java.lang.String attachmentPoolName)
Creates a attachment attribute limit with the specified limit information.

Parameters:
maxSize - the maximum size of the attachment
attachmentPoolName - the name of the attachment pool of the attachment attribute limit
Method Detail

getMaxSize

public long getMaxSize()
Gets the maximum size of the attachment.

Returns:
the maximum size of the attachment

getAttachmentPoolName

public java.lang.String getAttachmentPoolName()
Gets the name of the attachment pool of the attachment attribute limit.

Returns:
the name of the attachment pool limit

setMaxSize

public void setMaxSize(long maxSize)
Sets the maximum size of the attachment.

Parameters:
maxSize - the maximum size of the attachment

setAttachmentPoolName

public void setAttachmentPoolName(java.lang.String attaPoolName)
Sets the name of the attachment pool into the attachment attribute limit.

Parameters:
attaPoolName - the name of the attachment pool