org.apache.cayenne.lifecycle.id
Class EntityIdCoder

java.lang.Object
  extended by 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

Constructor Summary
EntityIdCoder(ObjEntity entity)
           
 
Method Summary
static String getEntityName(String id)
           
 ObjectId toObjectId(String stringId)
           
 String toStringId(ObjectId id)
          Returns a consistent String representation of the ObjectId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityIdCoder

public EntityIdCoder(ObjEntity entity)
Method Detail

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.