| java.lang.Object org.openharmonise.commons.dsi.dml.functions.Substring
Substring | public class Substring implements Function(Code) | | This class represents a SQL 'substring' function, storing the pertinent data so that
the data store interface implementation can then create the correct function call.
author: Michael Bell version: $Revision: 1.1 $ |
Constructor Summary | |
public | Substring(String sString, int nStart, int nFinish) Constructs a representation of the substring function which start the
substring at nStart and finish the substring at nFinish . | public | Substring(String sString, Object objStart, Object objFinish) Constructs a representation of the substring function which start the
substring at the result of processing objStart and finish
the substring at the result of processing objFinish . |
Method Summary | |
public Object | getFinish() Returns the index of where the substring should end as an Integer
or a Function . | public Object | getStart() Returns the index of where the substring should start as an Integer
or a Function . | public String | getString() Returns the String to be used in substring function. |
Substring | public Substring(String sString, int nStart, int nFinish)(Code) | | Constructs a representation of the substring function which start the
substring at nStart and finish the substring at nFinish .
Parameters: sString - the string Parameters: nStart - the start index Parameters: nFinish - the finish index |
Substring | public Substring(String sString, Object objStart, Object objFinish) throws DataStoreException(Code) | | Constructs a representation of the substring function which start the
substring at the result of processing objStart and finish
the substring at the result of processing objFinish . The
start and finish parameters may be Integer , Function ,
or String values.
Parameters: sString - the string Parameters: objStart - the object which defines the start index Parameters: objFinish - the object which defines the finish index throws: DataStoreException - if either the start or finish values are invalid |
getFinish | public Object getFinish()(Code) | | Returns the index of where the substring should end as an Integer
or a Function .
the index of where the substring should end |
getStart | public Object getStart()(Code) | | Returns the index of where the substring should start as an Integer
or a Function .
the index of where the substring should start |
getString | public String getString()(Code) | | Returns the String to be used in substring function.
the String to be used in substring function |
|
|