クラス DefaultTableNameMapper

    • コンストラクタの詳細

      • DefaultTableNameMapper

        public DefaultTableNameMapper()
    • メソッドの詳細

      • getTableName

        public TableName getTableName​(String tableName,
                                      DatabaseMetaData metaData)
        インタフェースからコピーされた説明: TableNameMapper
        Get table name corresponding with the table name.
        定義:
        getTableName インタフェース内 TableNameMapper
        パラメータ:
        tableName - object class mapping to table
        戻り値:
        table name exists in database.
      • getTableName

        public TableName getTableName​(Class<?> objectClass,
                                      DatabaseMetaData metaData)
        インタフェースからコピーされた説明: TableNameMapper
        Get table name corresponding with the object class.
        定義:
        getTableName インタフェース内 TableNameMapper
        パラメータ:
        objectClass - object class mapping to table
        戻り値:
        table name exists in database.
      • guessTableNameCandidates

        protected List<String> guessTableNameCandidates​(Class<?> objectClass)
        Guesses table name from the given object class.
        パラメータ:
        objectClass -
        戻り値:
      • convertToExactTableName

        protected Optional<TableName> convertToExactTableName​(DatabaseMetaData metaData,
                                                              List<String> tableNameCandidates)
        Convert from the given table name candidates to the exact table name on the database.
        パラメータ:
        metaData -
        tableNameCandidates -
        戻り値:
        例外:
        SQLException
      • isMatch

        protected boolean isMatch​(List<String> candidates,
                                  String exactTableName)
        Returns success or not: the given table name is match the one of the given candidates. That is ignore case.
        パラメータ:
        candidates -
        exactTableName - is the table name on the database
        戻り値: