net.java.ao
Class EntityProxy<T extends RawEntity<K>,K>

java.lang.Object
  extended by net.java.ao.EntityProxy<T,K>
All Implemented Interfaces:
InvocationHandler

public class EntityProxy<T extends RawEntity<K>,K>
extends Object
implements InvocationHandler

Author:
Daniel Spiewak

Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
           
 boolean equals(Object obj)
           
 boolean equalsImpl(RawEntity<K> proxy, Object obj)
           
 K getKey()
           
 int hashCode()
           
 int hashCodeImpl()
           
 Object invoke(Object proxy, Method method, Object[] args)
           
 void removePropertyChangeListener(PropertyChangeListener listener)
           
 void save(RawEntity entity)
           
 String toStringImpl()
           
protected  void updateValues(Map<String,Object> updatedValues)
          Thread safely update the values with those provided.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

getKey

public K getKey()

save

public void save(RawEntity entity)
          throws SQLException
Throws:
SQLException

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)

hashCodeImpl

public int hashCodeImpl()

equalsImpl

public boolean equalsImpl(RawEntity<K> proxy,
                          Object obj)

toStringImpl

public String toStringImpl()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

updateValues

protected void updateValues(Map<String,Object> updatedValues)
Thread safely update the values with those provided. This is only used by EntityManager.find(Class, String, Query), which should really move the leave the population of this class to itself.

Parameters:
updatedValues - mandatory


Copyright © 2007-2014. All Rights Reserved.