gr.uoa.di.madgik.searchlibrary.operatorlibrary.datasink.predefined
Class JDBCDataSink<T extends gr.uoa.di.madgik.grs.record.Record>

java.lang.Object
  extended by java.lang.Thread
      extended by gr.uoa.di.madgik.searchlibrary.operatorlibrary.datasink.DataSink
          extended by gr.uoa.di.madgik.searchlibrary.operatorlibrary.datasink.predefined.JDBCDataSink<T>
Type Parameters:
T - extends Record
All Implemented Interfaces:
Runnable

public class JDBCDataSink<T extends gr.uoa.di.madgik.grs.record.Record>
extends DataSink

DataSink created for a database. Given a sql query, contents retrieved through a gRS2 are stored in given db system.

Author:
john.gerbesiotis - DI NKUA

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class gr.uoa.di.madgik.searchlibrary.operatorlibrary.datasink.DataSink
fieldDefs, inLocator, output, outputParameters, stats, timeout, timeUnit
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
JDBCDataSink(URI inLocator, String output, Map<String,String> outputParameters, gr.uoa.di.madgik.searchlibrary.operatorlibrary.stats.StatsContainer statsCont)
           
 
Method Summary
 String getOutput()
          Abstract method used to retrieve output
 void run()
           
 
Methods inherited from class gr.uoa.di.madgik.searchlibrary.operatorlibrary.datasink.DataSink
setTimeout, setTimeUnit
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JDBCDataSink

public JDBCDataSink(URI inLocator,
                    String output,
                    Map<String,String> outputParameters,
                    gr.uoa.di.madgik.searchlibrary.operatorlibrary.stats.StatsContainer statsCont)
             throws Exception
Parameters:
inLocator - input locator of the consuming result set
output - output value of the DataSink
outputParameters - output parameters of the DataSink
statsCont - statistics container
Throws:
Exception - If the initialization of the DataSink fails
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

getOutput

public String getOutput()
Description copied from class: DataSink
Abstract method used to retrieve output

Specified by:
getOutput in class DataSink
Returns:
An output description


Copyright © 2013. All Rights Reserved.