org.edg.data.util.attribute
Class MappingHandler
java.lang.Object
|
+--org.edg.data.util.attribute.MappingHandler
- public final class MappingHandler
- extends java.lang.Object
A Helper class which manages searching for mappings which match
given GUID/ALIAS/PFN patterns
- Version:
- $ Id:$
- Author:
- James Casey
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MappingHandler
public MappingHandler(java.lang.String type,
ConnectionFactory connFactory,
AttributeHandler guidAttr,
AttributeHandler attr,
MethodLogger log)
throws java.sql.SQLException,
InvalidCatalogException
- Create a new MappingHandler.
- Parameters:
type
- the type of the table we consider - i.e. it's name.connFactory
- The connection factory from which to get connections
to connect to the tablelog
- a method level logger
getMappings
public java.lang.String[] getMappings(java.lang.String SQLQuery,
int resultLength,
int resultStart)
throws NoSuchAttributeDefinitionException,
InvalidQueryException,
ConnectionException
NoSuchAttributeDefinitionException
InvalidQueryException
ConnectionException
getMappingsWithAttributes
public Mapping[] getMappingsWithAttributes(java.lang.String SQLQuery,
int resultLength,
int resultStart)
throws NoSuchAttributeDefinitionException,
InvalidQueryException,
ConnectionException
NoSuchAttributeDefinitionException
InvalidQueryException
ConnectionException