Class Namespace
java.lang.Object
org.hibernate.boot.model.relational.Namespace
Represents a namespace (named schema/catalog pair) with a Database and manages objects defined within.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
ConstructorsConstructorDescriptionNamespace
(PhysicalNamingStrategy physicalNamingStrategy, JdbcEnvironment jdbcEnvironment, Namespace.Name name) -
Method Summary
Modifier and TypeMethodDescriptioncreateDenormalizedTable
(Identifier logicalTableName, Function<Identifier, DenormalizedTable> creator) createSequence
(Identifier logicalName, Function<Identifier, Sequence> creator) createTable
(Identifier logicalTableName, Function<Identifier, Table> creator) Creates a mapping Table instance.createUserDefinedArrayType
(Identifier logicalTypeName, Function<Identifier, UserDefinedArrayType> creator) Creates a mapping UDT instance.createUserDefinedType
(Identifier logicalTypeName, Function<Identifier, UserDefinedObjectType> creator) Creates a mapping UDT instance.boolean
getName()
int
hashCode()
locateSequence
(Identifier name) locateTable
(Identifier logicalTableName) Returns the table with the specified logical table name.locateUserDefinedArrayType
(Identifier logicalTypeName) Returns the array UDT with the specified logical UDT name.locateUserDefinedType
(Identifier logicalTypeName) Returns the object UDT with the specified logical UDT name.void
registerSequence
(Identifier logicalName, Sequence sequence) void
registerTable
(Identifier logicalName, Table table) toString()
-
Constructor Details
-
Namespace
public Namespace(PhysicalNamingStrategy physicalNamingStrategy, JdbcEnvironment jdbcEnvironment, Namespace.Name name)
-
-
Method Details
-
getName
-
getPhysicalName
-
getTables
-
locateTable
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
-
createTable
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
-
registerSequence
-
createSequence
-
getUserDefinedTypes
-
getDependencyOrderedUserDefinedTypes
-
locateUserDefinedType
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
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.
-
toString
-
equals
-
hashCode
public int hashCode() -
getSequences
-