All Implemented Interfaces:
Platform

public class MSSqlPlatform extends PlatformImplBase
The platform implementation for the Microsoft SQL Server database.
Version:
$Revision: 231306 $
  • Field Details

    • DATABASENAME

      public static final String DATABASENAME
      Database name of this platform.
      See Also:
    • JDBC_DRIVER

      public static final String JDBC_DRIVER
      The standard SQLServer jdbc driver.
      See Also:
    • JDBC_DRIVER_NEW

      public static final String JDBC_DRIVER_NEW
      The new SQLServer 2005 jdbc driver which can also be used for SQL Server 2000.
      See Also:
    • JDBC_SUBPROTOCOL

      public static final String JDBC_SUBPROTOCOL
      The subprotocol used by the standard SQL Server driver.
      See Also:
    • JDBC_SUBPROTOCOL_NEW

      public static final String JDBC_SUBPROTOCOL_NEW
      The subprotocol recommended for the newer SQL Server 2005 driver.
      See Also:
    • JDBC_SUBPROTOCOL_INTERNAL

      public static final String JDBC_SUBPROTOCOL_INTERNAL
      The subprotocol internally returned by the newer SQL Server 2005 driver.
      See Also:
  • Constructor Details

    • MSSqlPlatform

      public MSSqlPlatform()
      Creates a new platform instance.
  • Method Details

    • getName

      public String getName()
      Returns the name of the database that this platform is for.
      Returns:
      The name
    • beforeInsert

      protected void beforeInsert(Connection connection, Table table) throws SQLException
      Allows platforms to issue statements directly before rows are inserted into the specified table.
      Overrides:
      beforeInsert in class PlatformImplBase
      Parameters:
      connection - The connection used for the insertion
      table - The table that the rows are inserted into
      Throws:
      SQLException
    • afterInsert

      protected void afterInsert(Connection connection, Table table) throws SQLException
      Allows platforms to issue statements directly after rows have been inserted into the specified table.
      Overrides:
      afterInsert in class PlatformImplBase
      Parameters:
      connection - The connection used for the insertion
      table - The table that the rows have been inserted into
      Throws:
      SQLException
    • beforeUpdate

      protected void beforeUpdate(Connection connection, Table table) throws SQLException
      Allows platforms to issue statements directly before rows are updated in the specified table.
      Overrides:
      beforeUpdate in class PlatformImplBase
      Parameters:
      connection - The connection used for the update
      table - The table that the rows are updateed into
      Throws:
      SQLException
    • afterUpdate

      protected void afterUpdate(Connection connection, Table table) throws SQLException
      Allows platforms to issue statements directly after rows have been updated in the specified table.
      Overrides:
      afterUpdate in class PlatformImplBase
      Parameters:
      connection - The connection used for the update
      table - The table that the rows have been updateed into
      Throws:
      SQLException