@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableDatabaseMeta extends Object implements DatabaseMeta
DatabaseMeta.
Use the builder to create immutable instances:
ImmutableDatabaseMeta.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableDatabaseMeta.Builder
Builds instances of type
ImmutableDatabaseMeta. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableDatabaseMeta.Builder |
builder()
Creates a builder for
ImmutableDatabaseMeta. |
static ImmutableDatabaseMeta |
copyOf(DatabaseMeta instance)
Creates an immutable copy of a
DatabaseMeta value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableDatabaseMeta that have equal attribute values. |
com.google.common.collect.ImmutableList<CustomTypeMeta> |
getCustomTypes() |
com.google.common.collect.ImmutableList<ProcedureMeta> |
getProcedures() |
String |
getSchema() |
com.google.common.collect.ImmutableList<TableMeta> |
getTables() |
com.google.common.collect.ImmutableList<TableMeta> |
getViews() |
int |
hashCode()
Computes a hash code from attributes:
schema, customTypes, tables, views, procedures. |
String |
toString()
Prints the immutable value
DatabaseMeta with attribute values. |
ImmutableDatabaseMeta |
withCustomTypes(CustomTypeMeta... elements)
Copy the current immutable object with elements that replace the content of
customTypes. |
ImmutableDatabaseMeta |
withCustomTypes(Iterable<? extends CustomTypeMeta> elements)
Copy the current immutable object with elements that replace the content of
customTypes. |
ImmutableDatabaseMeta |
withProcedures(Iterable<? extends ProcedureMeta> elements)
Copy the current immutable object with elements that replace the content of
procedures. |
ImmutableDatabaseMeta |
withProcedures(ProcedureMeta... elements)
Copy the current immutable object with elements that replace the content of
procedures. |
ImmutableDatabaseMeta |
withSchema(String value)
Copy the current immutable object by setting a value for the
schema attribute. |
ImmutableDatabaseMeta |
withTables(Iterable<? extends TableMeta> elements)
Copy the current immutable object with elements that replace the content of
tables. |
ImmutableDatabaseMeta |
withTables(TableMeta... elements)
Copy the current immutable object with elements that replace the content of
tables. |
ImmutableDatabaseMeta |
withViews(Iterable<? extends TableMeta> elements)
Copy the current immutable object with elements that replace the content of
views. |
ImmutableDatabaseMeta |
withViews(TableMeta... elements)
Copy the current immutable object with elements that replace the content of
views. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitfindCustomType, findTablepublic String getSchema()
getSchema in interface DatabaseMetaschema attributepublic com.google.common.collect.ImmutableList<CustomTypeMeta> getCustomTypes()
getCustomTypes in interface DatabaseMetacustomTypes attributepublic com.google.common.collect.ImmutableList<TableMeta> getTables()
getTables in interface DatabaseMetatables attributepublic com.google.common.collect.ImmutableList<TableMeta> getViews()
getViews in interface DatabaseMetaviews attributepublic com.google.common.collect.ImmutableList<ProcedureMeta> getProcedures()
getProcedures in interface DatabaseMetaprocedures attributepublic final ImmutableDatabaseMeta withSchema(String value)
schema attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for schemathis objectpublic final ImmutableDatabaseMeta withCustomTypes(CustomTypeMeta... elements)
customTypes.elements - The elements to setthis objectpublic final ImmutableDatabaseMeta withCustomTypes(Iterable<? extends CustomTypeMeta> elements)
customTypes.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of customTypes elements to setthis objectpublic final ImmutableDatabaseMeta withTables(TableMeta... elements)
tables.elements - The elements to setthis objectpublic final ImmutableDatabaseMeta withTables(Iterable<? extends TableMeta> elements)
tables.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of tables elements to setthis objectpublic final ImmutableDatabaseMeta withViews(TableMeta... elements)
views.elements - The elements to setthis objectpublic final ImmutableDatabaseMeta withViews(Iterable<? extends TableMeta> elements)
views.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of views elements to setthis objectpublic final ImmutableDatabaseMeta withProcedures(ProcedureMeta... elements)
procedures.elements - The elements to setthis objectpublic final ImmutableDatabaseMeta withProcedures(Iterable<? extends ProcedureMeta> elements)
procedures.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of procedures elements to setthis objectpublic boolean equals(@Nullable Object another)
ImmutableDatabaseMeta that have equal attribute values.public int hashCode()
schema, customTypes, tables, views, procedures.public String toString()
DatabaseMeta with attribute values.public static ImmutableDatabaseMeta copyOf(DatabaseMeta instance)
DatabaseMeta value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableDatabaseMeta.Builder builder()
ImmutableDatabaseMeta.
ImmutableDatabaseMeta.builder()
.schema(String) // required schema
.addCustomTypes|addAllCustomTypes(org.nuiton.db.meta.CustomTypeMeta) // customTypes elements
.addTables|addAllTables(org.nuiton.db.meta.TableMeta) // tables elements
.addViews|addAllViews(org.nuiton.db.meta.TableMeta) // views elements
.addProcedures|addAllProcedures(org.nuiton.db.meta.ProcedureMeta) // procedures elements
.build();
Copyright © 2019–2021 Nuiton. All rights reserved.