java.lang.Object
org.granite.hibernate4.jmf.AbstractPersistentCollectionCodec<H>
- All Implemented Interfaces:
- ExtendedObjectCodec
- Direct Known Subclasses:
- PersistentBagCodec, PersistentListCodec, PersistentMapCodec, PersistentSetCodec, PersistentSortedMapCodec, PersistentSortedSetCodec
public abstract class AbstractPersistentCollectionCodec<H extends org.hibernate.collection.spi.PersistentCollection>
- 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 |
hibernateCollectionClass
protected final Class<H extends org.hibernate.collection.spi.PersistentCollection> hibernateCollectionClass
clientCollectionClassName
protected final String clientCollectionClassName
AbstractPersistentCollectionCodec
public AbstractPersistentCollectionCodec(Class<H> hibernateCollectionClass)
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
- Specified by:
encode in interface ExtendedObjectCodec
- Throws:
IOException
IllegalAccessException
canDecode
public boolean canDecode(ExtendedObjectInput in,
String className)
- Specified by:
canDecode in interface ExtendedObjectCodec
getDecodedClassName
public String getDecodedClassName(ExtendedObjectInput in,
String className)
- Specified by:
getDecodedClassName in interface ExtendedObjectCodec
decode
public void decode(ExtendedObjectInput in,
Object v)
throws IOException,
ClassNotFoundException,
IllegalAccessException
- Specified by:
decode in interface ExtendedObjectCodec
- Throws:
IOException
ClassNotFoundException
IllegalAccessException