Code example for CallableStatement

Methods: execute

0
				 
				replConn = getMasterSlaveReplicationConnection();
				replConn.setReadOnly(true);
				 
				CallableStatement stmt = replConn.prepareCall("CALL testProc1()");
				stmt.execute();
				stmt.execute();
				 
				stmt = replConn.prepareCall("CALL `" + replConn.getCatalog() + "`.testProc1()");
				stmt.execute();
				 
				stmt = replConn.prepareCall("CALL `" + replConn.getCatalog() + "`.`testProc.1`()");
				stmt.execute();
				 
			} finally { 
			 
				if (replConn != null) {
					replConn.close();
				} 
			} 
		}