org.apache.beehive.controls.system.jdbc
Class RowToXmlObjectMapper

Object
  extended by RowMapper
      extended by RowToXmlObjectMapper

public class RowToXmlObjectMapper
extends RowMapper

Maps a ResultSet row to an XmlObject.


Field Summary
 
Fields inherited from class RowMapper
_cal, _resultSet, _returnTypeClass, _setterRegex, _tmf
 
Method Summary
protected  String[] getKeysFromResultSet()
          Build a String array of column names from the ResultSet.
 Object mapRowToReturnType()
          map a row from the ResultSet to an XmlObject instance
 
Methods inherited from class RowMapper
extractColumnValue, isSetterMethod
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

mapRowToReturnType

public Object mapRowToReturnType()
map a row from the ResultSet to an XmlObject instance

Specified by:
mapRowToReturnType in class RowMapper
Returns:
An XmlObject instance.

getKeysFromResultSet

protected String[] getKeysFromResultSet()
                                 throws SQLException
Build a String array of column names from the ResultSet.

Overrides:
getKeysFromResultSet in class RowMapper
Returns:
A String array containing the column names contained within the ResultSet.
Throws:
SQLException - on error