|
||||||||||
| 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 ObjectIDFactorygetProtocol in class LongIDFactory
public ObjectID stringToObject(java.lang.String value)
throws InvalidIDException
stringToObject in interface ObjectIDFactorystringToObject in class LongIDFactoryvalue - 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 LongIDFactoryid - the ID that is to be validated, and which is never null
public ObjectID create()
create in interface ObjectIDFactorycreate in class LongIDFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||