org.granite.datanucleus
Class DataNucleusExternalizer
java.lang.Object
org.granite.messaging.amf.io.util.externalizer.DefaultExternalizer
org.granite.datanucleus.DataNucleusExternalizer
- All Implemented Interfaces:
- Externalizer
public class DataNucleusExternalizer
- extends DefaultExternalizer
- Author:
- Stephen MORE, William DRAI
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataNucleusExternalizer
public DataNucleusExternalizer()
newInstance
public Object newInstance(String type,
ObjectInput in)
throws IOException,
ClassNotFoundException,
InstantiationException,
InvocationTargetException,
IllegalAccessException
- Specified by:
newInstance in interface Externalizer- Overrides:
newInstance in class DefaultExternalizer
- Throws:
IOException
ClassNotFoundException
InstantiationException
InvocationTargetException
IllegalAccessException
readExternal
public void readExternal(Object o,
ObjectInput in)
throws IOException,
ClassNotFoundException,
IllegalAccessException
- Specified by:
readExternal in interface Externalizer- Overrides:
readExternal in class DefaultExternalizer
- Throws:
IOException
ClassNotFoundException
IllegalAccessException
newCollection
protected Object newCollection(AbstractExternalizablePersistentCollection value,
Property field)
writeExternal
public void writeExternal(Object o,
ObjectOutput out)
throws IOException,
IllegalAccessException
- Specified by:
writeExternal in interface Externalizer- Overrides:
writeExternal in class DefaultExternalizer
- Throws:
IOException
IllegalAccessException
accept
public int accept(Class<?> clazz)
- Specified by:
accept in interface Externalizer- Overrides:
accept in class DefaultExternalizer
isRegularEntity
protected boolean isRegularEntity(Class<?> clazz)
isEmbeddable
protected boolean isEmbeddable(Class<?> clazz)
findOrderedFields
public List<Property> findOrderedFields(Class<?> clazz,
boolean returnSettersWhenAvailable)
- Overrides:
findOrderedFields in class DefaultExternalizer
serializeDetachedState
protected byte[] serializeDetachedState(Object[] detachedState)
deserializeDetachedState
protected void deserializeDetachedState(javax.jdo.spi.Detachable pc,
byte[] data)
getVersion
protected static Object getVersion(Object entity)