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

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

public class ResourceViewField
extends ResourceField

The ResourceViewField class exposes the configuration information relating to a view field.


Constructor Summary
ResourceViewField(java.lang.String viewFieldID, java.lang.String sdataName)
          constructs an instance of the ResourceViewField class with the given pair of names
 
Method Summary
 boolean getAutopost()
          gets the auto-post setting of the field.
 java.lang.String getTransTextID()
          gets the transTextID attribute of the field.
 java.lang.String getViewFieldID()
          Gets the view ID for the field.
 void setTransTextID(java.lang.String value)
          sets the transTextID attribute, which may be used to override the description
 
Methods inherited from class com.sage.orion.sdata.servlet.ResourceField
equals, getDescription, getName, hashCode, setDescription, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceViewField

public ResourceViewField(java.lang.String viewFieldID,
                         java.lang.String sdataName)
constructs an instance of the ResourceViewField class with the given pair of names

Parameters:
viewFieldID - the accpac view field name (must not be null)
sdataName - the SData property name or null
Method Detail

getViewFieldID

public java.lang.String getViewFieldID()
Gets the view ID for the field.

Returns:
the view ID for the field.

setTransTextID

public void setTransTextID(java.lang.String value)
sets the transTextID attribute, which may be used to override the description

Parameters:
value - the value to set the transTextID to

getTransTextID

public java.lang.String getTransTextID()
gets the transTextID attribute of the field. If this is not null it should be used to look up a suitable description from the language resources instead of using the description from the view or from this object.

Returns:
the value of the transTextID, which will be null if it has not been set

getAutopost

public boolean getAutopost()
gets the auto-post setting of the field. When the auto-post setting is true this is a hint to the SData consumer that they might want to perform an uncommitted stateful update on the field to get derived consequences. This is a very Accpac-specific optimization.

Returns:
the auto-post setting of the field


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