it.imolinfo.jbi4cics.messageformat
Interface MappingDescriptor

All Known Implementing Classes:
CommareaBeanMappingDescriptor, JdbcBeanMappingDescriptor, JdbcStatementDescriptor, NoOpMappingDescriptor, ResultSetMappingDescriptor

public interface MappingDescriptor

Questa e' una tag interface per tutti i mapping descriptor.

Author:
raffaele

Method Summary
 void addFieldMapping(java.lang.String propertyName, java.lang.Integer fieldIndex, FieldDescriptor fieldDescriptor)
          Add a mapping definition to the mapping descriptor.
 void addFieldMapping(java.lang.String propertyName, java.lang.String fieldName, FieldDescriptor fieldDescriptor)
          Add a mapping definition to the mapping descriptor.
 java.lang.Class getBeanClass()
          Get the java class this mapping descriptor is expected to operate on Class.
 java.util.Map<java.lang.String,FieldDescriptor> getFieldMap()
           
 void setBeanClass(java.lang.Class beanClass)
          Set the java class this mapping descriptor is expected to operate on beanClass.
 void setCodePage(java.lang.String codePage)
           
 

Method Detail

addFieldMapping

void addFieldMapping(java.lang.String propertyName,
                     java.lang.String fieldName,
                     FieldDescriptor fieldDescriptor)
                     throws FormatException
Add a mapping definition to the mapping descriptor.

Parameters:
propertyName - The name of the property of the resulting bean or XML
fieldName - The name of the original field
fieldDescriptor - The data description of original field
Throws:
FormatException - The format exception

addFieldMapping

void addFieldMapping(java.lang.String propertyName,
                     java.lang.Integer fieldIndex,
                     FieldDescriptor fieldDescriptor)
                     throws FormatException
Add a mapping definition to the mapping descriptor.

Parameters:
propertyName - name of the property of the resulting bean or XML
fieldIndex - index of original field, useful when original name is not available and order id relevant
fieldDescriptor - data description of original field
Throws:
FormatException - The format exception

getFieldMap

java.util.Map<java.lang.String,FieldDescriptor> getFieldMap()
                                                            throws FormatException
Returns:
a map mado of
Throws:
FormatException - The format exception

setBeanClass

void setBeanClass(java.lang.Class beanClass)
Set the java class this mapping descriptor is expected to operate on beanClass.

Parameters:
beanClass - The Bean Class

getBeanClass

java.lang.Class getBeanClass()
Get the java class this mapping descriptor is expected to operate on Class.

Returns:
Class The bean class

setCodePage

void setCodePage(java.lang.String codePage)
Parameters:
codePage - The code page


Copyright © 2005-2008 Imola Informatica. All Rights Reserved.