org.equanda.ymport
Interface TableHandler

All Known Implementing Classes:
TableHandlerBase

public interface TableHandler

Table handler. Builds a proxy object from the collection of fields

Author:
NetRom team, Joachim Van der Auwera

Method Summary
 EquandaProxy getEmptyObject()
          Create an empty proxy object for this kind of table
 Object ymport(Object proxyObject)
          There are two possible modes of action depending on the kind of table handler.
 

Method Detail

ymport

Object ymport(Object proxyObject)
              throws Exception
There are two possible modes of action depending on the kind of table handler.

Normal table handlers try to update the record if a match exists and create the record if there is no match. These are passed a proxy object.

Selectors are passed a Collection of parameters (or a Collection with Collections with parameters). They search for the records using these parameters and return either a single proxy object or a collection of proxy objects.

Parameters:
proxyObject - proxy to import
Returns:
proxy or list of proxies
Throws:
Exception - on problems

getEmptyObject

EquandaProxy getEmptyObject()
Create an empty proxy object for this kind of table

Returns:
empty proxy object


Copyright © 2007-2009. All Rights Reserved.