@NotThreadSafe public static final class ImmutableDatabaseMeta.Builder extends Object
ImmutableDatabaseMeta.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
@CanIgnoreReturnValue public final ImmutableDatabaseMeta.Builder from(DatabaseMeta instance)
DatabaseMeta instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDatabaseMeta.Builder schema(String schema)
schema attribute.schema - The value for schemathis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDatabaseMeta.Builder addCustomTypes(CustomTypeMeta element)
customTypes list.element - A customTypes elementthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDatabaseMeta.Builder addCustomTypes(CustomTypeMeta... elements)
customTypes list.elements - An array of customTypes elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDatabaseMeta.Builder customTypes(Iterable<? extends CustomTypeMeta> elements)
customTypes list.elements - An iterable of customTypes elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDatabaseMeta.Builder addAllCustomTypes(Iterable<? extends CustomTypeMeta> elements)
customTypes list.elements - An iterable of customTypes elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDatabaseMeta.Builder addTables(TableMeta element)
tables list.element - A tables elementthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDatabaseMeta.Builder addTables(TableMeta... elements)
tables list.elements - An array of tables elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDatabaseMeta.Builder tables(Iterable<? extends TableMeta> elements)
tables list.elements - An iterable of tables elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDatabaseMeta.Builder addAllTables(Iterable<? extends TableMeta> elements)
tables list.elements - An iterable of tables elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDatabaseMeta.Builder addViews(TableMeta element)
views list.element - A views elementthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDatabaseMeta.Builder addViews(TableMeta... elements)
views list.elements - An array of views elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDatabaseMeta.Builder views(Iterable<? extends TableMeta> elements)
views list.elements - An iterable of views elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDatabaseMeta.Builder addAllViews(Iterable<? extends TableMeta> elements)
views list.elements - An iterable of views elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDatabaseMeta.Builder addProcedures(ProcedureMeta element)
procedures list.element - A procedures elementthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDatabaseMeta.Builder addProcedures(ProcedureMeta... elements)
procedures list.elements - An array of procedures elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDatabaseMeta.Builder procedures(Iterable<? extends ProcedureMeta> elements)
procedures list.elements - An iterable of procedures elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableDatabaseMeta.Builder addAllProcedures(Iterable<? extends ProcedureMeta> elements)
procedures list.elements - An iterable of procedures elementsthis builder for use in a chained invocationpublic ImmutableDatabaseMeta build()
ImmutableDatabaseMeta.IllegalStateException - if any required attributes are missingCopyright © 2019 Nuiton. All rights reserved.