public class IOHashKey extends Object implements Serializable
Constructor and Description |
---|
IOHashKey(int pObjectType,
int pObjectId) |
IOHashKey(int pObjectType,
int pObjectId,
int pPubId)
Construct an IOHashKey object
|
IOHashKey(IOAtom.ObjectType pObjectType,
int pObjectId) |
IOHashKey(IOAtom.ObjectType objectType,
int objectId,
int pubId) |
IOHashKey(String pObjectType,
int pObjectId) |
Modifier and Type | Method and Description |
---|---|
static URI |
createURI(int pObjectType,
int pObjectId)
Creates an internal URI for a hash key.
|
static URI |
createURI(IOAtom.ObjectType pObjectType,
int pObjectId) |
boolean |
equals(Object o)
Check if an object is equal to this object.
|
int |
getObjectId()
The unique internal ID of the object, which it is identified in the
underlying persistent storage.
|
int |
getObjectType()
The type of object, as defined in the IOAtom interface.
|
IOAtom.ObjectType |
getObjectTypeAsObjectType() |
int |
getPublicationId()
Return the ID of the publication to which the object belongs.
|
int |
hashCode() |
static boolean |
isInternalURI(URI pURI)
Check if the URI is an internal escenic URI on the format internal:/section/123.
|
boolean |
isValid()
Return wether or not the hash key has been populated with valid values.
|
IOHashKey |
setObjectId(int pObjectId)
Set the value of objectId.
|
IOHashKey |
setObjectType(int pObjectType)
Set the value of objectType.
|
IOHashKey |
setPublicationId(int pPublicationId)
Set the value of publicationId
|
String |
toString()
Generate a string representation of the IOHashKey
|
URI |
toURI()
Returns an internal URI for this hash key.
|
static IOHashKey |
valueOf(URI pURI) |
public IOHashKey(int pObjectType, int pObjectId, int pPubId)
pObjectType
- the type of object from constants in IOAtompObjectId
- the id of the objectpPubId
- the id of the owning publicationpublic IOHashKey(int pObjectType, int pObjectId)
public IOHashKey(IOAtom.ObjectType pObjectType, int pObjectId)
public IOHashKey(String pObjectType, int pObjectId)
public IOHashKey(IOAtom.ObjectType objectType, int objectId, int pubId)
public boolean isValid()
public boolean equals(Object o)
public IOAtom.ObjectType getObjectTypeAsObjectType()
public int getObjectType()
public IOHashKey setObjectType(int pObjectType)
pObjectType
- Value to assign to objectType.public int getObjectId()
public IOHashKey setObjectId(int pObjectId)
pObjectId
- Value to assign to objectId.public int getPublicationId()
public IOHashKey setPublicationId(int pPublicationId)
public String toString()
public final URI toURI()
URI
which uniquely identifies this IOHashKey
createURI(int, int)
public static URI createURI(int pObjectType, int pObjectId)
pObjectType
- the objects typepObjectId
- the objects idURI
which uniquely identifies the IOHashKey
.public static URI createURI(IOAtom.ObjectType pObjectType, int pObjectId)
public static boolean isInternalURI(URI pURI)
pURI
- The URI to check. May be null.© 1998- 2018 Stibo DX