it.imolinfo.jbi4cics.messageformat.jdbc
Class JdbcStatementDescriptor

java.lang.Object
  extended by it.imolinfo.jbi4cics.messageformat.jdbc.JdbcStatementDescriptor
All Implemented Interfaces:
MappingDescriptor

public class JdbcStatementDescriptor
extends java.lang.Object
implements MappingDescriptor


Field Summary
static int CALLABLE_STATEMENT
           
static int PREPARED_STATEMENT
           
static int SELECT_SQL
           
static int UPDATE_SQL
           
 
Constructor Summary
JdbcStatementDescriptor()
           
 
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()
           
 JdbcParameterDescriptor getParameter(int paramterIndex)
           
 java.util.Map<java.lang.String,java.lang.Integer> getPropertyNameParameterIndexMap()
           
 java.lang.String getSql()
           
 int getSqlType()
           
 int getStatementType()
           
 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)
           
 void setSql(java.lang.String sql)
           
 void setSqlType(int sqlType)
           
 void setStatementType(int statementType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

JdbcStatementDescriptor

public JdbcStatementDescriptor()
Method Detail

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 XML
fieldName - The name of the original field
fieldDescriptor - 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 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

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.