org.mule.module.db.internal.domain.type
Class AbstractDbType
java.lang.Object
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
id
protected final int id
name
protected final String name
AbstractDbType
public AbstractDbType(int id,
String name)
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 parameterindex - 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.