com.sage.orion.sdata.servlet.accpac
Class OptionalFieldsView

java.lang.Object
  extended by com.sage.orion.sdata.servlet.accpac.OptionalFieldsView

public class OptionalFieldsView
extends java.lang.Object

The view that implements optional fields for a resource.

An object instance of this class is created while parsing the owner Resource. If there are any errors while parsing this object then the owner should also fail to construct


Field Summary
static java.lang.String LOCATION_FIELD_NAME
          the name of the field into which the getLocation() must be put.
static java.lang.String PROCESS_CMD_FIELD_NAME
          the name of the field into which the getInsertCommand() must be put to generate the optional fields.
 
Constructor Summary
OptionalFieldsView()
           
 
Method Summary
 short getInsertCommand()
          returns the value that must be put into the PROCESSCMD field of the parent object to generate the optional fields
 int getLocation()
          returns the location that defines valid optional fields for this view.
 java.lang.String getViewID()
          returns the roto id of this optional fields view
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROCESS_CMD_FIELD_NAME

public static final java.lang.String PROCESS_CMD_FIELD_NAME
the name of the field into which the getInsertCommand() must be put to generate the optional fields.

This is a field in the view that has attached optional fields (e.g. the Customer or Order Header view).

See Also:
Constant Field Values

LOCATION_FIELD_NAME

public static final java.lang.String LOCATION_FIELD_NAME
the name of the field into which the getLocation() must be put.

See Also:
Constant Field Values
Constructor Detail

OptionalFieldsView

public OptionalFieldsView()
Method Detail

getInsertCommand

public final short getInsertCommand()
returns the value that must be put into the PROCESSCMD field of the parent object to generate the optional fields

Returns:
the value to put in the PROCESSCMD field

getLocation

public final int getLocation()
returns the location that defines valid optional fields for this view.

This must be put into the LOCATION_FIELD_NAME field of this view.

Returns:
the location that defines valid optional fields for this view

getViewID

public final java.lang.String getViewID()
returns the roto id of this optional fields view

Returns:
the roto id of this optional fields view


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