Package lumis.util

Class AbstractSqlGenerator

  • Direct Known Subclasses:
    DeploymentSqlGenerator, SqlGenerator

    public abstract class AbstractSqlGenerator
    extends java.lang.Object
    Abstract SQL generator.
    Since:
    7.1.0
    Version:
    $Revision: 17047 $ $Date: 2015-03-03 11:22:22 -0300 (Tue, 03 Mar 2015) $
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract javax.xml.transform.Transformer createTransformer​(java.lang.String sourcePath)
      Returns the transformer for the given stylesheet path.
      java.lang.String generateSql​(org.w3c.dom.Document databaseXml, java.lang.String dbType)  
      java.lang.String generateSql​(org.w3c.dom.Document databaseXml, DatabaseType dbType)
      Generates the sql according to the given database definition for the specified database type.
      protected abstract java.lang.String getMySqlStylePath()
      Returns the stylesheet file path for MySql.
      protected abstract java.lang.String getOracleStylePath()
      Returns the stylesheet file path for Oracle.
      protected abstract java.lang.String getSqlServerStylePath()
      Returns the stylesheet file path for SQL Server.
      • Methods inherited from class java.lang.Object

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

      • createTransformer

        protected abstract javax.xml.transform.Transformer createTransformer​(java.lang.String sourcePath)
                                                                      throws PortalException
        Returns the transformer for the given stylesheet path.
        Parameters:
        sourcePath - the stylesheet path
        Returns:
        the transformer for the given stylesheet path.
        Throws:
        PortalException
        Since:
        8.0.0
      • getMySqlStylePath

        protected abstract java.lang.String getMySqlStylePath()
        Returns the stylesheet file path for MySql.
        Returns:
        the stylesheet file path for MySql.
        Since:
        7.1.0
      • getOracleStylePath

        protected abstract java.lang.String getOracleStylePath()
        Returns the stylesheet file path for Oracle.
        Returns:
        the stylesheet file path for Oracle.
        Since:
        7.1.0
      • getSqlServerStylePath

        protected abstract java.lang.String getSqlServerStylePath()
        Returns the stylesheet file path for SQL Server.
        Returns:
        the stylesheet file path for SQL Server.
        Since:
        7.1.0
      • generateSql

        public java.lang.String generateSql​(org.w3c.dom.Document databaseXml,
                                            DatabaseType dbType)
                                     throws PortalException
        Generates the sql according to the given database definition for the specified database type.
        Parameters:
        databaseXml - the database definition.
        dbType - the database type.
        Returns:
        the sql script generated.
        Throws:
        PortalException
        Since:
        7.1.0
      • generateSql

        public java.lang.String generateSql​(org.w3c.dom.Document databaseXml,
                                            java.lang.String dbType)
                                     throws PortalException
        Throws:
        PortalException