类 SpringPhysicalNamingStrategy

  • 所有已实现的接口:
    org.hibernate.boot.model.naming.PhysicalNamingStrategy

    public class SpringPhysicalNamingStrategy
    extends Object
    implements org.hibernate.boot.model.naming.PhysicalNamingStrategy
    Hibernate PhysicalNamingStrategy that follows Spring recommended naming conventions.
    从以下版本开始:
    1.4.0
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型方法说明
      protected org.hibernate.boot.model.naming.IdentifiergetIdentifier​(String name, boolean quoted, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
      Get an identifier for the specified details.
      protected booleanisCaseInsensitive​(org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment)
      Specify whether the database is case sensitive.
      org.hibernate.boot.model.naming.IdentifiertoPhysicalCatalogName​(org.hibernate.boot.model.naming.Identifier name, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment) 
      org.hibernate.boot.model.naming.IdentifiertoPhysicalColumnName​(org.hibernate.boot.model.naming.Identifier name, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment) 
      org.hibernate.boot.model.naming.IdentifiertoPhysicalSchemaName​(org.hibernate.boot.model.naming.Identifier name, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment) 
      org.hibernate.boot.model.naming.IdentifiertoPhysicalSequenceName​(org.hibernate.boot.model.naming.Identifier name, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment) 
      org.hibernate.boot.model.naming.IdentifiertoPhysicalTableName​(org.hibernate.boot.model.naming.Identifier name, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment jdbcEnvironment) 
    • 方法详细资料

      • 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 of isCaseInsensitive(JdbcEnvironment)
        参数:
        name - the name of the identifier
        quoted - if the identifier is quoted
        jdbcEnvironment - 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