Java Code Examples for java.sql.CallableStatement.getFloat()

The following are Jave code examples for showing how to use getFloat() of the java.sql.CallableStatement class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: uavstack   File: DAOFactory.java   Source Code and License Vote up 5 votes
public Object getResult(CallableStatement cs, int columnIndex) throws SQLException {

            float f = cs.getFloat(columnIndex);
            if (cs.wasNull()) {
                return null;
            }
            else {
                return new Float(f);
            }
        }
 
Example 2
Project: tangyuan2   File: FloatTypeHandler.java   Source Code and License Vote up 4 votes
@Override
public Float getNullableResult(CallableStatement cs, int columnIndex) throws SQLException {
	return cs.getFloat(columnIndex);
}