org.equanda.ymport
Interface DatabaseMap

All Known Implementing Classes:
DatabaseMapAdapter

public interface DatabaseMap

Mapping object which allows you to get the TableHandlers and FieldMaps for a database

Author:
Joachim Van der Auwera

Method Summary
 FieldMap getFieldMap(String table)
          Get the FieldMap for a specific table
 TableHandler getSelector(String table)
          Get the handler for a specific selector which needs parameters.
 TableHandler getTableHandler(String table)
          Get the table handler for a specific table/selector combination.
 

Method Detail

getTableHandler

TableHandler getTableHandler(String table)
                             throws ImportHandlerException
Get the table handler for a specific table/selector combination. These selectors get their parameters from table fields. When a record is not found, a new record is created, otherwise, field values are updated.

Parameters:
table - combination table/selector name
Returns:
TableHandler for table/selector combination
Throws:
ImportHandlerException - oops

getFieldMap

FieldMap getFieldMap(String table)
                     throws ImportHandlerException
Get the FieldMap for a specific table

Parameters:
table - table name, may contain a selector in it
Returns:
a FieldMap object
Throws:
ImportHandlerException - oops

getSelector

TableHandler getSelector(String table)
                         throws ImportHandlerException
Get the handler for a specific selector which needs parameters. This only selects records.

Parameters:
table - table+selector definitions
Returns:
TableHandler for selector
Throws:
ImportHandlerException - oops


Copyright © 2007-2009. All Rights Reserved.