public class CompactInstanceWrapper extends Object implements WrappingStorageUtility.SerializationWrapper
| Modifier and Type | Field and Description |
|---|---|
static int |
CHOICE_INDEX |
static int |
CHOICE_MODE |
static int |
CHOICE_VALUE |
| Constructor and Description |
|---|
CompactInstanceWrapper() |
CompactInstanceWrapper(InstanceTemplateManager templateMgr) |
| Modifier and Type | Method and Description |
|---|---|
Class |
baseType()
return type of underlying object
|
static Class |
classForDataType(int dataType)
map xforms data types to the Class that represents that data in a FormInstance
|
void |
clean() |
Externalizable |
getData()
retrieve the underlying object (to be followed by a call to readExternal)
|
static FormInstance |
loadTemplateInstance(int formID)
load a template instance fresh from the original FormDef, retrieved from RMS
|
void |
readExternal(DataInputStream in,
PrototypeFactory pf)
deserialize a compact instance.
|
void |
setData(Externalizable e)
set the underlying object (to be followed by a call to writeExternal)
|
void |
writeExternal(DataOutputStream out)
serialize a compact instance
|
public static final int CHOICE_VALUE
public static final int CHOICE_INDEX
public static final int CHOICE_MODE
public CompactInstanceWrapper()
public CompactInstanceWrapper(InstanceTemplateManager templateMgr)
templateMgr - template provider; if null, template is always fetched on-demand from RMS (slow!)public Class baseType()
WrappingStorageUtility.SerializationWrapperbaseType in interface WrappingStorageUtility.SerializationWrapperpublic void setData(Externalizable e)
WrappingStorageUtility.SerializationWrappersetData in interface WrappingStorageUtility.SerializationWrapperpublic Externalizable getData()
WrappingStorageUtility.SerializationWrappergetData in interface WrappingStorageUtility.SerializationWrapperpublic void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException
readExternal in interface ExternalizableIOExceptionDeserializationExceptionpublic void writeExternal(DataOutputStream out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic static FormInstance loadTemplateInstance(int formID)
formID - public void clean()
clean in interface WrappingStorageUtility.SerializationWrapperpublic static Class classForDataType(int dataType)
dataType - Copyright © 2021. All rights reserved.