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

java.lang.Object
  extended by org.mule.module.db.internal.domain.type.AbstractDbType
      extended by org.mule.module.db.internal.domain.type.UnknownDbType
All Implemented Interfaces:
DbType

public class UnknownDbType
extends AbstractDbType

Represents a data type for a template, which real type is unknown until it is instantiated


Field Summary
static String UNKNOWN_TYPE_NAME
           
 
Fields inherited from class org.mule.module.db.internal.domain.type.AbstractDbType
id, name
 
Method Summary
static DbType getInstance()
           
 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
 

Field Detail

UNKNOWN_TYPE_NAME

public static final String UNKNOWN_TYPE_NAME
See Also:
Constant Field Values
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

getInstance

public static DbType getInstance()


Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.