Follow the links below to browse sample Javadoc for MJ classes and tools, including the MJ Runtime Library.

 

Package: com.arsi.mj.maprpt.entity.etlgen.bnfkey  previous next contents

Defines a life cycle for building a binary find key object using a field intercept pattern.

Classes and Interfaces
IBinaryFindKeyBuilder Defines a life cycle for building a binary find key object using a field intercept pattern.

Interface: IBinaryFindKeyBuilder

Defines a life cycle for building a binary find key object using a field intercept pattern. This abstract design allows hooking of binary key creation into ETL artifact generation. The intent is to create a binary find key object that can be compared with a predecessor key object.
public interface com.arsi.mj.maprpt.entity.etlgen.bnfkey.IBinaryFindKeyBuilder
Methods
Get the binary find key object that was built (and is assumed to be complete), typically invoked after all fields in data row have been processed.
Returns:
a Comparable binary find key object.
public java.lang.Comparable getKeyObject()
Reset building of key object, typically called when a new row of data is seen.
public void reset()
Intercept a field value that is being processed and, if the field is part of the binary find key, set the field value into the key object being built.
Parameters:
aFieldValue - native (e.g., Integer, java.util.Date) field value, may possibly be NULL.
aColdef - defines the column associated with the field value.
aMapperLineNumber - line number of Mapper tuple (data row) where field value occurs.
Throws:
MJTranslateException - if field should be set into binary find key but cannot be.
public void setKeyFieldIfApplicable(java.lang.Object aFieldValue, com.arsi.mj.maprpt.entity.handler.AnnotatedColumnDef aColdef, int aMapperLineNumber)
    throws com.arsi.mj.MJTranslateException