public class OracleXmlType extends AbstractStructuredDbType
ORACLE_XMLTYPE_CLASS class| Modifier and Type | Field and Description |
|---|---|
static String |
ORACLE_XMLTYPE_CLASS |
id, name| Constructor and Description |
|---|
OracleXmlType() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
createXmlType(Connection connection,
InputStream xml)
Creates an
ORACLE_XMLTYPE_CLASS object from the received XML InputStream |
static Object |
createXmlType(Connection connection,
String xml)
Creates an
ORACLE_XMLTYPE_CLASS object from the received XML string |
Object |
getParameterValue(CallableStatement statement,
int index)
Gets the value of an output parameter
|
static Class<?> |
getXmlTypeClass()
Looks for the
ORACLE_XMLTYPE_CLASS class in the classpath and returns a reference to it |
void |
setParameterValue(PreparedStatement statement,
int index,
Object value)
Sets the value of an input parameter
|
registerOutParameterequals, getId, getName, toStringpublic static final String ORACLE_XMLTYPE_CLASS
public Object getParameterValue(CallableStatement statement, int index) throws SQLException
DbTypegetParameterValue in interface DbTypegetParameterValue in class ResolvedDbTypestatement - statement that contains the parameterindex - index of the parameter in the statement (first parameter is 1, the second is 2, etc)SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement;
if a database access error occurs; this method is called on a closed statementpublic void setParameterValue(PreparedStatement statement, int index, Object value) throws SQLException
DbTypesetParameterValue in interface DbTypesetParameterValue in class ResolvedDbTypestatement - statement that contains the parameterindex - index of the parameter in the statement (first parameter is 1, the second is 2, etc)value - value to assignSQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement;
if a database access error occurs; this method is called on a closed PreparedStatement or the type of
the given object is ambiguouspublic static Object createXmlType(Connection connection, String xml) throws Exception
ORACLE_XMLTYPE_CLASS object from the received XML stringconnection - An active database connection, required by the ORACLE_XMLTYPE_CLASS constructorxml - A String object containing the XML contentORACLE_XMLTYPE_CLASS with the XML passedException - if there is a problem while creating the ORACLE_XMLTYPE_CLASS object
(ORACLE_XMLTYPE_CLASS class is not found in the classpath, connection is closed, etc)public static Object createXmlType(Connection connection, InputStream xml) throws Exception
ORACLE_XMLTYPE_CLASS object from the received XML InputStreamconnection - An active database connection, required by the ORACLE_XMLTYPE_CLASS constructorxml - A Stream object containing the XML contentORACLE_XMLTYPE_CLASS with the XML passedException - if there is a problem while creating the ORACLE_XMLTYPE_CLASS object
(ORACLE_XMLTYPE_CLASS class is not found in the classpath, connection is closed, etc)public static Class<?> getXmlTypeClass() throws ClassNotFoundException
ORACLE_XMLTYPE_CLASS class in the classpath and returns a reference to itORACLE_XMLTYPE_CLASS class objectClassNotFoundException - if there required class in not in the classpathCopyright © 2003–2023 MuleSoft, Inc.. All rights reserved.