public class PropertyDefinition
extends java.lang.Object
implements java.io.Externalizable
schemaMarshalLevel == SM_FULL.| Modifier and Type | Field and Description |
|---|---|
private boolean |
caseSensitive
Flag indicating the field is case-sensitive.
|
private java.lang.String |
codePage
Code page of the CLOB field.
|
private java.lang.String |
columnLabel
The column label of this property.
|
private int |
extent
The extent of this property, or
NO_EXTENT if the property has no extent. |
private java.lang.String |
format
The format of this property.
|
private java.lang.String |
help
HELP attribute of this field.
|
private java.lang.String |
initial
INITIAL attribute of this field.
|
private java.lang.String |
label
The label of this property.
|
private java.lang.String |
legacyName
The legacy name of this property.
|
private java.lang.String |
name
The name of this property.
|
private static int |
NO_EXTENT
Default value for no-extent properties.
|
private static java.util.Map<java.lang.String,java.lang.Class<?>> |
primitiveClasses
Map of primitive names to their classes.
|
private int |
schemaMarshalLevel
The SCHEMA-MARSHAL level for the parent temp-table.
|
private boolean |
serializeHidden
Flag indicating the field should not be included in serialized output.
|
private java.lang.Class<?> |
type
The P2J wrapper type of this property.
|
private java.lang.String |
xmlNodeType
Node type of field in XML output.
|
| Constructor and Description |
|---|
PropertyDefinition()
Default c'tor, explicitly added to allow instances of this class to be created on
deserialization.
|
PropertyDefinition(Property prop)
Create a new property definition.
|
PropertyDefinition(java.lang.String name,
java.lang.Class<?> type)
Create a new, no-extent, property definition.
|
PropertyDefinition(java.lang.String name,
java.lang.Class<?> type,
int extent)
Create a new property definition.
|
PropertyDefinition(java.lang.String name,
java.lang.Class<?> type,
int extent,
java.lang.String legacyName)
Create a new property definition.
|
PropertyDefinition(java.lang.String name,
java.lang.Class<?> type,
int extent,
java.lang.String legacyName,
java.lang.String format,
java.lang.String label,
java.lang.String columnLabel)
Create a new property definition.
|
PropertyDefinition(java.lang.String name,
java.lang.Class<?> type,
java.lang.String legacyName)
Create a new, no-extent, property definition.
|
PropertyDefinition(java.lang.String name,
java.lang.Class<?> type,
java.lang.String legacyName,
java.lang.String format,
java.lang.String label,
java.lang.String columnLabel)
Create a new, no-extent, property definition.
|
PropertyDefinition(java.lang.String name,
java.lang.String type)
Create a new, no-extent, property definition.
|
PropertyDefinition(java.lang.String name,
java.lang.String type,
int extent)
Create a new property definition.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCodePage()
Get code page of this property.
|
java.lang.String |
getColumnLabel()
Get column label of this property.
|
int |
getExtent()
Get the extent of this property.
|
java.lang.String |
getFormat()
Get format of this property.
|
java.lang.String |
getHelp()
Get help text of this property.
|
java.lang.String |
getInitial()
Get initial value of this property.
|
java.lang.String |
getLabel()
Get label of this property.
|
java.lang.String |
getLegacyName()
Get legacy name of this property.
|
java.lang.String |
getName()
Get the name of this property.
|
java.lang.Class<?> |
getType()
Get the type of this property.
|
java.lang.String |
getXmlNodeType()
Get XML node type of this property.
|
boolean |
isCaseSensitive()
Get 'case-sensitive' flag of this property.
|
boolean |
isExtent()
Check if this property is an extent property.
|
boolean |
isSerializeHidden()
Get 'serialize hidden' flag of this property.
|
void |
readExternal(java.io.ObjectInput in)
Read the property definition from the specified input source.
|
void |
setMarshalLevel(int schemaMarshalLevel)
Configures the SCHEMA-MARSHAL level used for serialization of the property.
|
java.lang.String |
toString()
Get a string representation of this property.
|
private void |
verifyType(java.lang.Class<?> type)
Verify the given type is not null.
|
void |
writeExternal(java.io.ObjectOutput out)
Send the property definition to the specified output destination.
|
private static final java.util.Map<java.lang.String,java.lang.Class<?>> primitiveClasses
private static final int NO_EXTENT
private java.lang.Class<?> type
private int extent
NO_EXTENT if the property has no extent.private java.lang.String name
private java.lang.String legacyName
private java.lang.String format
private java.lang.String label
private java.lang.String columnLabel
private java.lang.String help
private java.lang.String initial
private boolean serializeHidden
private boolean caseSensitive
private java.lang.String xmlNodeType
private java.lang.String codePage
private int schemaMarshalLevel
SM_DEFAULT when object is to
be serialized. Always SM_DEFAULT for a read object.public PropertyDefinition()
public PropertyDefinition(java.lang.String name,
java.lang.String type)
throws java.lang.ClassNotFoundException
name - The name of this property.type - The type of this property.java.lang.ClassNotFoundException - If the given type can not be resolved to a valid class.public PropertyDefinition(java.lang.String name,
java.lang.String type,
int extent)
throws java.lang.ClassNotFoundException
name - The name of this property.type - The type of this property.extent - The extent of this property.java.lang.ClassNotFoundException - If the given type can not be resolved to a valid class.public PropertyDefinition(java.lang.String name,
java.lang.Class<?> type)
name - The name of this property.type - A class specifying the type of this property.public PropertyDefinition(java.lang.String name,
java.lang.Class<?> type,
java.lang.String legacyName)
name - The name of this property.type - A class specifying the type of this property.legacyName - The legacy name of this property.public PropertyDefinition(java.lang.String name,
java.lang.Class<?> type,
int extent)
name - The name of this property.type - A class specifying the type of this property.extent - The extent of this property.public PropertyDefinition(java.lang.String name,
java.lang.Class<?> type,
int extent,
java.lang.String legacyName)
name - The name of this property.type - A class specifying the type of this property.extent - The extent of this property.legacyName - The legacy name of this property.public PropertyDefinition(java.lang.String name,
java.lang.Class<?> type,
java.lang.String legacyName,
java.lang.String format,
java.lang.String label,
java.lang.String columnLabel)
name - The name of this property.type - A class specifying the type of this property.legacyName - The legacy name of this property.format - The format of this property.label - The label of this property.columnLabel - The column label of this property.public PropertyDefinition(java.lang.String name,
java.lang.Class<?> type,
int extent,
java.lang.String legacyName,
java.lang.String format,
java.lang.String label,
java.lang.String columnLabel)
name - The name of this property.type - A class specifying the type of this property.legacyName - The legacy name of this property.format - The format of this property.label - The label of this property.columnLabel - The column label of this property.public PropertyDefinition(Property prop)
prop - The ORM field Property.public java.lang.Class<?> getType()
public int getExtent()
public java.lang.String getName()
public boolean isExtent()
true if this property is an extent property.public java.lang.String getLegacyName()
public java.lang.String getFormat()
public java.lang.String getLabel()
public java.lang.String getColumnLabel()
public java.lang.String getHelp()
public java.lang.String getInitial()
public boolean isSerializeHidden()
public boolean isCaseSensitive()
public java.lang.String getXmlNodeType()
public java.lang.String getCodePage()
public final void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - The output destination to which the property definition will be sent.java.io.IOException - In case of I/O errors.public final void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablein - The input source from which the property definition will be read.java.io.IOException - In case of I/O errors.java.lang.ClassNotFoundException - If the class of property could not be found/loaded.private void verifyType(java.lang.Class<?> type)
type - The type to check.java.lang.NullPointerException - If type is null.public java.lang.String toString()
toString in class java.lang.Objectpublic void setMarshalLevel(int schemaMarshalLevel)
schemaMarshalLevel - The new SCHEMA-MARSHAL level. See AbstractTempTable static constants for details.