com.healthmarketscience.jackcess.util
Class IterableBuilder

java.lang.Object
  extended by com.healthmarketscience.jackcess.util.IterableBuilder
All Implemented Interfaces:
Iterable<Row>

public class IterableBuilder
extends Object
implements Iterable<Row>

Builder style class for constructing a Cursor Iterable/Iterator.

Author:
James Ahlborn
Usage:
General: This class is general use.

Nested Class Summary
static class IterableBuilder.Type
           
 
Constructor Summary
IterableBuilder(Cursor cursor)
           
 
Method Summary
 IterableBuilder addColumnNames(Iterable<String> columnNames)
           
 IterableBuilder addColumnNames(String... columnNames)
           
 IterableBuilder addColumns(Iterable<? extends Column> cols)
           
 IterableBuilder addMatchPattern(String columnNamePattern, Object valuePattern)
           
 IterableBuilder forward()
           
 ColumnMatcher getColumnMatcher()
           
 Collection<String> getColumnNames()
           
 Object getMatchPattern()
           
 IterableBuilder.Type getType()
           
 boolean isForward()
           
 boolean isReset()
           
 Iterator<Row> iterator()
           
 IterableBuilder reset(boolean reset)
           
 IterableBuilder reverse()
           
 IterableBuilder setColumnMatcher(ColumnMatcher columnMatcher)
           
 IterableBuilder setColumnNames(Collection<String> columnNames)
           
 IterableBuilder setForward(boolean forward)
           
 IterableBuilder setMatchPattern(Column columnPattern, Object valuePattern)
           
 IterableBuilder setMatchPattern(Map<String,?> rowPattern)
           
 IterableBuilder setMatchPattern(String columnNamePattern, Object valuePattern)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IterableBuilder

public IterableBuilder(Cursor cursor)
Method Detail

getColumnNames

public Collection<String> getColumnNames()

getColumnMatcher

public ColumnMatcher getColumnMatcher()

isForward

public boolean isForward()

isReset

public boolean isReset()

getMatchPattern

public Object getMatchPattern()
Usage:
Advanced: This method is for advanced/internal use.

getType

public IterableBuilder.Type getType()
Usage:
Advanced: This method is for advanced/internal use.

forward

public IterableBuilder forward()

reverse

public IterableBuilder reverse()

setForward

public IterableBuilder setForward(boolean forward)

reset

public IterableBuilder reset(boolean reset)

setColumnNames

public IterableBuilder setColumnNames(Collection<String> columnNames)

addColumnNames

public IterableBuilder addColumnNames(Iterable<String> columnNames)

addColumns

public IterableBuilder addColumns(Iterable<? extends Column> cols)

addColumnNames

public IterableBuilder addColumnNames(String... columnNames)

setMatchPattern

public IterableBuilder setMatchPattern(Column columnPattern,
                                       Object valuePattern)

setMatchPattern

public IterableBuilder setMatchPattern(String columnNamePattern,
                                       Object valuePattern)

setMatchPattern

public IterableBuilder setMatchPattern(Map<String,?> rowPattern)

addMatchPattern

public IterableBuilder addMatchPattern(String columnNamePattern,
                                       Object valuePattern)

setColumnMatcher

public IterableBuilder setColumnMatcher(ColumnMatcher columnMatcher)

iterator

public Iterator<Row> iterator()
Specified by:
iterator in interface Iterable<Row>


Copyright © 2005–2017 Health Market Science. All rights reserved.