|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.exolab.castor.mapping.AccessMode
The access mode for a class. This object is used by class descriptors to specify the access mode for a class.
In persistent storage each class is defined as having one of three access modes:
| Field Summary | |
static AccessMode |
DbLocked
DbLocked access. |
static AccessMode |
Exclusive
Exclusive access. |
static AccessMode |
ReadOnly
Read only access. |
static AccessMode |
Shared
Shared access. |
| Method Summary | |
java.lang.Object |
clone()
Clone only returns the one and only instance of this kind. |
int |
compareTo(AccessMode other)
|
int |
compareTo(java.lang.Object other)
Compares id against id of the specified object. |
boolean |
equals(java.lang.Object other)
Returns if the specified object and this are one and the same instance. |
short |
getId()
|
java.lang.String |
getName()
|
int |
hashCode()
Returns the hash code of this object. |
protected java.lang.Object |
readResolve()
Called during deserialization. |
java.lang.String |
toString()
Returns the String representation of this kind. |
static AccessMode |
valueOf(short accessMode)
|
static AccessMode |
valueOf(java.lang.String accessMode)
Returns the access mode from the name. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final AccessMode ReadOnly
public static final AccessMode Shared
public static final AccessMode Exclusive
public static final AccessMode DbLocked
| Method Detail |
public static AccessMode valueOf(java.lang.String accessMode)
Shared).
Otherwise returns the named access mode.
accessMode - The access mode name
public static AccessMode valueOf(short accessMode)
public short getId()
public java.lang.String getName()
public java.lang.String toString()
public java.lang.Object clone()
public boolean equals(java.lang.Object other)
other - Object to be compared with this instance.
true if other equals this else false.public int hashCode()
public int compareTo(java.lang.Object other)
equals(Object).
compareTo in interface java.lang.Comparableother - Object to be compared with this instance.
public int compareTo(AccessMode other)
protected java.lang.Object readResolve()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||