Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Constructor Summary
`PersistedObject()`

Method Summary
`boolean` | `equals(java.lang.Object obj)`
`long` | `get_version_()`
`java.lang.Integer` | `getId()`
`int` | `hashCode()`
`protected void` | `set_version_(java.lang.Long newVer)`
`void` | `setId(java.lang.Integer id)`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### PersistedObject

    public PersistedObject()

Method Detail

### 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`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.