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

Constructor Summary
MappingHandler(java.lang.String type, ConnectionFactory connFactory, AttributeHandler guidAttr, AttributeHandler attr, MethodLogger log)
          Create a new MappingHandler.
 
Method Summary
 java.lang.String[] getMappings(java.lang.String SQLQuery, int resultLength, int resultStart)
           
 Mapping[] getMappingsWithAttributes(java.lang.String SQLQuery, int resultLength, int resultStart)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 table
log - a method level logger
Method Detail

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