public class AccessMode extends Object implements Cloneable, Comparable<AccessMode>, 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)
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 AccessMode |
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(AccessMode other)
equals(Object).compareTo in interface Comparable<AccessMode>other - Object to be compared with this instance.protected AccessMode readResolve()
Copyright © 2016. All rights reserved.