Class AbstractDataSourceFactory
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ClassFactoryImpl
-
- org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.datasource.AbstractDataSourceFactory
-
- All Implemented Interfaces:
Serializable
,ClassFactory
,DataSourceFactory
- Direct Known Subclasses:
DefaultDataSourceFactory
public abstract class AbstractDataSourceFactory extends ClassFactoryImpl implements DataSourceFactory
A base class for implementing theDataSourceFactory
interface.- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractDataSourceFactory()
Creates a new factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectDescription
getDataSourceDescription(String name)
Returns a data source description.String
getDataSourceName(ObjectDescription od)
Returns a data source name given a description.Iterator
getRegisteredNames()
Returns the names of all registered datasources as iterator.void
registerDataSources(String name, ObjectDescription o)
Registers a data source.-
Methods inherited from class org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ClassFactoryImpl
configure, equals, getConfig, getDescriptionForClass, getRegisteredClasses, getSuperClassObjectDescription, hashCode, registerClass
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.base.ClassFactory
configure, equals, getDescriptionForClass, getRegisteredClasses, getSuperClassObjectDescription, hashCode
-
-
-
-
Method Detail
-
registerDataSources
public void registerDataSources(String name, ObjectDescription o)
Registers a data source.- Parameters:
name
- the name.o
- the object description.
-
getDataSourceDescription
public ObjectDescription getDataSourceDescription(String name)
Returns a data source description.- Specified by:
getDataSourceDescription
in interfaceDataSourceFactory
- Parameters:
name
- the data source name.- Returns:
- The object description.
-
getDataSourceName
public String getDataSourceName(ObjectDescription od)
Returns a data source name given a description.- Specified by:
getDataSourceName
in interfaceDataSourceFactory
- Parameters:
od
- the object description.- Returns:
- The name.
-
getRegisteredNames
public Iterator getRegisteredNames()
Returns the names of all registered datasources as iterator.- Specified by:
getRegisteredNames
in interfaceDataSourceFactory
- Returns:
- the registered names.
-
-