org.eobjects.metamodel.convert
Class ConvertedRowInsertionInterceptor

java.lang.Object
  extended by org.eobjects.metamodel.convert.ConvertedRowInsertionInterceptor
All Implemented Interfaces:
Interceptor<RowInsertionBuilder>, RowInsertionInterceptor

public class ConvertedRowInsertionInterceptor
extends Object
implements RowInsertionInterceptor

A RowInsertionInterceptor used for intercepting values in RowInsertionBuilders that need to be converted, according to a set of TypeConverters.

See Also:
TypeConverter, Converters

Constructor Summary
ConvertedRowInsertionInterceptor()
           
ConvertedRowInsertionInterceptor(Map<Column,TypeConverter<?,?>> converters)
           
 
Method Summary
 void addConverter(Column column, TypeConverter<?,?> converter)
           
 RowInsertionBuilder intercept(RowInsertionBuilder insert)
          Interception method invoked by MetaModel when the intercepted object is being activated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvertedRowInsertionInterceptor

public ConvertedRowInsertionInterceptor()

ConvertedRowInsertionInterceptor

public ConvertedRowInsertionInterceptor(Map<Column,TypeConverter<?,?>> converters)
Method Detail

addConverter

public void addConverter(Column column,
                         TypeConverter<?,?> converter)

intercept

public RowInsertionBuilder intercept(RowInsertionBuilder insert)
Description copied from interface: Interceptor
Interception method invoked by MetaModel when the intercepted object is being activated.

Specified by:
intercept in interface Interceptor<RowInsertionBuilder>
Parameters:
insert - the intercepted object
Returns:
the intercepted object, or a modification of this if the object is to be replaced by the interceptor. The returned object must not be null.


Copyright © 2007-2013. All Rights Reserved.