Class Namespace
- java.lang.Object
-
- org.hibernate.boot.model.relational.Namespace
-
public class Namespace extends Object
Represents 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, Function<Identifier,DenormalizedTable> creator)SequencecreateSequence(Identifier logicalName, Function<Identifier,Sequence> creator)TablecreateTable(Identifier logicalTableName, Function<Identifier,Table> creator)Creates a mapping Table instance.booleanequals(Object o)Namespace.NamegetName()Namespace.NamegetPhysicalName()Iterable<Sequence>getSequences()Collection<Table>getTables()inthashCode()SequencelocateSequence(Identifier name)TablelocateTable(Identifier logicalTableName)Returns the table with the specified logical table name.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 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, Function<Identifier,Table> creator)
Creates a mapping Table instance.- Parameters:
logicalTableName- The logical table name- Returns:
- the created table.
-
createDenormalizedTable
public DenormalizedTable createDenormalizedTable(Identifier logicalTableName, Function<Identifier,DenormalizedTable> creator)
-
locateSequence
public Sequence locateSequence(Identifier name)
-
createSequence
public Sequence createSequence(Identifier logicalName, Function<Identifier,Sequence> creator)
-
-