net.sf.farrago.namespace.util
Class MedAbstractMetadataSink
java.lang.Object
net.sf.farrago.namespace.util.MedAbstractMetadataSink
- All Implemented Interfaces:
- FarragoMedMetadataSink
- Direct Known Subclasses:
- DdlImportForeignSchemaStmt.ImportSink, FarragoMedUDR.BrowseSchemaSink
public abstract class MedAbstractMetadataSink
- extends Object
- implements FarragoMedMetadataSink
MedAbstractMetadataSink is an abstract base class for implementations of the
FarragoMedMetadataSink
interface.
- Version:
- $Id: //open/dev/farrago/src/net/sf/farrago/namespace/util/MedAbstractMetadataSink.java#8 $
- Author:
- John V. Sichi
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
query
private final FarragoMedMetadataQuery query
typeFactory
private final FarragoTypeFactory typeFactory
patternMap
private final Map<String,Pattern> patternMap
MedAbstractMetadataSink
protected MedAbstractMetadataSink(FarragoMedMetadataQuery query,
FarragoTypeFactory typeFactory)
- Creates a new sink.
- Parameters:
query
- the query being processed; its filters will be implemented
by this sinktypeFactory
- factory for types written to this sink
shouldInclude
protected boolean shouldInclude(String objectName,
String typeName,
boolean qualifier)
- Tests whether an object should be included in the query result.
- Parameters:
objectName
- name of objecttypeName
- name of object typequalifier
- if true, test whether object is a valid qualifier; if
false, test whether object itself should be included
- Returns:
- true if the inclusion test passes
getTypeFactory
public FarragoTypeFactory getTypeFactory()
- Specified by:
getTypeFactory
in interface FarragoMedMetadataSink
- Returns:
- a type factory for use in creating type instances for calls such
as
FarragoMedMetadataSink.writeColumnDescriptor(java.lang.String, java.lang.String, int, org.eigenbase.reltype.RelDataType, java.lang.String, java.lang.String, java.util.Properties)
getPattern
Pattern getPattern(String likePattern)