Class TableIterableBuilder
- java.lang.Object
-
- com.healthmarketscience.jackcess.util.TableIterableBuilder
-
public class TableIterableBuilder extends Object implements Iterable<Table>
Builder style class for constructing aDatabaseIterable/Iterator forTables. By default, normal (non-system, non-linked tables) and linked tables are included and system tables are not.- Author:
- James Ahlborn
- Usage:
- General: This class is general use.
-
-
Constructor Summary
Constructors Constructor Description TableIterableBuilder(Database db)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisIncludeLinkedTables()booleanisIncludeNormalTables()booleanisIncludeSystemTables()Iterator<Table>iterator()TableIterableBuildersetIncludeLinkedTables(boolean includeLinkedTables)TableIterableBuildersetIncludeNormalTables(boolean includeNormalTables)TableIterableBuildersetIncludeSystemTables(boolean includeSystemTables)Stream<Table>stream()TableIterableBuilderwithLocalUserTablesOnly()Convenience method to set the flags to include only non-linked (local) user tables.TableIterableBuilderwithSystemTablesOnly()Convenience method to set the flags to include only system tables.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
TableIterableBuilder
public TableIterableBuilder(Database db)
-
-
Method Detail
-
isIncludeNormalTables
public boolean isIncludeNormalTables()
-
isIncludeSystemTables
public boolean isIncludeSystemTables()
-
isIncludeLinkedTables
public boolean isIncludeLinkedTables()
-
setIncludeNormalTables
public TableIterableBuilder setIncludeNormalTables(boolean includeNormalTables)
-
setIncludeSystemTables
public TableIterableBuilder setIncludeSystemTables(boolean includeSystemTables)
-
setIncludeLinkedTables
public TableIterableBuilder setIncludeLinkedTables(boolean includeLinkedTables)
-
withLocalUserTablesOnly
public TableIterableBuilder withLocalUserTablesOnly()
Convenience method to set the flags to include only non-linked (local) user tables.
-
withSystemTablesOnly
public TableIterableBuilder withSystemTablesOnly()
Convenience method to set the flags to include only system tables.
-
-