org.edg.data.util.attribute
Class BulkOperations

java.lang.Object
  |
  +--org.edg.data.util.attribute.BulkOperations

public final class BulkOperations
extends java.lang.Object

This contains Bulk get/set operations against the database

Version:
$ Id:$
Author:
James Casey

Constructor Summary
BulkOperations(SQLHelpers helpers, MappingHandler mappingHandler, AttributeHandler entryAttr)
           
BulkOperations(SQLHelpers helpers, MappingHandler mappingHandler, AttributeHandler entryAttr, AttributeHandler guidAttr)
           
 
Method Summary
 java.util.List getMappingsWithAttributes(java.sql.Connection conn, java.util.List guids)
          get all the mappings for a list of guids.
 void setMappingsWithAttributes(java.sql.Connection conn, java.util.List mappings)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BulkOperations

public BulkOperations(SQLHelpers helpers,
                      MappingHandler mappingHandler,
                      AttributeHandler entryAttr)

BulkOperations

public BulkOperations(SQLHelpers helpers,
                      MappingHandler mappingHandler,
                      AttributeHandler entryAttr,
                      AttributeHandler guidAttr)
Method Detail

setMappingsWithAttributes

public void setMappingsWithAttributes(java.sql.Connection conn,
                                      java.util.List mappings)
                               throws java.sql.SQLException,
                                      NoSuchAttributeDefinitionException,
                                      UnappropriateAttributeTypeException,
                                      EntryExistsException
java.sql.SQLException
NoSuchAttributeDefinitionException
UnappropriateAttributeTypeException
EntryExistsException

getMappingsWithAttributes

public java.util.List getMappingsWithAttributes(java.sql.Connection conn,
                                                java.util.List guids)
                                         throws ConnectionException
get all the mappings for a list of guids.

Parameters:
conn - the db connection
guids - a List of Strings
Returns:
a List of Mapping objects
Throws:
ConnectionException - if there is a problem with the connection to the back end database