com.univocity.api.entity.custom
Class DynamicDataStore<E extends CustomReadableEntity>

java.lang.Object
  extended by com.univocity.api.entity.custom.DynamicDataStore<E>
Type Parameters:
E - defines the type of data entities managed by this data store.
All Implemented Interfaces:
CustomDataStore<E>

public abstract class DynamicDataStore<E extends CustomReadableEntity>
extends Object
implements CustomDataStore<E>

A CustomDataStore that allows dynamic creation of data entities when required. uniVocity will request creation of a new data entity when auto detecting mappings using DataStoreMapping.autodetectMappings(boolean) with its createDestinationEntities parameter set to true.

Author:
uniVocity Software Pty Ltd - dev@univocity.com
See Also:
CustomDataStore, CustomDataStoreFactory, DataIntegrationEngine, DataStoreMapping

Constructor Summary
DynamicDataStore()
           
 
Method Summary
abstract
<C extends Collection<T>,T extends DefaultEntityField>
void
createDataEntity(String entityName, C fields)
          Invoked by uniVocity if it requires a destination data entity that does not exist.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.univocity.api.entity.custom.CustomDataStore
addQuery, executeInTransaction, getConfiguration, getDataEntities, getQueries
 

Constructor Detail

DynamicDataStore

public DynamicDataStore()
Method Detail

createDataEntity

public abstract <C extends Collection<T>,T extends DefaultEntityField> void createDataEntity(String entityName,
                                                                                             C fields)
Invoked by uniVocity if it requires a destination data entity that does not exist. Implementations must creates a new data entity with the given name and fields.

Type Parameters:
C - Any collection of of fields (i.e. subclasses of DefaultEntityField)
T - The type of each field
Parameters:
entityName - the name of the new entity to be created in this data store.
fields - the fields of the entity to be created.


Copyright © 2015 uniVocity Software Pty Ltd. All rights reserved.