com.sage.orion.sdata.servlet.swtservice.tablebuilder
Class JDBCResourceKindField

java.lang.Object
  extended by com.sage.orion.sdata.servlet.swtservice.tablebuilder.JDBCResourceKindField
All Implemented Interfaces:
FieldDefinition

public class JDBCResourceKindField
extends java.lang.Object
implements FieldDefinition

This class provides implementation of the FieldDefinition interface


Constructor Summary
JDBCResourceKindField(java.lang.String name, FieldDataType fieldDataType, int length, boolean allownull)
          Constructor
JDBCResourceKindField(java.lang.String name, FieldDataType fieldDataType, int length, boolean allownull, java.lang.String identity, java.lang.String identitystart, java.lang.String identityincrement)
          Constructor
 
Method Summary
 void export(DBTableBuilder builder)
          Provides fields definition to TableBuilder
 FieldDataType getFieldDataType()
          Returns the field type
 boolean getFieldIdentity()
          Returns identity of the field
 java.lang.String getFieldName()
          Returns the field name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCResourceKindField

public JDBCResourceKindField(java.lang.String name,
                             FieldDataType fieldDataType,
                             int length,
                             boolean allownull)
Constructor

Parameters:
name - - The name of the field
fieldDataType - - The specific FieldDataType of the field
length - - The length of the field
allownull - - whether the field is allowed to be null

JDBCResourceKindField

public JDBCResourceKindField(java.lang.String name,
                             FieldDataType fieldDataType,
                             int length,
                             boolean allownull,
                             java.lang.String identity,
                             java.lang.String identitystart,
                             java.lang.String identityincrement)
Constructor

Parameters:
name - - The name of the field
fieldDataType - - The datatype of the field
length - - The length of the field
allownull - - The allownull attribute of the field
identity - - The identity of the auto-incremental field
identitystart - - The Start of the auto-incremental field
identityincrement - - The Increment of the auto-incremental field
Method Detail

export

public void export(DBTableBuilder builder)
Description copied from interface: FieldDefinition
Provides fields definition to TableBuilder

Specified by:
export in interface FieldDefinition
Parameters:
builder - - instance of the JDBCTableBuilder class

getFieldName

public java.lang.String getFieldName()
Description copied from interface: FieldDefinition
Returns the field name

Specified by:
getFieldName in interface FieldDefinition

getFieldDataType

public FieldDataType getFieldDataType()
Description copied from interface: FieldDefinition
Returns the field type

Specified by:
getFieldDataType in interface FieldDefinition

getFieldIdentity

public boolean getFieldIdentity()
Description copied from interface: FieldDefinition
Returns identity of the field

Specified by:
getFieldIdentity in interface FieldDefinition


Copyright © 2011 Sage Software, Inc. All rights reserved.