Public Member Functions

cern.laser.business.data.CategoryImpl Class Reference

Inheritance diagram for cern.laser.business.data.CategoryImpl:
cern.laser.business.data.Category

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)

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 (  ) 

Empty constructor for Hibernate.

cern.laser.business.data.CategoryImpl.CategoryImpl ( CategoryDefinition  definition  ) 
Parameters:
categoryDefinition 

References cern.laser.business.data.CategoryImpl.setDefinition().

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

Member Function Documentation

void cern.laser.business.data.CategoryImpl.addAlarm ( Alarm  alarm  ) 

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(), cern.laser.business.data.CategoryImpl.getAlarmIds(), and cern.laser.business.data.Alarm.getCategories().

boolean cern.laser.business.data.CategoryImpl.containsAlarm ( Alarm  alarm  ) 
boolean cern.laser.business.data.CategoryImpl.equals ( Object  obj  ) 
Set cern.laser.business.data.CategoryImpl.getAlarmIds (  ) 

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

Referenced by cern.laser.business.data.CategoryImpl.addAlarm(), cern.laser.business.data.CategoryImpl.containsAlarm(), com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.flushCategory(), cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.flushCategory(), and cern.laser.business.data.CategoryImpl.removeAlarm().

Set cern.laser.business.data.CategoryImpl.getChildrenIds (  ) 

.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

Referenced by cern.laser.business.data.CategoryImpl.addChildCategory(), cern.laser.business.data.CategoryImpl.clone(), cern.laser.business.data.CategoryImpl.isLeaf(), cern.laser.business.data.CategoryImpl.removeChildCategory(), cern.laser.business.data.CategoryImpl.setChildrenIds(), and cern.laser.business.data.CategoryImpl.toString().

CategoryDefinition cern.laser.business.data.CategoryImpl.getDefinition (  ) 
String cern.laser.business.data.CategoryImpl.getDescription (  ) 
Returns:
the descritpion .property name="getDescription" column="DESCRIPTION" not-null="false" unique="false"

Implements cern.laser.business.data.Category.

Referenced by com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.flushCategory(), cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.flushCategory(), and cern.laser.business.data.CategoryImpl.getDefinition().

String cern.laser.business.data.CategoryImpl.getName (  ) 
Returns:
the name .property name="getName" column="NAME" not-null="false" unique="false"

Implements cern.laser.business.data.Category.

Referenced by com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.loadCategories(), and cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.loadCategories().

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

Implements cern.laser.business.data.Category.

int cern.laser.business.data.CategoryImpl.hashCode (  ) 
void cern.laser.business.data.CategoryImpl.removeAlarm ( Alarm  alarm  ) 

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 cern.laser.business.data.CategoryImpl.getAlarmIds(), and cern.laser.business.data.Alarm.getCategories().

void cern.laser.business.data.CategoryImpl.setAlarmIds ( Set  newAlarms  ) 
void cern.laser.business.data.CategoryImpl.setDescription ( String  newDescription  ) 
void cern.laser.business.data.CategoryImpl.setParentId ( Integer  newParentId  ) 
String cern.laser.business.data.CategoryImpl.toString (  ) 

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties