org.apache.cayenne.lifecycle.id
Class EntityIdCoder
java.lang.Object
org.apache.cayenne.lifecycle.id.EntityIdCoder
public class EntityIdCoder
- extends Object
An object to encode/decode ObjectIds for a single mapped entity.
- Since:
- 3.1
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityIdCoder
public EntityIdCoder(ObjEntity entity)
getEntityName
public static String getEntityName(String id)
toStringId
public String toStringId(ObjectId id)
- Returns a consistent String representation of the ObjectId
toObjectId
public ObjectId toObjectId(String stringId)
Copyright © 2001-2013 Apache Cayenne. All Rights Reserved.