Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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 

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.

void cern::laser::business::data::CategoryImpl::addChildCategory Category  category  )  [inline]
 

Parameters:
category 

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

Object cern::laser::business::data::CategoryImpl::clone  )  [inline]
 

boolean cern::laser::business::data::CategoryImpl::containsAlarm Alarm  alarm  )  [inline]
 

Parameters:
alarmId 
Returns:

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

boolean cern::laser::business::data::CategoryImpl::equals Object  obj  )  [inline]
 

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"

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

.id generator-class="sequence" column="CATEGORY_ID" unsaved-value="null" .generator-param name="sequence" value="SQ_PK_CATEGORY"

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

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

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

Returns:

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

String cern::laser::business::data::CategoryImpl::getDescription  )  [inline]
 

Returns:
the descritpion .property name="getDescription" column="DESCRIPTION" not-null="false" unique="false"

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

String cern::laser::business::data::CategoryImpl::getName  )  [inline]
 

Returns:
the name .property name="getName" column="NAME" not-null="false" unique="false"

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

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.

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

.property name="getPath" column="PATH" not-null="false" unique="false"

Returns:
String

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

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

boolean cern::laser::business::data::CategoryImpl::isLeaf  )  [inline]
 

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

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.

void cern::laser::business::data::CategoryImpl::removeChildCategory Category  category  )  [inline]
 

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

void cern::laser::business::data::CategoryImpl::setAlarmIds Set  newAlarms  )  [inline]
 

Parameters:
newAlarms The alarms to set.

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]
 

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

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

Set cern::laser::business::data::CategoryImpl::alarmIds [private]
 

Integer cern::laser::business::data::CategoryImpl::categoryId [private]
 

Set cern::laser::business::data::CategoryImpl::childrenIds [private]
 

String cern::laser::business::data::CategoryImpl::description [private]
 

boolean cern::laser::business::data::CategoryImpl::isLeaf [private]
 

String cern::laser::business::data::CategoryImpl::name [private]
 

Integer cern::laser::business::data::CategoryImpl::parentId [private]
 

String cern::laser::business::data::CategoryImpl::path [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:08:43 2009 for ACS Java API by doxygen 1.3.8