org.mule.module.db.internal.domain.param
Class AbstractQueryParam

java.lang.Object
  extended by org.mule.module.db.internal.domain.param.AbstractQueryParam
All Implemented Interfaces:
QueryParam
Direct Known Subclasses:
DefaultInOutQueryParam, DefaultInputQueryParam, DefaultOutputQueryParam

public class AbstractQueryParam
extends Object
implements QueryParam

Defines a base class for implementing different kind of { @link QueryParam} classes.


Constructor Summary
AbstractQueryParam(int index, DbType type, String name)
           
 
Method Summary
 int getIndex()
          Returns the parameter's index in the containing SQL query.
 String getName()
          Returns the name parameter name.
 DbType getType()
          Returns the parameter's type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractQueryParam

public AbstractQueryParam(int index,
                          DbType type,
                          String name)
Method Detail

getIndex

public int getIndex()
Description copied from interface: QueryParam
Returns the parameter's index in the containing SQL query.

Specified by:
getIndex in interface QueryParam
Returns:
the index. Must be greater than zero.

getType

public DbType getType()
Description copied from interface: QueryParam
Returns the parameter's type.

Specified by:
getType in interface QueryParam
Returns:
an integer constant that represent the type in the used JDBC provider.

getName

public String getName()
Description copied from interface: QueryParam
Returns the name parameter name.

Specified by:
getName in interface QueryParam


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