org.ow2.petals.bc.sql.service
Class SQLParameter
java.lang.Object
org.ow2.petals.bc.sql.service.SQLParameter
public class SQLParameter
- extends java.lang.Object
- Author:
- rnaudin
|
Constructor Summary |
SQLParameter(java.lang.String externalizedSQLParameter,
java.lang.String value)
|
SQLParameter(java.lang.String type,
java.lang.String scope,
short rank)
|
|
Method Summary |
short |
getRank()
|
java.lang.String |
getScope()
|
static void |
getSQLParameter(java.sql.CallableStatement statement,
SQLParameter sqlParameter,
short rank)
Get the SQL parameter from the CallableStatement according to its
type. |
int |
getType()
|
java.lang.String |
getValue()
|
static void |
setSQLParameter(java.sql.CallableStatement statement,
SQLParameter sqlParameter,
short rank)
Set the SQL parameter to the CallableStatement according to its
type. |
void |
setValue(java.lang.String value)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SQL_TYPES
public static final java.util.Map<java.lang.String,java.lang.Integer> SQL_TYPES
DEFAULT_SCOPE
public static final java.lang.String DEFAULT_SCOPE
- See Also:
- Constant Field Values
IN_SCOPE
public static final java.lang.String IN_SCOPE
- See Also:
- Constant Field Values
OUT_SCOPE
public static final java.lang.String OUT_SCOPE
- See Also:
- Constant Field Values
INOUT_SCOPE
public static final java.lang.String INOUT_SCOPE
- See Also:
- Constant Field Values
SQLParameter
public SQLParameter(java.lang.String type,
java.lang.String scope,
short rank)
throws javax.jbi.messaging.MessagingException
- Throws:
javax.jbi.messaging.MessagingException
SQLParameter
public SQLParameter(java.lang.String externalizedSQLParameter,
java.lang.String value)
throws javax.jbi.messaging.MessagingException
- Throws:
javax.jbi.messaging.MessagingException
getType
public int getType()
getScope
public java.lang.String getScope()
getRank
public short getRank()
getValue
public java.lang.String getValue()
setValue
public void setValue(java.lang.String value)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
setSQLParameter
public static final void setSQLParameter(java.sql.CallableStatement statement,
SQLParameter sqlParameter,
short rank)
throws java.sql.SQLException,
java.text.ParseException,
javax.jbi.messaging.MessagingException,
java.io.IOException
- Set the SQL parameter to the
CallableStatement according to its
type.
TODO: handle the stream and exotic types
- Parameters:
statement - sqlParameter - rank -
- Throws:
java.sql.SQLException
java.text.ParseException
javax.jbi.messaging.MessagingException
java.io.IOException
getSQLParameter
public static final void getSQLParameter(java.sql.CallableStatement statement,
SQLParameter sqlParameter,
short rank)
throws java.sql.SQLException,
java.io.IOException,
javax.jbi.messaging.MessagingException
- Get the SQL parameter from the
CallableStatement according to its
type.
TODO: handle the stream and exotic types
- Parameters:
statement - sqlParameter - rank -
- Throws:
java.sql.SQLException
java.io.IOException
javax.jbi.messaging.MessagingException
Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.