java.io.Serializable
, java.lang.Cloneable
, java.lang.Comparable
public class AccessMode
extends java.lang.Object
implements java.lang.Cloneable, java.lang.Comparable, java.io.Serializable
In persistent storage each class is defined as having one of three access modes:
Modifier and Type | Field | Description |
---|---|---|
static AccessMode |
DbLocked |
DbLocked access.
|
static AccessMode |
Exclusive |
Exclusive access.
|
static AccessMode |
ReadOnly |
Read only access.
|
static AccessMode |
Shared |
Shared access.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
clone() |
Clone only returns the one and only instance of this kind.
|
int |
compareTo(java.lang.Object other) |
Compares id against id of the specified object.
|
int |
compareTo(AccessMode other) |
|
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.
|
public static final AccessMode ReadOnly
public static final AccessMode Shared
public static final AccessMode Exclusive
public static final AccessMode DbLocked
public static AccessMode valueOf(java.lang.String accessMode)
Shared
).
Otherwise returns the named access mode.accessMode
- The access mode namepublic static AccessMode valueOf(short accessMode)
public short getId()
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- Object to be compared with this instance.true
if other equals this else false
.public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(java.lang.Object other)
equals(Object)
.compareTo
in interface java.lang.Comparable
other
- Object to be compared with this instance.public int compareTo(AccessMode other)
protected java.lang.Object readResolve()
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com