gr.uoa.di.madgik.searchlibrary.operatorlibrary.extjdbc
Class JdbcResultElement

java.lang.Object
  extended by gr.uoa.di.madgik.searchlibrary.operatorlibrary.extjdbc.JdbcResultElement

public class JdbcResultElement
extends Object

This class acts as a container for the external service to fill with results.

Author:
UoA

Constructor Summary
JdbcResultElement()
           
 
Method Summary
static String rs2XML(String[] columnNames, ResultSet rs)
          Tranform each tuple to its respective XML representation, with each element correspond to a tuple attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcResultElement

public JdbcResultElement()
Method Detail

rs2XML

public static String rs2XML(String[] columnNames,
                            ResultSet rs)
                     throws Exception
Tranform each tuple to its respective XML representation, with each element correspond to a tuple attribute.

Parameters:
columnNames - The names of the colums
rs - The current result set
Returns:
The XML representation of the tuple
Throws:
Exception - An unrecoverable for the operation error occured


Copyright © 2013. All Rights Reserved.