org.mule.module.db.internal.domain.type
Class ResolvedDbType
java.lang.Object
org.mule.module.db.internal.domain.type.AbstractDbType
org.mule.module.db.internal.domain.type.ResolvedDbType
- All Implemented Interfaces:
- DbType
- Direct Known Subclasses:
- StructuredDbType
public class ResolvedDbType
- extends AbstractDbType
Defines a data type that was resolved for a database instance
ResolvedDbType
public ResolvedDbType(int id,
String name)
setParameterValue
public void setParameterValue(PreparedStatement statement,
int index,
Object value)
throws SQLException
- Description copied from interface:
DbType
- Sets the value of an input parameter
- Parameters:
statement - statement that contains the parameterindex - index of the parameter in the statement (first parameter is 1, the second is 2, etc)value - value to assign
- Throws:
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 PreparedStatement or the type of
the given object is ambiguous
getParameterValue
public Object getParameterValue(CallableStatement statement,
int index)
throws SQLException
- Description copied from interface:
DbType
- Gets the value of an output parameter
- Parameters:
statement - statement that contains the parameterindex - index of the parameter in the statement (first parameter is 1, the second is 2, etc)
- Throws:
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 statement
Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.