public class ShortColumnHandler extends Object implements ColumnHandler
Constructor and Description |
---|
ShortColumnHandler() |
Modifier and Type | Method and Description |
---|---|
Object |
apply(ResultSet rs,
int columnIndex)
Do the work required to retrieve and store a column from
ResultSet into something of type
propType . |
boolean |
match(Class<?> propType)
Test whether this
ColumnHandler wants to handle a column targetted for a value type matching
propType . |
public boolean match(Class<?> propType)
ColumnHandler
ColumnHandler
wants to handle a column targetted for a value type matching
propType
.match
in interface ColumnHandler
propType
- The type of the target parameter.public Object apply(ResultSet rs, int columnIndex) throws SQLException
ColumnHandler
ResultSet
into something of type
propType
. This method is called only if this handler responded true
after a
call to ColumnHandler.match(Class)
.apply
in interface ColumnHandler
rs
- The result set to get data from. This should be moved to the correct row already.columnIndex
- The position of the column to retrieve.SQLException
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.