org.hyperic.hibernate
Class PersistedObject
java.lang.Object
org.hyperic.hibernate.PersistedObject
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- Action, AgentReportStatus, AIHistory, AISchedule, Alert, AlertActionLog, AlertCondition, AlertConditionLog, AlertDefinition, AlertDefinitionState, AppdefBean, Attachment, Audit, AuthzNamedBean, AvailabilityDataRLE, Baseline, Calendar, CalendarEntry, Category, ConfigProperty, ConfigResponseDB, ControlHistory, ControlSchedule, Cprop, CpropKey, Crispo, CrispoOption, DashboardConfig, Escalation, EscalationState, EventLog, ExecutionStrategyInfo, ExecutionStrategyTypeInfo, GalertActionLog, GalertAuxLog, GalertDef, GalertLog, GroupMember, GtriggerInfo, GtriggerTypeInfo, Measurement, MeasurementTemplate, MetricAuxLogPojo, MonitorableType, PersistedCritter, Plugin, Principal, RegisteredTrigger, ResourceAuxLogPojo, ResourceEdge, ResourceGroup, ResourceRelation, RoleCalendar, RtErrorCode, RtRequestStat, RtStatError, UIPlugin, UpdateStatus, View, Virtual
public abstract class PersistedObject
- extends java.lang.Object
- implements java.io.Serializable
Base class for HQ persisted objects with Integer value ids.
Some of these methods are marked as protected. This allows Hibernate to
pull & set values (due to its fancy runtime subclassing), but also
restricts other rogue objects from doing bad things like setting the ID
& version #.
- See Also:
LongIdPersistedObject
,
Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
PersistedObject
public PersistedObject()
setId
public void setId(java.lang.Integer id)
getId
public java.lang.Integer getId()
get_version_
public long get_version_()
set_version_
protected void set_version_(java.lang.Long newVer)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.