Package net.simplace.core.service
Klasse DatabaseHelper
java.lang.Object
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.
- Autor:
- Andreas Enders
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic voidcopyData(boolean doDropBeforeCopy, Connection aSourceConnection, String aSourceTableName, Connection aTargetConnection, String aTargetTableName) static LinkedHashMap<String, LinkedList<Object>> readResult(Connection aConnection, String aStatement)
-
Konstruktordetails
-
DatabaseHelper
public DatabaseHelper()
-
-
Methodendetails
-
copyData
public static void copyData(boolean doDropBeforeCopy, Connection aSourceConnection, String aSourceTableName, Connection aTargetConnection, String aTargetTableName) throws SQLException - Parameter:
doDropBeforeCopy-aSourceConnection-aSourceTableName-aTargetConnection-aTargetTableName-- Löst aus:
SQLException
-
readResult
public static LinkedHashMap<String,LinkedList<Object>> readResult(Connection aConnection, String aStatement) - Parameter:
aConnection-aStatement-- Gibt zurück:
- the complete result of the statement as Map of columns
-