|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.core.id.LongIDFactory
com.metamatrix.common.id.TransactionIDFactory
public class TransactionIDFactory
Constructor Summary | |
---|---|
TransactionIDFactory()
|
Method Summary | |
---|---|
ObjectID |
create()
Create a new ObjectID instance using this protocol. |
java.lang.String |
getProtocol()
Return the name of the protocol that this factory uses. |
ObjectID |
stringToObject(java.lang.String value)
Attempt to convert the specified string to the appropriate ObjectID instance. |
boolean |
validate(ObjectID id)
Return whether the specified ObjectID instance is valid. |
Methods inherited from class com.metamatrix.core.id.LongIDFactory |
---|
getDescription, getNextValue, stringWithoutProtocolToObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionIDFactory()
Method Detail |
---|
public java.lang.String getProtocol()
getProtocol
in interface ObjectIDFactory
getProtocol
in class LongIDFactory
public ObjectID stringToObject(java.lang.String value) throws InvalidIDException
stringToObject
in interface ObjectIDFactory
stringToObject
in class LongIDFactory
value
- the stringified id with the protocol and ObjectID.DELIMITER already
removed, and which is never null or zero length
InvalidIDException
- if the parser is aware of this protocol, but it is of the wrong
format for this type of ObjectID.public boolean validate(ObjectID id)
This implementation only checks whether the ObjectID is an instance of a LongID.
validate
in class LongIDFactory
id
- the ID that is to be validated, and which is never null
public ObjectID create()
create
in interface ObjectIDFactory
create
in class LongIDFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |