Function
Name:
getUserTableFieldXml
Class:
com.newgen.dmsapi.DMSInputXml
Description: This function is used to generate Xml for one Annotation
Group.
Prototype:
public String
getUserTableFieldXml |
( |
|
|
|
String strFldName, |
|
|
String strFldType, |
|
|
int nFldLength, |
|
|
String
strFldAttribute, |
|
|
String
strFldDefaultValue |
|
) |
|
Name |
Description |
Valid Values |
Default Behaviour |
strFldName |
It indicates the |
|
N/A |
strFldType |
It indicates the |
|
N/A |
nFldLength |
It indicates the Length of the field. |
|
Will be used according to the default values for a
particular datatype. |
strFldAttribute |
It indicates any Attribute or constraint associated with
the field (Primary key etc.) |
|
No attribute is et |
strFldDefaultValue |
It indicates the
Default value of the field, in case no value is specified. |
The name of Annotation
Group. |
No default value will be used for fields. |
Xml for User table Fields
<Fields>
<Field>
<Name>Name</Name>
<Type>char</Type>
<FieldLength>10</FieldLength>
<Attribute>NOT
NULL</Attribute>
<Default>Prashant</Default>
</Field>
<Field>
<Name>Age</Name>
<Type>int</Type>
<FieldLength>5</FieldLength>
<Attribute>PRIMARY
KEY</Attribute>
<Default>3</Default>
</Field>
</Fields>