com.caucho.amber.entity
Class EntityFactory

java.lang.Object
  extended by com.caucho.amber.entity.EntityFactory

public class EntityFactory
extends java.lang.Object

Manages the set of persistent beans.


Constructor Summary
EntityFactory()
           
 
Method Summary
 void delete(AmberConnection aConn, java.lang.Object proxy)
          Deletes the proxy.
 java.lang.Object getEntity(AmberConnection aConn, EntityItem item)
          Gets the appropriate entity given the EntityItem.
 java.lang.Object getEntity(java.lang.Object key)
          Gets the appropriate entity given the key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityFactory

public EntityFactory()
Method Detail

getEntity

public java.lang.Object getEntity(java.lang.Object key)
Gets the appropriate entity given the key.


getEntity

public java.lang.Object getEntity(AmberConnection aConn,
                                  EntityItem item)
Gets the appropriate entity given the EntityItem.


delete

public void delete(AmberConnection aConn,
                   java.lang.Object proxy)
            throws java.sql.SQLException
Deletes the proxy.

Throws:
java.sql.SQLException