<commit_before>/**
 *  Copyright (c) 2012, 2014 Sme.UP and others.
 *  All rights reserved. This program and the accompanying materials
 *  are made available under the terms of the Eclipse Public License v1.0
 *  which accompanies this distribution, and is available at
 *  http://www.eclipse.org/legal/epl-v10.html
 *
 * 
 * Contributors: 
 *   <NAME> - Initial API and implementation 
 *   <NAME> - Implementation
 */
package org.asup.dk.compiler.rpj.dbl;

import java.sql.SQLException;

import org.asup.db.syntax.QBindingParseResult;
import org.asup.db.syntax.QBindingParser;
import org.asup.db.syntax.QBindingStatement;
import org.asup.db.syntax.QQueryParser;
import org.asup.db.syntax.dbl.QCloseStatement;
import org.asup.db.syntax.dbl.QDeclareCursorStatement;
import org.asup.db.syntax.dbl.QDescribeStatement;
import org.asup.db.syntax.dbl.QExecuteStatement;
import org.asup.db.syntax.dbl.QFetchStatement;
import org.asup.db.syntax.dbl.QIntoClause;
import org.asup.db.syntax.dbl.QMultipleRowFetchClause;
import org.asup.db.syntax.dbl.QOpenStatement;
import org.asup.db.syntax.dbl.QPrepareStatement;
import org.asup.db.syntax.dbl.QSetTransactionStatement;
import org.asup.db.syntax.util.DBSyntaxHelper;
import org.asup.dk.compiler.rpj.RPJStatementRewriter;
import org.asup.il.esql.CursorType;
import org.asup.il.esql.QCursorTerm;
import org.asup.il.esql.QIntegratedLanguageEmbeddedSQLFactory;
import org.asup.il.flow.QCallableUnit;
import org.asup.il.flow.QMethodExec;
import org.asup.il.flow.QSQLExec;
import org.asup.il.flow.QStatement;
import org.asup.il.flow.impl.IntegratedLanguageFlowFactoryImpl;
import org.eclipse.datatools.sqltools.parsers.sql.query.SQLQueryParseResult;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.util.EcoreUtil;

public class DBLStatementRewriter extends RPJStatementRewriter {

	private QCallableUnit callableUnit;
	private QBindingParser bindingParser;
	private QQueryParser queryParser;

	/*************** Public static methods definitions */
	public static String FETCH_METHOD = "SINGLE_FETCH_METHOD";<commit_msg>Aggiornamento DBLRewriter<commit_after>/**
 *  Copyright (c) 2012, 2014 Sme.UP and others.
 *  All rights reserved. This program and the accompanying materials
 *  are made available under the terms of the Eclipse Public License v1.0
 *  which accompanies this distribution, and is available at
 *  http://www.eclipse.org/legal/epl-v10.html
 *
 * 
 * Contributors: 
 *   <NAME> - Initial API and implementation 
 *   <NAME> - Implementation
 */
package org.asup.dk.compiler.rpj.dbl;

import java.sql.SQLException;

import org.asup.db.syntax.QBindingParseResult;
import org.asup.db.syntax.QBindingParser;
import org.asup.db.syntax.QBindingStatement;
import org.asup.db.syntax.QQueryParser;
import org.asup.db.syntax.dbl.QCloseStatement;
import org.asup.db.syntax.dbl.QDeclareCursorStatement;
import org.asup.db.syntax.dbl.QDescribeStatement;
import org.asup.db.syntax.dbl.QExecuteStatement;
import org.asup.db.syntax.dbl.QFetchStatement;
import org.asup.db.syntax.dbl.QIntoClause;
import org.asup.db.syntax.dbl.QMultipleRowFetchClause;
import org.asup.db.syntax.dbl.QOpenStatement;
import org.asup.db.syntax.dbl.QPrepareStatement;
import org.asup.db.syntax.dbl.QSetTransactionStatement;
import org.asup.db.syntax.util.DBSyntaxHelper;
import org.asup.dk.compiler.rpj.RPJStatementRewriter;
import org.asup.il.esql.CursorType;
import org.asup.il.esql.QCursorTerm;
import org.asup.il.esql.QIntegratedLanguageEmbeddedSQLFactory;
import org.asup.il.flow.QCallableUnit;
import org.asup.il.flow.QMethodExec;
import org.asup.il.flow.QSQLExec;
import org.asup.il.flow.QStatement;
import org.asup.il.flow.impl.IntegratedLanguageFlowFactoryImpl;
import org.eclipse.datatools.sqltools.parsers.sql.query.SQLQueryParseResult;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.util.EcoreUtil;
 
public class DBLStatementRewriter extends RPJStatementRewriter {

	private QCallableUnit callableUnit;
	private QBindingParser bindingParser;
	private QQueryParser queryParser;

	/*************** Public static methods definitions */
	public static String FETCH_METHOD = "SINGLE_FETCH_METHOD";
{'fraction_non_alphanumeric': 0.11006969478490747, 'fraction_numerical': 0.005767844268204758, 'mean_word_length': 5.354198473282443, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6003637', 'n_tokens_mistral': 1476, 'n_tokens_neox': 1411, 'n_words': 254}