Class Namespace
- java.lang.Object
-
- org.hibernate.boot.model.relational.Namespace
-
public class Namespace extends java.lang.ObjectRepresents a namespace (named schema/catalog pair) with a Database and manages objects defined within.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNamespace.ComparableHelperstatic classNamespace.Name
-
Constructor Summary
Constructors Constructor Description Namespace(PhysicalNamingStrategy physicalNamingStrategy, JdbcEnvironment jdbcEnvironment, Namespace.Name name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DenormalizedTablecreateDenormalizedTable(Identifier logicalTableName, boolean isAbstract, Table includedTable)SequencecreateSequence(Identifier logicalName, int initialValue, int increment)TablecreateTable(Identifier logicalTableName, boolean isAbstract)Creates a mapping Table instance.booleanequals(java.lang.Object o)Namespace.NamegetName()Namespace.NamegetPhysicalName()java.lang.Iterable<Sequence>getSequences()java.util.Collection<Table>getTables()inthashCode()SequencelocateSequence(Identifier name)TablelocateTable(Identifier logicalTableName)Returns the table with the specified logical table name.java.lang.StringtoString()
-
-
-
Constructor Detail
-
Namespace
public Namespace(PhysicalNamingStrategy physicalNamingStrategy, JdbcEnvironment jdbcEnvironment, Namespace.Name name)
-
-
Method Detail
-
getName
public Namespace.Name getName()
-
getPhysicalName
public Namespace.Name getPhysicalName()
-
getTables
public java.util.Collection<Table> getTables()
-
locateTable
public Table locateTable(Identifier logicalTableName)
Returns the table with the specified logical table name.- Parameters:
logicalTableName- - the logical name of the table- Returns:
- the table with the specified table name, or null if there is no table with the specified table name.
-
createTable
public Table createTable(Identifier logicalTableName, boolean isAbstract)
Creates a mapping Table instance.- Parameters:
logicalTableName- The logical table name- Returns:
- the created table.
-
createDenormalizedTable
public DenormalizedTable createDenormalizedTable(Identifier logicalTableName, boolean isAbstract, Table includedTable)
-
locateSequence
public Sequence locateSequence(Identifier name)
-
createSequence
public Sequence createSequence(Identifier logicalName, int initialValue, int increment)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getSequences
public java.lang.Iterable<Sequence> getSequences()
-
-