Class ImmutableDatabaseMeta
java.lang.Object
org.nuiton.db.meta.ImmutableDatabaseMeta
- All Implemented Interfaces:
DatabaseMeta
@Generated(from="DatabaseMeta",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableDatabaseMeta
extends Object
implements DatabaseMeta
Immutable implementation of
DatabaseMeta.
Use the builder to create immutable instances:
ImmutableDatabaseMeta.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableDatabaseMeta. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableDatabaseMeta.static ImmutableDatabaseMetacopyOf(DatabaseMeta instance) Creates an immutable copy of aDatabaseMetavalue.booleanThis instance is equal to all instances ofImmutableDatabaseMetathat have equal attribute values.com.google.common.collect.ImmutableList<CustomTypeMeta> com.google.common.collect.ImmutableList<ProcedureMeta> com.google.common.collect.ImmutableList<TableMeta> com.google.common.collect.ImmutableList<TableMeta> getViews()inthashCode()Computes a hash code from attributes:schema,customTypes,tables,views,procedures.toString()Prints the immutable valueDatabaseMetawith attribute values.final ImmutableDatabaseMetawithCustomTypes(Iterable<? extends CustomTypeMeta> elements) Copy the current immutable object with elements that replace the content ofcustomTypes.final ImmutableDatabaseMetawithCustomTypes(CustomTypeMeta... elements) Copy the current immutable object with elements that replace the content ofcustomTypes.final ImmutableDatabaseMetawithProcedures(Iterable<? extends ProcedureMeta> elements) Copy the current immutable object with elements that replace the content ofprocedures.final ImmutableDatabaseMetawithProcedures(ProcedureMeta... elements) Copy the current immutable object with elements that replace the content ofprocedures.final ImmutableDatabaseMetawithSchema(String value) Copy the current immutable object by setting a value for theschemaattribute.final ImmutableDatabaseMetawithTables(Iterable<? extends TableMeta> elements) Copy the current immutable object with elements that replace the content oftables.final ImmutableDatabaseMetawithTables(TableMeta... elements) Copy the current immutable object with elements that replace the content oftables.final ImmutableDatabaseMetaCopy the current immutable object with elements that replace the content ofviews.final ImmutableDatabaseMetaCopy the current immutable object with elements that replace the content ofviews.Methods inherited from interface DatabaseMeta
findCustomType, findTable
-
Method Details
-
getSchema
- Specified by:
getSchemain interfaceDatabaseMeta- Returns:
- The value of the
schemaattribute
-
getCustomTypes
- Specified by:
getCustomTypesin interfaceDatabaseMeta- Returns:
- The value of the
customTypesattribute
-
getTables
- Specified by:
getTablesin interfaceDatabaseMeta- Returns:
- The value of the
tablesattribute
-
getViews
- Specified by:
getViewsin interfaceDatabaseMeta- Returns:
- The value of the
viewsattribute
-
getProcedures
- Specified by:
getProceduresin interfaceDatabaseMeta- Returns:
- The value of the
proceduresattribute
-
withSchema
Copy the current immutable object by setting a value for theschemaattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for schema- Returns:
- A modified copy or the
thisobject
-
withCustomTypes
Copy the current immutable object with elements that replace the content ofcustomTypes.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withCustomTypes
Copy the current immutable object with elements that replace the content ofcustomTypes. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of customTypes elements to set- Returns:
- A modified copy or
thisif not changed
-
withTables
Copy the current immutable object with elements that replace the content oftables.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withTables
Copy the current immutable object with elements that replace the content oftables. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of tables elements to set- Returns:
- A modified copy or
thisif not changed
-
withViews
Copy the current immutable object with elements that replace the content ofviews.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withViews
Copy the current immutable object with elements that replace the content ofviews. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of views elements to set- Returns:
- A modified copy or
thisif not changed
-
withProcedures
Copy the current immutable object with elements that replace the content ofprocedures.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withProcedures
Copy the current immutable object with elements that replace the content ofprocedures. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of procedures elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aDatabaseMetavalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable DatabaseMeta instance
-
builder
Creates a builder forImmutableDatabaseMeta.ImmutableDatabaseMeta.builder() .schema(String) // required
schema.addCustomTypes|addAllCustomTypes(org.nuiton.db.meta.CustomTypeMeta) //customTypeselements .addTables|addAllTables(org.nuiton.db.meta.TableMeta) //tableselements .addViews|addAllViews(org.nuiton.db.meta.TableMeta) //viewselements .addProcedures|addAllProcedures(org.nuiton.db.meta.ProcedureMeta) //procedureselements .build();- Returns:
- A new ImmutableDatabaseMeta builder
-