com.bmc.cmdb.api
Class CMDBAttachmentLimit

java.lang.Object
  extended by com.bmc.cmdb.api.CMDBAttributeLimit
      extended by com.bmc.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.bmc.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 with no attachment pool.
CMDBAttachmentLimit(long maxSize, java.lang.String attachmentPoolName)
          Creates a attachment attribute limit with the specified size and attachment pool name.
 
Method Summary
 java.lang.String getAttachmentPoolName()
          Gets the name of the attachment pool.
 long getMaxSize()
          Gets the maximum size of the attachment.
 void setAttachmentPoolName(java.lang.String attaPoolName)
          Sets the name of the attachment pool.
 void setMaxSize(long maxSize)
          Sets the maximum size of the attachment.
 
Methods inherited from class com.bmc.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 with no attachment pool.


CMDBAttachmentLimit

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

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.

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.

Parameters:
attaPoolName - The name of the attachment pool


(c) Copyright 2004-2007 BMC Software, Inc.