net.java.ao
Class EntityProxy<T extends RawEntity<K>,K>
java.lang.Object
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
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.