public abstract class Label
extends java.lang.Object
rhnServerGroupType
and
rhnVirtualInstanceType
. Additional columns can be mapped in subclasses.
AbstractLabelNameHelper
is conceptually the same as this class; however, it is
not implemented as an immutable like this class.
For an example of how to implement a Label, take a look at VirtualInstanceType and VirtualInstanceTypeFactory.
VirtualInstanceType
Constructor and Description |
---|
Label() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object)
Two labels are considered equal when they have the same name and label text.
|
java.util.Date |
getCreated()
Get the date on which this label was created.
|
java.lang.Long |
getId()
Returns the primary key.
|
java.lang.String |
getLabel()
Returns the label text of this label.
|
java.util.Date |
getModified()
Get the date of last modification.
|
java.lang.String |
getName()
Returns the name of this label.
|
int |
hashCode() |
public java.lang.Long getId()
public java.lang.String getName()
public java.lang.String getLabel()
public java.util.Date getCreated()
public java.util.Date getModified()
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- The object to compare against this labeltrue
if object
is a label and its
label text and name are the same as this label.public int hashCode()
hashCode
in class java.lang.Object