|
|||||||||
| Home >> All >> ru >> gammalabs >> ice >> publishing >> [ framework overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
ru.gammalabs.ice.publishing.framework
Class Id

java.lang.Objectru.gammalabs.ice.publishing.framework.Id
- All Implemented Interfaces:
- java.lang.Cloneable
- public class Id
- extends java.lang.Object
- implements java.lang.Cloneable
- extends java.lang.Object
Class for identification number of
any object such as IE, TypeIE and so on.
| Field Summary | |
private java.lang.Class |
clazz
The class of object for which this Id object is identifier. |
static long |
DAO_EXCEPTION
|
private long |
id
The identifier as long. |
private boolean |
isNull
Indicates if this identifier is null (not definied) identifier |
static long |
NOT_ID_OBJECT
Error code where string from which Id object is
created is not string of Id, not int string. |
static long |
NOT_VALID_CLASS
|
static long |
NULL_CLASS
|
static long |
NULL_ID_OBJECT
|
| Constructor Summary | |
Id(java.lang.Class clazz)
Constructs null identifier of object from class of object for which this identifier is. |
|
Id(long id,
java.lang.Class clazz)
Constructs identifier of object from long identifier and class of
object for which this identifier is. |
|
| Method Summary | |
boolean |
checkClazz(java.lang.Class objClass)
Checks class objClass, is the object of this class
can be the object for which this identifier is valid. |
java.lang.Object |
clone()
Clone this object. |
int |
compare(java.lang.Object obj)
Compares this object with Id object obj. |
boolean |
equals(java.lang.Object obj)
Compares this object with another Id object obj. |
long |
getId()
Returns the identifiier as long. |
int |
hashCode()
Returns a hash code value for the object. |
boolean |
isNull()
Returns true if this identifier is null (not definied) identifier. |
java.lang.String |
toString()
Returns string which describes this identifier object. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
NOT_ID_OBJECT
public static final long NOT_ID_OBJECT
- Error code where string from which
Idobject is created is not string ofId, notintstring.- See Also:
- Constant Field Values
NOT_VALID_CLASS
public static final long NOT_VALID_CLASS
- See Also:
- Constant Field Values
NULL_ID_OBJECT
public static final long NULL_ID_OBJECT
- See Also:
- Constant Field Values
NULL_CLASS
public static final long NULL_CLASS
- See Also:
- Constant Field Values
DAO_EXCEPTION
public static final long DAO_EXCEPTION
- See Also:
- Constant Field Values
id
private long id
- The identifier as long.
clazz
private java.lang.Class clazz
- The class of object for which this
Idobject is identifier.
isNull
private boolean isNull
- Indicates if this identifier is null (not definied) identifier
| Constructor Detail |
Id
public Id(long id,
java.lang.Class clazz)
- Constructs identifier of object from
longidentifier and class of object for which this identifier is.
Id
public Id(java.lang.Class clazz)
- Constructs null identifier of object from class of
object for which this identifier is.
| Method Detail |
hashCode
public int hashCode()
- Returns a hash code value for the object. This method is
supported for the use identifier as key in
HashMap.
clone
public java.lang.Object clone()
- Clone this object.
toString
public java.lang.String toString()
- Returns string which describes this identifier object.
equals
public boolean equals(java.lang.Object obj)
- Compares this object with another
Idobject obj. If this object equals to object obj returntrue.
getId
public long getId()
- Returns the identifiier as
long.
isNull
public boolean isNull()
- Returns
trueif this identifier is null (not definied) identifier.
checkClazz
public boolean checkClazz(java.lang.Class objClass)
- Checks class
objClass, is the object of this class can be the object for which this identifier is valid.
compare
public int compare(java.lang.Object obj) throws CMSException
- Compares this object with
Idobject obj. If this object equals to object obj return0.
|
|||||||||
| Home >> All >> ru >> gammalabs >> ice >> publishing >> [ framework overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
ru.gammalabs.ice.publishing.framework.Id