Id Class
- public class Id
extends Object
implements Serializable
All other Id classes extend this class. It represents the primary keys of portal
objects in the database, and is used to uniquely identify them. Id
will
be needed when customizing most portal objects on a desktop.
-
Hierarchy
-
Object
Id
-
All Implemented Interfaces
-
Serializable
-
Direct Known Subclasses
-
BookDefinitionId
, BookGroupId
, BookInstanceId
, DesktopInstanceId
, LayoutDefinitionId
, LocalizationIntersectionId
, LocalizationLocaleId
, LookAndFeelDefinitionId
, MarkupDefinitionId
, MenuDefinitionId
, PageDefinitionId
, PageInstanceId
, PlaceholderDefinitionId
, PlacementId
, PortletDefinitionId
, PortletInstanceId
, ShellDefinitionId
, ThemeDefinitionId
id
protected int id
Id
public Id(int id)
equals(Object) Method
public boolean equals(Object
o)
-
Overrides
-
Object.equals(Object)
Parameters
-
o
- an
Id
object to compare to this Id
.
Returns
true
if this object is the same as the obj
argument; false
otherwise.
getId() Method
public int getId()
Returns
- the integer value of the
Id
.
hashCode() Method
public int hashCode()
-
Overrides
-
Object.hashCode()
Returns
- a hash code value for this object.
setId(int) Method
public void setId(int id)
Parameters
-
id
- the integer value that this
Id
should be set to.
toString() Method
public String
toString()
-
Overrides
-
Object.toString()
Returns
- the string value of the integer representing the
Id
.