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.
-
registerTable
public void registerTable(Identifier logicalName, Table table)
-
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)
-
registerSequence
public void registerSequence(Identifier logicalName, Sequence sequence)
-
createSequence
public Sequence createSequence(Identifier logicalName, Function<Identifier,Sequence> creator)
-
getUserDefinedTypes
@Incubating public Collection<UserDefinedType> getUserDefinedTypes()
-
getDependencyOrderedUserDefinedTypes
@Incubating public List<UserDefinedType> getDependencyOrderedUserDefinedTypes()
-
locateUserDefinedType
@Incubating public UserDefinedObjectType locateUserDefinedType(Identifier logicalTypeName)
Returns the object UDT with the specified logical UDT name.- Parameters:
logicalTypeName
- - the logical name of the UDT- Returns:
- the object UDT with the specified UDT name, or null if there is no UDT with the specified UDT name.
-
locateUserDefinedArrayType
@Incubating public UserDefinedArrayType locateUserDefinedArrayType(Identifier logicalTypeName)
Returns the array UDT with the specified logical UDT name.- Parameters:
logicalTypeName
- - the logical name of the UDT- Returns:
- the array UDT with the specified UDT name, or null if there is no UDT with the specified UDT name.
-
createUserDefinedType
@Incubating public UserDefinedObjectType createUserDefinedType(Identifier logicalTypeName, Function<Identifier,UserDefinedObjectType> creator)
Creates a mapping UDT instance.- Parameters:
logicalTypeName
- The logical UDT name- Returns:
- the created UDT.
-
createUserDefinedArrayType
@Incubating public UserDefinedArrayType createUserDefinedArrayType(Identifier logicalTypeName, Function<Identifier,UserDefinedArrayType> creator)
Creates a mapping UDT instance.- Parameters:
logicalTypeName
- The logical UDT name- Returns:
- the created UDT.
-
-