Home » JDO » Predefined ID Classes » ObjectIdentity » toString() - JDO ObjectIdentity's method

toString() - JDO ObjectIdentity's method

Method
javax.jdo.identity.ObjectIdentity
String toString()

Return the String form of the object id. The class of the object id is written as the first part of the result so that the class can be reconstructed later. Then the toString of the key instance is appended. During construction, this process is reversed. The class is extracted from the first part of the String, and the String constructor of the key is used to construct the key itself.
Returns:
the String form of the key
Since:
JDO 1.0

This documentation page is derived (with some adjustments) from the JDO 2.2 API
and is available under the terms of the Apache License, v. 2.0.