com.ibm.tivoli.maximo.dbmanage.transform

Class SQLSpecificTransformFactory

  • java.lang.Object
    • com.ibm.tivoli.maximo.dbmanage.transform.SQLSpecificTransformFactory


  • public class SQLSpecificTransformFactory
    extends java.lang.Object
    Utility class for SQLSpecificTransforms.
    See Also:
    SQLSpecificTransform
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String fixSysDate(java.lang.String sql, java.lang.String sysdateReplacement)
      Replace any local sysdate values with the correct value for this platform.
      static SQLSpecificTransform getSQLSpecificTransform(java.sql.Connection con)
      Return a transform based on the connection's driver.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SQLSpecificTransformFactory

        public SQLSpecificTransformFactory()
    • Method Detail

      • getSQLSpecificTransform

        public static SQLSpecificTransform getSQLSpecificTransform(java.sql.Connection con)
                                                            throws java.sql.SQLException
        Return a transform based on the connection's driver.
        Parameters:
        con - The connection
        Returns:
        The best guess for a transform. The EmptyTransform will be returned if the server is not recognized.
        Throws:
        java.lang.Exception
        java.sql.SQLException
        See Also:
        Returned for Oracle or unknown server types.
      • fixSysDate

        public static java.lang.String fixSysDate(java.lang.String sql,
                                                  java.lang.String sysdateReplacement)
        Replace any local sysdate values with the correct value for this platform.
        Parameters:
        sql - A SQL Statement