getUserTableFieldXml

 

Function Name: getUserTableFieldXml

 

Class: com.newgen.dmsapi.DMSInputXml

 

Description: This function is used to generate Xml for one Annotation Group.

 

Input Parameters

Output Parameters

 

Prototype:

 

public String getUserTableFieldXml

(

 

 

 

String strFldName,

 

 

String strFldType,

 

 

int nFldLength,

 

 

String strFldAttribute,

 

 

String strFldDefaultValue

 

)

 

 

 

Input Parameters:

Name

Description

Valid Values

Default Behaviour

strFldName

It indicates the name Name of the Field.

 

N/A

strFldType

It indicates the type Type of the Field ex (char, varchar etc)

 

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.

 

Output Parameters:

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>