Class DatabaseProperties

java.lang.Object
org.apereo.cas.configuration.model.support.jpa.DatabaseProperties
All Implemented Interfaces:
Serializable

@RequiresModule(name="cas-server-support-jdbc-drivers") public class DatabaseProperties extends Object implements Serializable
Since:
5.0.0
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Indicate a physical table name to be used by the hibernate naming strategy in case table names need to be customized for the specific type of database.
    boolean
    When choosing physical table names, determine whether names should be considered case-insensitive.
    boolean
    Whether to generate DDL after the EntityManagerFactory has been initialized creating/updating all relevant tables.
    boolean
    Whether SQL queries should be displayed in the console/logs.
    setCaseInsensitive(boolean caseInsensitive)
    When choosing physical table names, determine whether names should be considered case-insensitive.
    setGenDdl(boolean genDdl)
    Whether to generate DDL after the EntityManagerFactory has been initialized creating/updating all relevant tables.
    setPhysicalTableNames(Map<String,String> physicalTableNames)
    Indicate a physical table name to be used by the hibernate naming strategy in case table names need to be customized for the specific type of database.
    setShowSql(boolean showSql)
    Whether SQL queries should be displayed in the console/logs.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DatabaseProperties

      public DatabaseProperties()
  • Method Details

    • isShowSql

      public boolean isShowSql()
      Whether SQL queries should be displayed in the console/logs.
    • isGenDdl

      public boolean isGenDdl()
      Whether to generate DDL after the EntityManagerFactory has been initialized creating/updating all relevant tables.
    • isCaseInsensitive

      public boolean isCaseInsensitive()
      When choosing physical table names, determine whether names should be considered case-insensitive.
    • getPhysicalTableNames

      public Map<String,String> getPhysicalTableNames()
      Indicate a physical table name to be used by the hibernate naming strategy in case table names need to be customized for the specific type of database. The key here indicates the CAS-provided table name and the value is the translate physical name for the database. If a match is not found for the CAS-provided table name, then that name will be used by default.
    • setShowSql

      public DatabaseProperties setShowSql(boolean showSql)
      Whether SQL queries should be displayed in the console/logs.
      Returns:
      this.
    • setGenDdl

      public DatabaseProperties setGenDdl(boolean genDdl)
      Whether to generate DDL after the EntityManagerFactory has been initialized creating/updating all relevant tables.
      Returns:
      this.
    • setCaseInsensitive

      public DatabaseProperties setCaseInsensitive(boolean caseInsensitive)
      When choosing physical table names, determine whether names should be considered case-insensitive.
      Returns:
      this.
    • setPhysicalTableNames

      public DatabaseProperties setPhysicalTableNames(Map<String,String> physicalTableNames)
      Indicate a physical table name to be used by the hibernate naming strategy in case table names need to be customized for the specific type of database. The key here indicates the CAS-provided table name and the value is the translate physical name for the database. If a match is not found for the CAS-provided table name, then that name will be used by default.
      Returns:
      this.