ModeShape Distribution 3.0.0.Beta4

Interface RowFactory

All Known Implementing Classes:

public interface RowFactory

A simple interface that allows an implementer to control how rows in a text file are mapped to properties (including primary and mixin types) in the graph.

Implementations of this class must provide a public, no-argument constructor.

To use, supply the implementation class name to a AbstractTextSequencer object. New instances are created for each Sequencer.execute(javax.jcr.Property, javax.jcr.Node, org.modeshape.jcr.api.sequencer.Sequencer.Context) so implementations of this interface need not be thread-safe.

Method Summary
 void recordRow(Node outputNode, String[] columns)
          Records a row using under the provided Node instance.

Method Detail


void recordRow(Node outputNode,
               String[] columns)
               throws RepositoryException
Records a row using under the provided Node instance.

outputNode - the node under which the sequencing output is placed.
columns - the columns that could be parsed out for the row
RepositoryException - if anything fails while recording the row under the ouput node.

ModeShape Distribution 3.0.0.Beta4

Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.