APIdia Launch Partner
Top Description Fields Constructors Methods
io.github.spannm.jackcess.util

public Class TableIterableBuilder

extends Object
implements Iterable<Table>
Class Inheritance
All Implemented Interfaces
java.lang.Iterable
Imports
io.github.spannm.jackcess.Database, .Table, io.github.spannm.jackcess.impl.DatabaseImpl, java.util.Iterator, java.util.stream.Stream, .StreamSupport

Builder style class for constructing a Database Iterable/Iterator for Tables. By default, normal (non-system, non-linked tables) and linked tables are included and system tables are not.

Field Summary

Modifier and TypeField and Description
private final Database
private boolean
private boolean
private boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public boolean
public boolean
public Iterator<Table>
iterator()

Implements java.lang.Iterable.iterator.

Returns an iterator over elements of type T.

public Stream<Table>

Returns:

a Stream using the default Iterator.
stream
()

Returns a Stream using the default Iterator.

public TableIterableBuilder
withIncludeLinkedTables(boolean newIncludeLinkedTables)

public TableIterableBuilder
withIncludeNormalTables(boolean newIncludeNormalTables)

public TableIterableBuilder
withIncludeSystemTables(boolean newIncludeSystemTables)

public TableIterableBuilder
withLocalUserTablesOnly()

Convenience method to set the flags to include only non-linked (local) user tables.

public TableIterableBuilder
withSystemTablesOnly()

Convenience method to set the flags to include only system tables.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dbback to summary
private final Database db
includeLinkedTablesback to summary
private boolean includeLinkedTables
includeNormalTablesback to summary
private boolean includeNormalTables
includeSystemTablesback to summary
private boolean includeSystemTables

Constructor Detail

TableIterableBuilderback to summary
public TableIterableBuilder(Database db)

Method Detail

isIncludeLinkedTablesback to summary
public boolean isIncludeLinkedTables()
isIncludeNormalTablesback to summary
public boolean isIncludeNormalTables()
isIncludeSystemTablesback to summary
public boolean isIncludeSystemTables()
iteratorback to summary
public Iterator<Table> iterator()

Implements java.lang.Iterable.iterator.

Doc from java.lang.Iterable.iterator.

Returns an iterator over elements of type T.

Annotations
@Override
streamback to summary
public Stream<Table> stream()

Returns a Stream using the default Iterator.

Returns:Stream<Table>

a Stream using the default Iterator.

withIncludeLinkedTablesback to summary
public TableIterableBuilder withIncludeLinkedTables(boolean newIncludeLinkedTables)
withIncludeNormalTablesback to summary
public TableIterableBuilder withIncludeNormalTables(boolean newIncludeNormalTables)
withIncludeSystemTablesback to summary
public TableIterableBuilder withIncludeSystemTables(boolean newIncludeSystemTables)
withLocalUserTablesOnlyback to summary
public TableIterableBuilder withLocalUserTablesOnly()

Convenience method to set the flags to include only non-linked (local) user tables.

withSystemTablesOnlyback to summary
public TableIterableBuilder withSystemTablesOnly()

Convenience method to set the flags to include only system tables.