gr.uoa.di.madgik.searchlibrary.operatorlibrary.datasource.predefined
Class JDBCDataSource

java.lang.Object
  extended by java.lang.Thread
      extended by gr.uoa.di.madgik.searchlibrary.operatorlibrary.datasource.DataSource
          extended by gr.uoa.di.madgik.searchlibrary.operatorlibrary.datasource.predefined.JDBCDataSource
All Implemented Interfaces:
Runnable

public class JDBCDataSource
extends DataSource

DataSource created from a database. Given a sql query, results received from the given database are returned through a gRS2.

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.datasource.DataSource
fieldDefs, filterMask, input, inputParameters, timeout, TimeoutDef, timeUnit, TimeUnitDef, writer
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
JDBCDataSource(String input, Map<String,String> inputParameters)
           
 
Method Summary
 URI getLocator()
          Abstract method used to retrieve URI locator of the gRS2
 void run()
           
 
Methods inherited from class gr.uoa.di.madgik.searchlibrary.operatorlibrary.datasource.DataSource
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

JDBCDataSource

public JDBCDataSource(String input,
                      Map<String,String> inputParameters)
               throws Exception
Parameters:
input - input value of the DataSource
inputParameters - input parameters of the DataSource
Throws:
Exception - If the initialization of the DataSource fails
Method Detail

run

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

getLocator

public URI getLocator()
Description copied from class: DataSource
Abstract method used to retrieve URI locator of the gRS2

Specified by:
getLocator in class DataSource
Returns:
A URI locator of the gRS2


Copyright © 2013. All Rights Reserved.