it.imolinfo.jbi4cics.messageformat.jdbc
Class JdbcStatementDescriptor
java.lang.Object
it.imolinfo.jbi4cics.messageformat.jdbc.JdbcStatementDescriptor
- All Implemented Interfaces:
- MappingDescriptor
public class JdbcStatementDescriptor
- extends java.lang.Object
- implements MappingDescriptor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PREPARED_STATEMENT
public static final int PREPARED_STATEMENT
- See Also:
- Constant Field Values
CALLABLE_STATEMENT
public static final int CALLABLE_STATEMENT
- See Also:
- Constant Field Values
UPDATE_SQL
public static final int UPDATE_SQL
- See Also:
- Constant Field Values
SELECT_SQL
public static final int SELECT_SQL
- See Also:
- Constant Field Values
JdbcStatementDescriptor
public JdbcStatementDescriptor()
getParameter
public JdbcParameterDescriptor getParameter(int paramterIndex)
getSql
public java.lang.String getSql()
- Returns:
- Returns the sql.
setSql
public void setSql(java.lang.String sql)
- Parameters:
sql
- The sql to set.
getSqlType
public int getSqlType()
- Returns:
- Returns the sqlType.
setSqlType
public void setSqlType(int sqlType)
- Parameters:
sqlType
- The sqlType to set.
getStatementType
public int getStatementType()
- Returns:
- Returns the statementType.
setStatementType
public void setStatementType(int statementType)
- Parameters:
statementType
- The statementType to set.
addFieldMapping
public void addFieldMapping(java.lang.String propertyName,
java.lang.String fieldName,
FieldDescriptor fieldDescriptor)
throws FormatException
- Description copied from interface:
MappingDescriptor
- Add a mapping definition to the mapping descriptor.
- Specified by:
addFieldMapping
in interface MappingDescriptor
- Parameters:
propertyName
- The name of the property of the resulting bean or XMLfieldName
- The name of the original fieldfieldDescriptor
- The data description of original field
- Throws:
FormatException
- The format exception
addFieldMapping
public void addFieldMapping(java.lang.String propertyName,
java.lang.Integer fieldIndex,
FieldDescriptor fieldDescriptor)
throws FormatException
- Description copied from interface:
MappingDescriptor
- Add a mapping definition to the mapping descriptor.
- Specified by:
addFieldMapping
in interface MappingDescriptor
- Parameters:
propertyName
- name of the property of the resulting bean or XMLfieldIndex
- index of original field, useful when original name is not available and order id relevantfieldDescriptor
- data description of original field
- Throws:
FormatException
- The format exception
getPropertyNameParameterIndexMap
public java.util.Map<java.lang.String,java.lang.Integer> getPropertyNameParameterIndexMap()
- Returns:
- Returns the propertyNameParameterIndexMap.
getFieldMap
public java.util.Map<java.lang.String,FieldDescriptor> getFieldMap()
throws FormatException
- Specified by:
getFieldMap
in interface MappingDescriptor
- Returns:
- a map mado of
- Throws:
FormatException
- The format exception
getBeanClass
public java.lang.Class getBeanClass()
- Description copied from interface:
MappingDescriptor
- Get the java class this mapping descriptor is expected to operate on Class.
- Specified by:
getBeanClass
in interface MappingDescriptor
- Returns:
- Returns the beanClass.
setBeanClass
public void setBeanClass(java.lang.Class beanClass)
- Description copied from interface:
MappingDescriptor
- Set the java class this mapping descriptor is expected to operate on beanClass.
- Specified by:
setBeanClass
in interface MappingDescriptor
- Parameters:
beanClass
- The beanClass to set.
setCodePage
public void setCodePage(java.lang.String codePage)
- Specified by:
setCodePage
in interface MappingDescriptor
- Parameters:
codePage
- The code page
Copyright © 2005-2008 Imola Informatica. All Rights Reserved.