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) |
.class table="CATEGORY"
cern.laser.business.data.CategoryImpl.CategoryImpl | ( | ) |
Empty constructor for Hibernate.
cern.laser.business.data.CategoryImpl.CategoryImpl | ( | CategoryDefinition | definition | ) |
categoryDefinition |
References cern.laser.business.data.CategoryImpl.setDefinition().
cern.laser.business.data.CategoryImpl.CategoryImpl | ( | Integer | categoryId, | |
String | name, | |||
String | description, | |||
String | path, | |||
boolean | isLeaf | |||
) |
categoryId | ||
name | ||
description | ||
path | ||
isLeaf |
void cern.laser.business.data.CategoryImpl.addAlarm | ( | Alarm | alarm | ) |
Sets up the bi-directional relationship between this category and the given alarm.
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().
void cern.laser.business.data.CategoryImpl.addChildCategory | ( | Category | category | ) |
category |
Implements cern.laser.business.data.Category.
References cern.laser.business.data.Category.getCategoryId(), cern.laser.business.data.CategoryImpl.getCategoryId(), cern.laser.business.data.CategoryImpl.getChildrenIds(), and cern.laser.business.data.CategoryImpl.isLeaf().
Referenced by com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.linkWithAlarms(), and cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.linkWithAlarms().
Object cern.laser.business.data.CategoryImpl.clone | ( | ) |
boolean cern.laser.business.data.CategoryImpl.containsAlarm | ( | Alarm | alarm | ) |
alarmId |
Implements cern.laser.business.data.Category.
References cern.laser.business.data.Alarm.getAlarmId(), and cern.laser.business.data.CategoryImpl.getAlarmIds().
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().
Integer cern.laser.business.data.CategoryImpl.getCategoryId | ( | ) |
.id generator-class="sequence" column="CATEGORY_ID" unsaved-value="null" .generator-param name="sequence" value="SQ_PK_CATEGORY"
Implements cern.laser.business.data.Category.
Referenced by cern.laser.business.data.CategoryImpl.addChildCategory(), cern.laser.business.data.CategoryImpl.equals(), cern.laser.business.data.CategoryImpl.hashCode(), com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.loadCategories(), cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.loadCategories(), com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.saveCategory(), and cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.saveCategory().
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 | ( | ) |
Implements cern.laser.business.data.Category.
References cern.laser.business.data.CategoryImpl.getDescription(), and cern.laser.business.data.CategoryImpl.getPath().
String cern.laser.business.data.CategoryImpl.getDescription | ( | ) |
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 | ( | ) |
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 | ( | ) |
Implements cern.laser.business.data.Category.
String cern.laser.business.data.CategoryImpl.getPath | ( | ) |
.property name="getPath" column="PATH" not-null="false" unique="false"
Implements cern.laser.business.data.Category.
Referenced by cern.laser.business.data.CategoryImpl.clone(), com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.flushCategory(), cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.flushCategory(), cern.laser.business.data.CategoryImpl.getDefinition(), cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.linkWithAlarms(), com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.loadCategories(), cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.loadCategories(), com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.saveCategory(), cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.saveCategory(), and cern.laser.business.data.CategoryImpl.toString().
int cern.laser.business.data.CategoryImpl.hashCode | ( | ) |
boolean cern.laser.business.data.CategoryImpl.isLeaf | ( | ) |
Implements cern.laser.business.data.Category.
References cern.laser.business.data.CategoryImpl.getChildrenIds().
Referenced by cern.laser.business.data.CategoryImpl.addChildCategory(), cern.laser.business.data.CategoryImpl.removeChildCategory(), and cern.laser.business.data.CategoryImpl.setChildrenIds().
void cern.laser.business.data.CategoryImpl.removeAlarm | ( | Alarm | alarm | ) |
Removes the bi-directional relationship between this category and the given alarm.
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.removeChildCategory | ( | Category | category | ) |
void cern.laser.business.data.CategoryImpl.setAlarmIds | ( | Set | newAlarms | ) |
newAlarms | The alarms to set. |
Referenced by alma.alarmsystem.alarmmessage.AlarmMessageConversion.getAlarm(), com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.loadCategories(), and cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.loadCategories().
void cern.laser.business.data.CategoryImpl.setCategoryId | ( | Integer | newCategoryId | ) |
void cern.laser.business.data.CategoryImpl.setChildrenIds | ( | Set | newChildren | ) |
References cern.laser.business.data.CategoryImpl.getChildrenIds(), and cern.laser.business.data.CategoryImpl.isLeaf().
Referenced by cern.laser.business.data.CategoryImpl.clone(), alma.alarmsystem.alarmmessage.AlarmMessageConversion.getAlarm(), com.cosylab.acs.laser.dao.ACSCategoryDAOImpl.loadCategories(), and cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl.loadCategories().
void cern.laser.business.data.CategoryImpl.setDefinition | ( | CategoryDefinition | definition | ) |
Implements cern.laser.business.data.Category.
References cern.laser.business.definition.data.CategoryDefinition.getDescription(), cern.laser.business.definition.data.CategoryDefinition.getPath(), cern.laser.business.data.CategoryImpl.setDescription(), cern.laser.business.data.CategoryImpl.setName(), and cern.laser.business.data.CategoryImpl.setPath().
Referenced by cern.laser.business.data.CategoryImpl.CategoryImpl().
void cern.laser.business.data.CategoryImpl.setDescription | ( | String | newDescription | ) |
void cern.laser.business.data.CategoryImpl.setName | ( | String | newName | ) |
void cern.laser.business.data.CategoryImpl.setParentId | ( | Integer | newParentId | ) |
void cern.laser.business.data.CategoryImpl.setPath | ( | String | newPath | ) |
String cern.laser.business.data.CategoryImpl.toString | ( | ) |