类 SpringPhysicalNamingStrategy
- java.lang.Object
- org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
- 所有已实现的接口:
org.hibernate.boot.model.naming.PhysicalNamingStrategy
public class SpringPhysicalNamingStrategy extends Object implements org.hibernate.boot.model.naming.PhysicalNamingStrategy
HibernatePhysicalNamingStrategy
that follows Spring recommended naming conventions.- 从以下版本开始:
- 1.4.0
构造器概要
构造器 构造器 说明 SpringPhysicalNamingStrategy()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected org.hibernate.boot.model.naming.Identifier
getIdentifier(String name, boolean quoted, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
Get an identifier for the specified details.protected boolean
isCaseInsensitive(org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
Specify whether the database is case sensitive.org.hibernate.boot.model.naming.Identifier
toPhysicalCatalogName(org.hibernate.boot.model.naming.Identifier name, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
org.hibernate.boot.model.naming.Identifier
toPhysicalColumnName(org.hibernate.boot.model.naming.Identifier name, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
org.hibernate.boot.model.naming.Identifier
toPhysicalSchemaName(org.hibernate.boot.model.naming.Identifier name, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
org.hibernate.boot.model.naming.Identifier
toPhysicalSequenceName(org.hibernate.boot.model.naming.Identifier name, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
org.hibernate.boot.model.naming.Identifier
toPhysicalTableName(org.hibernate.boot.model.naming.Identifier name, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
构造器详细资料
SpringPhysicalNamingStrategy
public SpringPhysicalNamingStrategy()
方法详细资料
toPhysicalCatalogName
public org.hibernate.boot.model.naming.Identifier toPhysicalCatalogName(org.hibernate.boot.model.naming.Identifier name, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
- 指定者:
toPhysicalCatalogName
在接口中org.hibernate.boot.model.naming.PhysicalNamingStrategy
toPhysicalSchemaName
public org.hibernate.boot.model.naming.Identifier toPhysicalSchemaName(org.hibernate.boot.model.naming.Identifier name, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
- 指定者:
toPhysicalSchemaName
在接口中org.hibernate.boot.model.naming.PhysicalNamingStrategy
toPhysicalTableName
public org.hibernate.boot.model.naming.Identifier toPhysicalTableName(org.hibernate.boot.model.naming.Identifier name, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
- 指定者:
toPhysicalTableName
在接口中org.hibernate.boot.model.naming.PhysicalNamingStrategy
toPhysicalSequenceName
public org.hibernate.boot.model.naming.Identifier toPhysicalSequenceName(org.hibernate.boot.model.naming.Identifier name, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
- 指定者:
toPhysicalSequenceName
在接口中org.hibernate.boot.model.naming.PhysicalNamingStrategy
toPhysicalColumnName
public org.hibernate.boot.model.naming.Identifier toPhysicalColumnName(org.hibernate.boot.model.naming.Identifier name, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
- 指定者:
toPhysicalColumnName
在接口中org.hibernate.boot.model.naming.PhysicalNamingStrategy
getIdentifier
protected org.hibernate.boot.model.naming.Identifier getIdentifier(String name, boolean quoted, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
Get an identifier for the specified details. By default this method will return an identifier with the name adapted based on the result ofisCaseInsensitive(JdbcEnvironment)
- 参数:
name
- the name of the identifierquoted
- if the identifier is quotedjdbcEnvironment
- the JDBC environment- 返回:
- an identifier instance
isCaseInsensitive
protected boolean isCaseInsensitive(org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
Specify whether the database is case sensitive.- 参数:
jdbcEnvironment
- the JDBC environment which can be used to determine case- 返回:
- true if the database is case insensitive sensitivity