/*
* BaseLink - Generic object relational mapping
* Copyright (C) 2024 Ulrich Hilger, http://uhilger.de
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see http://www.gnu.org/licenses/
*/
package de.uhilger.baselink;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* Methoden zum Ausfuehren von SQL-Skripten
*
* @author Copyright (c) Ulrich Hilger, http://uhilger.de
* @author Published under the terms and conditions of
* the GNU General Public License
* @version 1, January 22, 2024
*/
public class Script extends DBActor {
private static final Logger logger = Logger.getLogger(Script.class.getName());
public Script(PersistenceManager pm) {
this.pm = pm;
}
/**
* Execute an SQL statement and return keys generated in the database
* @param sql the statement to execute
* @return a list of generated keys
*/
public List