org.pentaho.di.trans.steps.userdefinedjavaclass
Class FieldHelper

java.lang.Object
  extended by org.pentaho.di.trans.steps.userdefinedjavaclass.FieldHelper

public class FieldHelper
extends Object


Constructor Summary
FieldHelper(RowMetaInterface rowMeta, String fieldName)
           
 
Method Summary
static String getAccessor(boolean isIn, String fieldName)
           
 BigDecimal getBigNumber(Object[] dataRow)
           
 byte[] getBinary(Object[] dataRow)
           
 Boolean getBoolean(Object[] dataRow)
           
 Date getDate(Object[] dataRow)
           
static String getGetSignature(String accessor, ValueMetaInterface v)
           
 Long getInteger(Object[] dataRow)
           
 Double getNumber(Object[] dataRow)
           
 Object getObject(Object[] dataRow)
           
 Serializable getSerializable(Object[] dataRow)
           
 String getString(Object[] dataRow)
           
 ValueMetaInterface getValueMeta()
           
 int indexOfValue()
           
 void setValue(Object[] dataRow, Object value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldHelper

public FieldHelper(RowMetaInterface rowMeta,
                   String fieldName)
Method Detail

getObject

public Object getObject(Object[] dataRow)

getBigNumber

public BigDecimal getBigNumber(Object[] dataRow)
                        throws KettleValueException
Throws:
KettleValueException

getBinary

public byte[] getBinary(Object[] dataRow)
                 throws KettleValueException
Throws:
KettleValueException

getBoolean

public Boolean getBoolean(Object[] dataRow)
                   throws KettleValueException
Throws:
KettleValueException

getDate

public Date getDate(Object[] dataRow)
             throws KettleValueException
Throws:
KettleValueException

getInteger

public Long getInteger(Object[] dataRow)
                throws KettleValueException
Throws:
KettleValueException

getNumber

public Double getNumber(Object[] dataRow)
                 throws KettleValueException
Throws:
KettleValueException

getSerializable

public Serializable getSerializable(Object[] dataRow)
                             throws KettleValueException
Throws:
KettleValueException

getString

public String getString(Object[] dataRow)
                 throws KettleValueException
Throws:
KettleValueException

getValueMeta

public ValueMetaInterface getValueMeta()

indexOfValue

public int indexOfValue()

setValue

public void setValue(Object[] dataRow,
                     Object value)

getAccessor

public static String getAccessor(boolean isIn,
                                 String fieldName)

getGetSignature

public static String getGetSignature(String accessor,
                                     ValueMetaInterface v)