Klasse DatabaseHelper

java.lang.Object
net.simplace.core.service.DatabaseHelper

public final class DatabaseHelper extends Object
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
  • 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