org.granite.hibernate.jmf
Class EntityCodec
java.lang.Object
org.granite.hibernate.jmf.EntityCodec
- All Implemented Interfaces:
- ExtendedObjectCodec
public class EntityCodec
- extends Object
- implements ExtendedObjectCodec
- Author:
- Franck WOLFF
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityCodec
public EntityCodec()
canEncode
public boolean canEncode(ExtendedObjectOutput out,
Object v)
- Specified by:
canEncode in interface ExtendedObjectCodec
getEncodedClassName
public String getEncodedClassName(ExtendedObjectOutput out,
Object v)
- Specified by:
getEncodedClassName in interface ExtendedObjectCodec
encode
public void encode(ExtendedObjectOutput out,
Object v)
throws IOException,
IllegalAccessException,
InvocationTargetException
- Specified by:
encode in interface ExtendedObjectCodec
- Throws:
IOException
IllegalAccessException
InvocationTargetException
canDecode
public boolean canDecode(ExtendedObjectInput in,
String className)
throws ClassNotFoundException
- Specified by:
canDecode in interface ExtendedObjectCodec
- Throws:
ClassNotFoundException
getDecodedClassName
public String getDecodedClassName(ExtendedObjectInput in,
String className)
- Specified by:
getDecodedClassName in interface ExtendedObjectCodec
newInstance
public Object newInstance(ExtendedObjectInput in,
String className)
throws IOException,
ClassNotFoundException,
InstantiationException,
IllegalAccessException,
InvocationTargetException,
SecurityException,
NoSuchMethodException,
IOException
- Specified by:
newInstance in interface ExtendedObjectCodec
- Throws:
IOException
ClassNotFoundException
InstantiationException
IllegalAccessException
InvocationTargetException
SecurityException
NoSuchMethodException
decode
public void decode(ExtendedObjectInput in,
Object v)
throws IOException,
ClassNotFoundException,
IllegalAccessException,
InvocationTargetException
- Specified by:
decode in interface ExtendedObjectCodec
- Throws:
IOException
ClassNotFoundException
IllegalAccessException
InvocationTargetException
getClass
protected Class<?> getClass(ExtendedObjectOutput out,
Object v)