jodd-db/src/main/java/jodd/db/type/CharacterSqlType.java
@Override
	public Character get(final ResultSet rs, final int index, final int dbSqlType) throws SQLException {
		if (TypesUtil.isIntegerType(dbSqlType)) {
			return Character.valueOf((char) rs.getInt(index));
		}
		String s = rs.getString(index);
		if (s == null) {
			return null;
		}
		if (s.length() > 1) {
			throw new DbSqlException("Char column size too long, should be 1");
		}
		return Character.valueOf(s.charAt(0));
	}
@Override
	public Character get(final ResultSet rs, final int index, final int dbSqlType) throws SQLException {
		if (TypesUtil.isIntegerType(dbSqlType)) {
			return Character.valueOf((char) rs.getInt(index));
		}
		String s = rs.getString(index);
		if (s == null) {
			return null;
		}
		if (s.length() > 1) {
			throw new DbSqlException("Char column size too long, should be 1");
		}
		return Character.valueOf(s.charAt(0));
	}
@ Override public Character get ( final ResultSet rs , final int index , final int dbSqlType ) throws SQLException { if ( TypesUtil . isIntegerType ( dbSqlType ) ) { return Character . valueOf ( ( char ) rs . getInt ( index ) ) ; } String s = rs . getString ( index ) ; if ( s == null ) { return null ; } if ( s . length ( ) > 1 ) { throw new DbSqlException ( "Char column size too long, should be 1" ) ; } return Character . valueOf ( s . charAt ( 0 ) ) ; }
{@inheritDoc}
{