org.apache.hadoop.hbase.hbql.impl
Class HPreparedStatementImpl
java.lang.Object
org.apache.hadoop.hbase.hbql.impl.HStatementImpl
org.apache.hadoop.hbase.hbql.impl.HPreparedStatementImpl
- All Implemented Interfaces:
- HPreparedStatement, HStatement
public class HPreparedStatementImpl
- extends HStatementImpl
- implements HPreparedStatement
Methods inherited from class org.apache.hadoop.hbase.hbql.impl.HStatementImpl |
close, execute, execute, executeQuery, executeQuery, executeQuery, executeQueryAndFetch, executeQueryAndFetch, executeQueryAndFetch, executeQueryAsync, executeQueryAsync, executeQueryAsync, executeUpdate, executeUpdate, getHConnectionImpl, getIgnoreQueryExecutor, getResultSet, isClosed, setIgnoreQueryExecutor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.hadoop.hbase.hbql.client.HStatement |
close, execute, executeQuery, executeQuery, executeQueryAndFetch, executeQueryAndFetch, executeQueryAsync, executeQueryAsync, executeUpdate, getResultSet, isClosed |
HPreparedStatementImpl
public HPreparedStatementImpl(HConnectionImpl hbqlConnection,
String sql)
throws HBqlException
- Throws:
HBqlException
getSql
public String getSql()
executeQuery
public HResultSet<HRecord> executeQuery()
throws HBqlException
- Specified by:
executeQuery
in interface HPreparedStatement
- Throws:
HBqlException
executeQuery
public <T> HResultSet<T> executeQuery(Class clazz)
throws HBqlException
- Specified by:
executeQuery
in interface HPreparedStatement
- Throws:
HBqlException
executeQueryAndFetch
public List<HRecord> executeQueryAndFetch()
throws HBqlException
- Specified by:
executeQueryAndFetch
in interface HPreparedStatement
- Throws:
HBqlException
executeQueryAndFetch
public <T> List<T> executeQueryAndFetch(Class clazz)
throws HBqlException
- Specified by:
executeQueryAndFetch
in interface HPreparedStatement
- Throws:
HBqlException
executeUpdate
public ExecutionResults executeUpdate()
throws HBqlException
- Specified by:
executeUpdate
in interface HPreparedStatement
- Throws:
HBqlException
execute
public ExecutionResults execute()
throws HBqlException
- Specified by:
execute
in interface HPreparedStatement
- Throws:
HBqlException
setParameter
public int setParameter(String name,
Object val)
throws HBqlException
- Specified by:
setParameter
in interface HPreparedStatement
- Throws:
HBqlException
setParameter
public void setParameter(int i,
Object val)
throws HBqlException
- Specified by:
setParameter
in interface HPreparedStatement
- Throws:
HBqlException
resetParameters
public void resetParameters()
throws HBqlException
- Specified by:
resetParameters
in interface HPreparedStatement
- Throws:
HBqlException
checkForNullParameterValue
public static void checkForNullParameterValue(Object val)
throws HBqlException
- Throws:
HBqlException
getParameterStatement
public static StatementWithParameters getParameterStatement(HBqlStatement statement)
throws HBqlException
- Throws:
HBqlException
Copyright © 2011. All Rights Reserved.