cayenne/src/main/java/org/apache/cayenne/access/types/DurationType.java [69:100]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Duration val = null;
        switch(type) {
            case Types.INTEGER:
                val = Duration.ofMillis(rs.getInt(index));
                break;
            case Types.NUMERIC:
                val = Duration.ofMillis(rs.getBigDecimal(index).longValue());
                break;
            case Types.DECIMAL:
                val = Duration.ofMillis(rs.getBigDecimal(index).longValue());
                break;
            case Types.BIGINT:
                val = Duration.ofMillis(rs.getLong(index));
                break;
            case Types.VARCHAR:
                val = Duration.parse(rs.getString(index));
                break;
            case Types.LONGVARCHAR:
                val = Duration.parse(rs.getString(index));
                break;
        }

        if(rs.wasNull()) {
            return null;
        } else if(val != null) {
            return val;
        } else {
            throw new CayenneRuntimeException("Can't materialize " + rs.getObject(index) + " of type: " + type);
        }
    }

    @Override
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



cayenne/src/main/java/org/apache/cayenne/access/types/DurationType.java [102:133]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Duration val = null;
        switch(type) {
            case Types.INTEGER:
                val = Duration.ofMillis(rs.getInt(index));
                break;
            case Types.NUMERIC:
                val = Duration.ofMillis(rs.getBigDecimal(index).longValue());
                break;
            case Types.DECIMAL:
                val = Duration.ofMillis(rs.getBigDecimal(index).longValue());
                break;
            case Types.BIGINT:
                val = Duration.ofMillis(rs.getLong(index));
                break;
            case Types.VARCHAR:
                val = Duration.parse(rs.getString(index));
                break;
            case Types.LONGVARCHAR:
                val = Duration.parse(rs.getString(index));
                break;
        }

        if(rs.wasNull()) {
            return null;
        } else if(val != null) {
            return val;
        } else {
            throw new CayenneRuntimeException("Can't materialize " + rs.getObject(index) + " of type: " + type);
        }
    }

    @Override
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



