|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.novell.service.nds.NdsHold
Provides access to values of the Hold attribute. It is used for attributes whose values represent an object name/level pair.
The Hold syntax is an accounting quantity, which is an amount tentatively held against a subject's credit limit, pending completion of a transaction. NDS treates the Hold amount similarly to the Counter syntax, with new values added to or subtracted from the base total. If the evaluated hold amount goes to 0 (zero), the Hold record is deleted.
Matching Rules: Equality
NdsSyntaxId
Constructor Summary | |
NdsHold(java.lang.String objectName,
long amount)
Constructs an NdsHold object based on the specified objectName and amount parameters. |
Method Summary | |
boolean |
approximate(java.lang.Object anObject)
Compares two Objects using the approximate matching rule. |
java.lang.Object |
clone()
Creates a new object of the same class as this object. |
int |
compareTo(java.lang.Object anObject)
Compares two objects for ordering, or compares two strings lexicographically. |
int |
count()
Returns the number of elements in this sequence. |
boolean |
equals(java.lang.Object anObject)
Compares two Objects for equality. |
long |
getAmount()
Returns the accounting quantity held against the target object's credit limit. |
int |
getNdsSyntaxId()
Returns the int that represents this NDS syntax ID. |
java.lang.String |
getObjectName()
Returns the String reference to the target object. |
|
getValue(java.lang.String compositeId)
Returns a SchemaValue object based on the given passed-in string containing the element value. |
java.util.Enumeration |
getValueIds()
Returns an enumeration of composite IDs. |
java.util.Enumeration |
getValues()
Returns an enumeration of the elements in this composite. |
boolean |
supportsMatchingRules(int matchingRules)
Checks to see if this object supports the specified matching rules. |
java.lang.String |
toString()
Generates a string representation of the object. |
Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public NdsHold(java.lang.String objectName, long amount)
objectName
- The distinguished name of the target object stored
as a String.amount
- The Accounting quantity tentatively held against
the target object's credit limit.Method Detail |
public int compareTo(java.lang.Object anObject) throws java.lang.Exception
public boolean equals(java.lang.Object anObject)
The equals method implements the most discriminating possible equivalence relation on objects; that is, for any reference values X and Y, this method returns TRUE if and only if X and Y refer to the same object (X==Y has the value TRUE).
anObject
- The reference object with which to compare.public int count()
public getValue(java.lang.String compositeId)
compositeId
- The passed-in string containing the element
value.public java.util.Enumeration getValueIds()
public java.util.Enumeration getValues()
public boolean approximate(java.lang.Object anObject) throws java.lang.Exception
public int getNdsSyntaxId()
public boolean supportsMatchingRules(int matchingRules)
matchingRules
- The set of matching rules to check.public java.lang.Object clone()
public java.lang.String toString()
public java.lang.String getObjectName()
public long getAmount()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |