org.exolab.castor.mapping
public class AccessMode extends Object implements Cloneable, Comparable, Serializable
In persistent storage each class is defined as having one of three access modes:
Version: $Revision: 6216 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
| 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 | |
|---|---|
| Object | clone()
Clone only returns the one and only instance of this kind.
|
| int | compareTo(Object other)
Compares id against id of the specified object. |
| int | compareTo(AccessMode other) |
| 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(String accessMode)
Returns the access mode from the name. |
| static AccessMode | valueOf(short accessMode) |
Returns: The original instance.
Parameters: other Object to be compared with this instance.
Returns: A negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
Parameters: other Object to be compared with this instance.
Returns: true if other equals this else false.
Returns: Hash code of this object.
Returns: The existing instance of the enum.
So you can use '=='
like 'equals' even if you use a deserialized Enum.
Returns: String representation of this kind.
Parameters: accessMode The access mode name
Returns: The access mode