类 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.- 作者:
- Steve Ebersole
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classNamespace.ComparableHelperstatic classNamespace.Name
-
构造器概要
构造器 构造器 说明 Namespace(PhysicalNamingStrategy physicalNamingStrategy, JdbcEnvironment jdbcEnvironment, Namespace.Name name)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 DenormalizedTablecreateDenormalizedTable(Identifier logicalTableName, boolean isAbstract, Table includedTable)SequencecreateSequence(Identifier logicalName, int initialValue, int increment)TablecreateTable(Identifier logicalTableName, boolean isAbstract)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()
-
-
-
构造器详细资料
-
Namespace
public Namespace(PhysicalNamingStrategy physicalNamingStrategy, JdbcEnvironment jdbcEnvironment, Namespace.Name name)
-
-
方法详细资料
-
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.- 参数:
logicalTableName- - the logical name of the table- 返回:
- 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.- 参数:
logicalTableName- The logical table name- 返回:
- 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)
-
-