net.simplace.core.service.DatabaseHelper

Provides some methods for performing database operations. It's not implemented as static methods to share some ressources. It's not implemendes as singleton to avoid snychronisation problems.


public final class DatabaseHelper {
// Public Constructors
public DatabaseHelper();


// Class Methods
public static void copyData(boolean doDropBeforeCopy, Connection
aSourceConnection, String aSourceTableName, Connection aTargetConnection,
String aTargetTableName) throws SQLException;

public static LinkedHashMap readResult(Connection aConnection, String
aStatement);


returns the complete result of the statement as Map of columns


}