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(PhysicalNamingStrategy physicalNamingStrategy, JdbcEnvironment jdbcEnvironment, Namespace.Name name)
-
Method Summary
-
-
-
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)
-
getUserDefinedTypes
public Collection<UserDefinedType> getUserDefinedTypes()
-
getDependencyOrderedUserDefinedTypes
public List<UserDefinedType> getDependencyOrderedUserDefinedTypes()
-
locateUserDefinedType
public UserDefinedType locateUserDefinedType(Identifier logicalTypeName)
Returns the UDT with the specified logical UDT name.- Parameters:
logicalTypeName
- - the logical name of the UDT- Returns:
- the table with the specified UDT name, or null if there is no table with the specified UDT name.
-
createUserDefinedType
public UserDefinedType createUserDefinedType(Identifier logicalTypeName, Function<Identifier,UserDefinedType> creator)
Creates a mapping UDT instance.- Parameters:
logicalTypeName
- The logical UDT name- Returns:
- the created UDT.
-
-