Java Code Examples for java.sql.PreparedStatement.getClass()

The following are Jave code examples for showing how to use getClass() of the java.sql.PreparedStatement class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: lams   File:   Source Code and License Vote up 4 votes
private CallableStatement toCallableStatement(PreparedStatement statement) {
	if ( ! CallableStatement.class.isInstance( statement ) ) {
		throw new HibernateException( "BasicParamExpectation operates exclusively on CallableStatements : " + statement.getClass() );
	return ( CallableStatement ) statement;