com.sage.orion.sdata.servlet
Class SDataKey

java.lang.Object
  extended by com.sage.orion.sdata.servlet.SDataKey

public final class SDataKey
extends java.lang.Object

Handles the conversion between the SData form of a key and an array of key segments.

SData leaves it to the application to decide how to form a key from multiple fields. This routine provides a consistent method that can be used. However applications are free to choose whichever method they wish; the methods in this class are not used by the framework itself.


Method Summary
static java.lang.String[] fromSDataForm(java.lang.String key)
          convert the SData form of the key to an array of key segments and decode them as needed to obtain pure strings
static boolean isEmpty(java.lang.String key)
          check if the key is an empty SData key
static java.lang.String toSDataForm(java.lang.String... key)
          convert the array of segments of the key to the SData form
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fromSDataForm

public static java.lang.String[] fromSDataForm(java.lang.String key)
convert the SData form of the key to an array of key segments and decode them as needed to obtain pure strings

Parameters:
key - the key in the SData form
Returns:
the array of key segments

toSDataForm

public static java.lang.String toSDataForm(java.lang.String... key)
convert the array of segments of the key to the SData form

Parameters:
key - an array of segments of the key
Returns:
the key in the SData form

isEmpty

public static boolean isEmpty(java.lang.String key)
check if the key is an empty SData key

Parameters:
key - the key in the SData form
Returns:
true if the key is empty in the SData sense for the keyed paging method (which is still currently an Accpac extension)


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