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

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

public abstract class AbstractDbType
extends Object
implements DbType

Base class for DbType


Field Summary
protected  int id
           
protected  String name
           
 
Constructor Summary
AbstractDbType(int id, String name)
           
 
Method Summary
 int getId()
           
 String getName()
           
 void registerOutParameter(CallableStatement statement, int index)
          Registers an output parameter
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mule.module.db.internal.domain.type.DbType
getParameterValue, setParameterValue
 

Field Detail

id

protected final int id

name

protected final String name
Constructor Detail

AbstractDbType

public AbstractDbType(int id,
                      String name)
Method Detail

getId

public int getId()
Specified by:
getId in interface DbType
Returns:
data type ID

getName

public String getName()
Specified by:
getName in interface DbType
Returns:
data type name

registerOutParameter

public void registerOutParameter(CallableStatement statement,
                                 int index)
                          throws SQLException
Description copied from interface: DbType
Registers an output parameter

Specified by:
registerOutParameter in interface DbType
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 the parameterIndex is not valid; if a database access error occurs or this method is called on a closed CallableStatement

toString

public String toString()
Overrides:
toString in class Object


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