インタフェース ColumnFieldMapper

  • 既知の実装クラスのリスト:
    DefaultColumnFieldMapper

    public interface ColumnFieldMapper
    A mapper from column to field name.
    作成者:
    nkjm
    • メソッドの詳細

      • getAutoGeneratedColumns

        List<Column> getAutoGeneratedColumns​(DatabaseMetaData metaData,
                                             String tableName)
                                      throws SQLException
        Retrieves a list of auto-generated columns of the given table name from the database metadata.
        パラメータ:
        metaData -
        tableName -
        戻り値:
        例外:
        SQLException
      • getPrimaryKeys

        List<Column> getPrimaryKeys​(DatabaseMetaData metaData,
                                    String tableName)
                             throws SQLException
        Retrieves a list of primary keys columns of the given table name from the database metadata.
        パラメータ:
        metaData -
        tableName -
        戻り値:
        例外:
        SQLException
      • createAccessors

        Map<String,​Accessor> createAccessors​(Class<?> objectClass,
                                                   List<Column> columns)
        Creates accessors by guessing column names from the object class for TableMapping
        パラメータ:
        objectClass -
        columns -
        戻り値:
      • createAccessors

        Map<String,​Accessor> createAccessors​(Class<?> objectClass)
        Creates accessors by guessing column names from the object class for ColumnsMapping
        パラメータ:
        objectClass -
        戻り値: