All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.landawn.abacus.util.Columns Maven / Gradle / Ivy

There is a newer version: 3.8.5
Show newest version
package com.landawn.abacus.util;

import java.io.InputStream;
import java.io.Reader;
import java.math.BigDecimal;
import java.sql.Blob;
import java.sql.Clob;
import java.sql.Date;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.Map;

import com.landawn.abacus.type.Type;
import com.landawn.abacus.util.JdbcUtil.BiParametersSetter;
import com.landawn.abacus.util.JdbcUtil.RowMapper;

public final class Columns {
    private Columns() {
        // singleton for utility class
    }

    public static final class ColumnOne {
        public static final RowMapper GET_BOOLEAN = rs -> rs.getBoolean(1);

        public static final RowMapper GET_BYTE = rs -> rs.getByte(1);

        public static final RowMapper GET_SHORT = rs -> rs.getShort(1);

        public static final RowMapper GET_INT = rs -> rs.getInt(1);

        public static final RowMapper GET_LONG = rs -> rs.getLong(1);

        public static final RowMapper GET_FLOAT = rs -> rs.getFloat(1);

        public static final RowMapper GET_DOUBLE = rs -> rs.getDouble(1);

        public static final RowMapper GET_BIG_DECIMAL = rs -> rs.getBigDecimal(1);

        public static final RowMapper GET_STRING = rs -> rs.getString(1);

        public static final RowMapper GET_DATE = rs -> rs.getDate(1);

        public static final RowMapper