org.mule.module.db.internal.domain.type
Class ResolvedDbType

java.lang.Object
  extended by org.mule.module.db.internal.domain.type.AbstractDbType
      extended by 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


Field Summary
 
Fields inherited from class org.mule.module.db.internal.domain.type.AbstractDbType
id, name
 
Constructor Summary
ResolvedDbType(int id, String name)
           
 
Method Summary
 Object getParameterValue(CallableStatement statement, int index)
          Gets the value of an output parameter
 void setParameterValue(PreparedStatement statement, int index, Object value)
          Sets the value of an input parameter
 
Methods inherited from class org.mule.module.db.internal.domain.type.AbstractDbType
getId, getName, registerOutParameter, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResolvedDbType

public ResolvedDbType(int id,
                      String name)
Method Detail

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 parameter
index - 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 parameter
index - 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.