com.j_spaces.sadapter.GenericPA
Class PersistentMatchTemplate

java.lang.Object
  extended by com.j_spaces.sadapter.GenericPA.PersistentMatchTemplate

public class PersistentMatchTemplate
extends Object

the PersistentMatchTemplate is used to describe a match condition. According to PersistentMatchTemplate entries are selected from the underlying data source


Constructor Summary
PersistentMatchTemplate()
           
PersistentMatchTemplate(String className, Object[] fieldValues, short[] matchCodes, Object[] rangeValues, boolean fifo)
           
 
Method Summary
 String getClazzName()
          class name from which to select the entries.
 Object[] getFieldValues()
          array of values for search condition.m_FieldValues array correspond to the fields array given when the table was created (fieldNames parameter in createClassTable), and the size of the m_FieldValues array is less or equal to the size of fieldNames.
 short[] getMatchCodes()
          m_MatchCodes is an array of match conditions (GT,LT and etc..), values taken from com.j_spaces.core.client.TemplateMatchCodes class if m_MatchCodes is null it means equal matching for all non null values in m_FieldValues.
 boolean isFifo()
          if m_Fifo is true result should be returned recording to "m_SCN" and m_Order fields.
 boolean isLeaseManagerQuery()
          if template from LeaseManager should be returned true.
 void setClazzName(String className)
           
 void setFieldValues(Object[] fieldValues)
           
 void setFifo(boolean fifo)
           
 void setMatchCodes(short[] matchCodes)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentMatchTemplate

public PersistentMatchTemplate(String className,
                               Object[] fieldValues,
                               short[] matchCodes,
                               Object[] rangeValues,
                               boolean fifo)
Parameters:
className - The class/table from which to select the entries
fieldValues - The array of values for search condition
matchCodes - The codes of operation
fifo - The fifo ordering indicator

PersistentMatchTemplate

public PersistentMatchTemplate()
Method Detail

getClazzName

public String getClazzName()
class name from which to select the entries.

Returns:
Returns the m_ClassName.

setClazzName

public void setClazzName(String className)
Parameters:
className - The m_ClassName to set.

getFieldValues

public Object[] getFieldValues()
array of values for search condition.m_FieldValues array correspond to the fields array given when the table was created (fieldNames parameter in createClassTable), and the size of the m_FieldValues array is less or equal to the size of fieldNames.

Returns:
Returns the m_FieldValues.

setFieldValues

public void setFieldValues(Object[] fieldValues)
Parameters:
fieldValues - The m_FieldValues to set.

isFifo

public boolean isFifo()
if m_Fifo is true result should be returned recording to "m_SCN" and m_Order fields.

Returns:
Returns the m_Fifo.

isLeaseManagerQuery

public boolean isLeaseManagerQuery()
if template from LeaseManager should be returned true.

Returns:
Returns the m_LeaseManagerQuery

setFifo

public void setFifo(boolean fifo)
Parameters:
fifo - The m_Fifo to set.

getMatchCodes

public short[] getMatchCodes()
m_MatchCodes is an array of match conditions (GT,LT and etc..), values taken from com.j_spaces.core.client.TemplateMatchCodes class if m_MatchCodes is null it means equal matching for all non null values in m_FieldValues.

Returns:
Returns the m_MatchCodes.

setMatchCodes

public void setMatchCodes(short[] matchCodes)
Parameters:
matchCodes - The m_MatchCodes to set.