public class AccessMode extends Object implements Cloneable, Comparable, Serializable
In persistent storage each class is defined as having one of three access modes:
Modifier and Type | Field and 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 and Description |
---|---|
Object |
clone()
Clone only returns the one and only instance of this kind.
|
int |
compareTo(AccessMode other) |
int |
compareTo(Object other)
Compares id against id of the specified object.
|
boolean |
equals(Object other)
Returns if the specified object and this are one and the same instance.
|
short |
getId() |
String |
getName() |
int |
hashCode()
Returns the hash code of this object.
|
protected Object |
readResolve()
Called during deserialization.
|
String |
toString()
Returns the String representation of this kind.
|
static AccessMode |
valueOf(short accessMode) |
static AccessMode |
valueOf(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(String accessMode)
Shared
).
Otherwise returns the named access mode.accessMode
- The access mode namepublic static AccessMode valueOf(short accessMode)
public short getId()
public String getName()
public String toString()
public Object clone()
public boolean equals(Object other)
public int hashCode()
public int compareTo(Object other)
equals(Object)
.compareTo
in interface Comparable
other
- Object to be compared with this instance.public int compareTo(AccessMode other)
protected Object readResolve()
Copyright © 2015. All rights reserved.