cern::laser::business::data::CategoryImpl Class Reference

Inheritance diagram for cern::laser::business::data::CategoryImpl:
Inheritance graph
[legend]
Collaboration diagram for cern::laser::business::data::CategoryImpl:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CategoryImpl ()
 CategoryImpl (CategoryDefinition definition)
 CategoryImpl (Integer categoryId, String name, String description, String path, boolean isLeaf)
Integer getCategoryId ()
String getName ()
String getDescription ()
Integer getParentId ()
void addChildCategory (Category category)
void removeChildCategory (Category category)
boolean isLeaf ()
void addAlarm (Alarm alarm)
void removeAlarm (Alarm alarm)
boolean containsAlarm (Alarm alarm)
String getPath ()
CategoryDefinition getDefinition ()
void setDefinition (CategoryDefinition definition)
void setCategoryId (Integer newCategoryId)
void setName (String newName)
void setDescription (String newDescription)
void setParentId (Integer newParentId)
void setPath (String newPath)
boolean equals (Object obj)
int hashCode ()
Object clone ()
String toString ()
Set getChildrenIds ()
void setChildrenIds (Set newChildren)
Set getAlarmIds ()
void setAlarmIds (Set newAlarms)

Private Attributes

Integer categoryId
String name
String description
Integer parentId
Set childrenIds
Set alarmIds
String path
boolean isLeaf

Detailed Description

Version:
Revision
1.5
Date
2006/09/25 08:52:36
Author:
Niall Stapley
Katarina Sigerud

.class table="CATEGORY"


Constructor & Destructor Documentation

cern::laser::business::data::CategoryImpl::CategoryImpl (  )  [inline]

Empty constructor for Hibernate.

cern::laser::business::data::CategoryImpl::CategoryImpl ( CategoryDefinition  definition  )  [inline]
Parameters:
categoryDefinition 

References setDefinition().

cern::laser::business::data::CategoryImpl::CategoryImpl ( Integer  categoryId,
String  name,
String  description,
String  path,
boolean  isLeaf 
) [inline]
Parameters:
categoryId 
name 
description 
path 
isLeaf 

Member Function Documentation

void cern::laser::business::data::CategoryImpl::addAlarm ( Alarm  alarm  )  [inline]

Sets up the bi-directional relationship between this category and the given alarm.

Parameters:
alarm the alarm to add. At the same time this category is added to the alarm's collection of categories.

References cern::laser::business::data::Alarm::getAlarmId(), getAlarmIds(), and cern::laser::business::data::Alarm::getCategories().

void cern::laser::business::data::CategoryImpl::addChildCategory ( Category  category  )  [inline]
Object cern::laser::business::data::CategoryImpl::clone (  )  [inline]
boolean cern::laser::business::data::CategoryImpl::containsAlarm ( Alarm  alarm  )  [inline]
boolean cern::laser::business::data::CategoryImpl::equals ( Object  obj  )  [inline]

References getCategoryId().

Set cern::laser::business::data::CategoryImpl::getAlarmIds (  )  [inline]

.set name="getAlarmIds" table="ALARM_CATEGORY" inverse="false" lazy="true" .collection-key column="CATEGORY_ID" .collection-element column="ALARM_ID" type="string"

References alarmIds.

Referenced by addAlarm(), containsAlarm(), alma::alarmsystem::alarmmessage::AlarmMessageConversion::createACSCategory(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::flushCategory(), and removeAlarm().

Integer cern::laser::business::data::CategoryImpl::getCategoryId (  )  [inline]
Set cern::laser::business::data::CategoryImpl::getChildrenIds (  )  [inline]

.set name="getChildrenIds" table="CATEGORY" inverse="true" cascade="all-delete-orphan" lazy="true" .collection-key column="PARENT_ID" .collection-element column="CATEGORY_ID" type="integer" hib

References childrenIds.

Referenced by addChildCategory(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::adjustParentIDs(), clone(), alma::alarmsystem::alarmmessage::AlarmMessageConversion::createACSCategory(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::dumpCategories(), isLeaf(), removeChildCategory(), setChildrenIds(), and toString().

CategoryDefinition cern::laser::business::data::CategoryImpl::getDefinition (  )  [inline]
Returns:

Implements cern::laser::business::data::Category.

References getDescription(), and getPath().

String cern::laser::business::data::CategoryImpl::getDescription (  )  [inline]
String cern::laser::business::data::CategoryImpl::getName (  )  [inline]
Integer cern::laser::business::data::CategoryImpl::getParentId (  )  [inline]
Returns:
the parentId .property name="getParentId" column="PARENT_ID" not-null="false" unique="false"
Integer

Implements cern::laser::business::data::Category.

References parentId.

Referenced by alma::alarmsystem::alarmmessage::AlarmMessageConversion::createACSCategory(), and com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::dumpCategories().

String cern::laser::business::data::CategoryImpl::getPath (  )  [inline]
int cern::laser::business::data::CategoryImpl::hashCode (  )  [inline]

References getCategoryId().

void cern::laser::business::data::CategoryImpl::removeAlarm ( Alarm  alarm  )  [inline]

Removes the bi-directional relationship between this category and the given alarm.

Parameters:
alarm the alarm to remove. At the same time this category is removed from the alarm's collection of categories.

Implements cern::laser::business::data::Category.

References getAlarmIds(), and cern::laser::business::data::Alarm::getCategories().

void cern::laser::business::data::CategoryImpl::removeChildCategory ( Category  category  )  [inline]
void cern::laser::business::data::CategoryImpl::setAlarmIds ( Set  newAlarms  )  [inline]
void cern::laser::business::data::CategoryImpl::setCategoryId ( Integer  newCategoryId  )  [inline]
void cern::laser::business::data::CategoryImpl::setChildrenIds ( Set  newChildren  )  [inline]
void cern::laser::business::data::CategoryImpl::setDefinition ( CategoryDefinition  definition  )  [inline]
void cern::laser::business::data::CategoryImpl::setDescription ( String  newDescription  )  [inline]
void cern::laser::business::data::CategoryImpl::setName ( String  newName  )  [inline]
void cern::laser::business::data::CategoryImpl::setParentId ( Integer  newParentId  )  [inline]
void cern::laser::business::data::CategoryImpl::setPath ( String  newPath  )  [inline]
String cern::laser::business::data::CategoryImpl::toString (  )  [inline]

Member Data Documentation

Referenced by getAlarmIds(), and setAlarmIds().

Referenced by getChildrenIds(), and setChildrenIds().

Referenced by getName(), setName(), and toString().

Referenced by getParentId(), setParentId(), and toString().

Referenced by getPath(), and setPath().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2