Package io.ebean

Interface SqlRow

  • All Superinterfaces:
    Map<String,​Object>, Serializable

    public interface SqlRow
    extends Serializable, Map<String,​Object>
    Used to return raw SQL query results.

    Refer to SqlQuery for examples.

    There are convenience methods such as getInteger(), getBigDecimal() etc. The reason for these methods is that the values put into this map often come straight from the JDBC resultSet. Depending on the JDBC driver it may put a different type into a given property. For example an Integer, BigDecimal, Double could all be put into a property depending on the JDBC driver used. These convenience methods automatically convert the value as required returning the type you expect.