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 class
Namespace.ComparableHelper
static class
Namespace.Name
-
Constructor Summary
Constructors Constructor Description Namespace(Database database, Namespace.Name name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DenormalizedTable
createDenormalizedTable(Identifier logicalTableName, boolean isAbstract, Table includedTable)
Sequence
createSequence(Identifier logicalName, int initialValue, int increment)
Table
createTable(Identifier logicalTableName, boolean isAbstract)
Creates a mapping Table instance.boolean
equals(Object o)
Namespace.Name
getName()
Namespace.Name
getPhysicalName()
Iterable<Sequence>
getSequences()
Collection<Table>
getTables()
int
hashCode()
Sequence
locateSequence(Identifier name)
Table
locateTable(Identifier logicalTableName)
Returns the table with the specified logical table name.String
toString()
-
-
-
Constructor Detail
-
Namespace
public Namespace(Database database, 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, 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)
-
-