com.rapidminer.operator.io
Class AccessDataReader

java.lang.Object
  extended by com.rapidminer.tools.AbstractObservable<Operator>
      extended by com.rapidminer.operator.Operator
          extended by com.rapidminer.operator.io.AbstractReader<ExampleSet>
              extended by com.rapidminer.operator.io.AbstractExampleSource
                  extended by com.rapidminer.operator.io.DatabaseDataReader
                      extended by com.rapidminer.operator.io.AccessDataReader
All Implemented Interfaces:
ConfigurationListener, PreviewListener, ResourceConsumer, ParameterHandler, ConnectionProvider, LoggingHandler, Observable<Operator>

public class AccessDataReader
extends DatabaseDataReader

This class implements a Access database reader. It simply configures the inherited DatabaseDataReader and hides not necessary parameters.

Author:
Sebastian Loh, Sebastian Land, Tobias Malbrecht

Nested Class Summary
 
Nested classes/interfaces inherited from class com.rapidminer.operator.io.AbstractReader
AbstractReader.ReaderDescription
 
Field Summary
static java.lang.String PARAMETER_DATABASE_FILE
           
static java.lang.String PARAMETER_PASSWORD
           
static java.lang.String PARAMETER_USERNAME
           
 
Fields inherited from class com.rapidminer.operator.io.DatabaseDataReader
PROPERTY_EVALUATE_MD_FOR_SQL_QUERIES
 
Constructor Summary
AccessDataReader(OperatorDescription description)
           
 
Method Summary
 ConnectionEntry getConnectionEntry()
           
 MetaData getGeneratedMetaData()
           
 java.util.List<ParameterType> getParameterTypes()
          Returns a list of ParameterTypes describing the parameters of this operator.
protected  java.sql.ResultSet getResultSet()
           
protected  void setAccessParameters()
           
 
Methods inherited from class com.rapidminer.operator.io.DatabaseDataReader
addAnnotations, createExampleSet, isMetaDataCacheable, read
 
Methods inherited from class com.rapidminer.operator.io.AbstractReader
canMakeReaderFor, createReader, doWork, getFileParameterForOperator, registerOperator, registerReaderDescription, supportsEncoding
 
Methods inherited from class com.rapidminer.operator.Operator
acceptsInput, addError, addError, addValue, addWarning, apply, apply, assumePreconditionsSatisfied, checkAll, checkAllExcludingMetaData, checkDeprecations, checkForStop, checkIO, checkProperties, clear, clearErrorList, cloneOperator, collectErrors, createExperimentTree, createExperimentTree, createFromXML, createFromXML, createFromXML, createMarkedExperimentTree, createMarkedProcessTree, createProcessTree, createProcessTree, disconnectPorts, execute, fireUpdate, freeMemory, getAddOnlyAdditionalOutput, getApplyCount, getCompatibilityLevel, getDeliveredOutputClasses, getDeprecationInfo, getDesiredInputClasses, getDOMRepresentation, getEncoding, getErrorList, getExecutionUnit, getExperiment, getIncompatibleVersionChanges, getInput, getInput, getInput, getInputClasses, getInputDescription, getInputPorts, getIODescription, getLog, getLogger, getName, getNumberOfBreakpoints, getOperatorClassName, getOperatorDescription, getOutputClasses, getOutputPorts, getParameter, getParameterAsBoolean, getParameterAsChar, getParameterAsColor, getParameterAsDouble, getParameterAsFile, getParameterAsFile, getParameterAsInputStream, getParameterAsInt, getParameterAsMatrix, getParameterAsRepositoryLocation, getParameterAsString, getParameterHandler, getParameterList, getParameters, getParameterTupel, getParameterType, getParent, getPortOwner, getProcess, getResourceConsumptionEstimator, getRoot, getStartTime, getTransformer, getUserDescription, getValue, getValues, getXML, getXML, getXML, hasBreakpoint, hasBreakpoint, hasInput, inApplyLoop, isDebugMode, isDirty, isEnabled, isExpanded, isParallel, isParameterSet, isRunning, log, log, logError, logNote, logWarning, lookupOperator, makeDirty, makeDirtyOnUpdate, notifyRenaming, performAdditionalChecks, preAutoWire, processFinished, processStarts, producesOutput, propagateDirtyness, register, remove, removeAndKeepConnections, rename, resume, setBreakpoint, setCompatibilityLevel, setEnabled, setEnclosingProcess, setExpanded, setInput, setListParameter, setPairParameter, setParameter, setParameters, setUserDescription, shouldAutoConnect, shouldAutoConnect, shouldStopStandaloneExecution, toString, transformMetaData, unregisterOperator, updateExecutionOrder, walk, writeXML, writeXML
 
Methods inherited from class com.rapidminer.tools.AbstractObservable
addObserver, addObserverAsFirst, fireUpdate, removeObserver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PARAMETER_DATABASE_FILE

public static final java.lang.String PARAMETER_DATABASE_FILE
See Also:
Constant Field Values

PARAMETER_USERNAME

public static final java.lang.String PARAMETER_USERNAME
See Also:
Constant Field Values

PARAMETER_PASSWORD

public static final java.lang.String PARAMETER_PASSWORD
See Also:
Constant Field Values
Constructor Detail

AccessDataReader

public AccessDataReader(OperatorDescription description)
                 throws OperatorCreationException
Throws:
OperatorCreationException
Method Detail

getResultSet

protected java.sql.ResultSet getResultSet()
                                   throws OperatorException
Overrides:
getResultSet in class DatabaseDataReader
Throws:
OperatorException

getGeneratedMetaData

public MetaData getGeneratedMetaData()
                              throws OperatorException
Overrides:
getGeneratedMetaData in class DatabaseDataReader
Throws:
OperatorException

setAccessParameters

protected void setAccessParameters()
                            throws UndefinedParameterError
Throws:
UndefinedParameterError

getParameterTypes

public java.util.List<ParameterType> getParameterTypes()
Description copied from class: Operator
Returns a list of ParameterTypes describing the parameters of this operator. The default implementation returns an empty list if no input objects can be retained and special parameters for those input objects which can be prevented from being consumed. ATTENTION! This will create new parameterTypes. For calling already existing parameter types use getParameters().getParameterTypes();

Specified by:
getParameterTypes in interface ParameterHandler
Overrides:
getParameterTypes in class DatabaseDataReader

getConnectionEntry

public ConnectionEntry getConnectionEntry()
Specified by:
getConnectionEntry in interface ConnectionProvider
Overrides:
getConnectionEntry in class DatabaseDataReader


Copyright © 2001-2009 by Rapid-I