Package lumis.util
Class SqlGenerator
- java.lang.Object
-
- lumis.util.AbstractSqlGenerator
-
- lumis.util.SqlGenerator
-
public class SqlGenerator extends AbstractSqlGenerator
Generates the SQL scripts from database definitions.- Since:
- 4.0.3
- Version:
- $Revision: 19606 $ $Date: 2016-12-13 10:32:19 -0200 (Tue, 13 Dec 2016) $
-
-
Constructor Summary
Constructors Constructor Description SqlGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.xml.transform.Transformer
createTransformer(java.lang.String sourcePath)
Returns the transformer for the given stylesheet path.org.w3c.dom.Document
getDatabaseDocument(java.lang.String databaseDefinitionDir)
Returns the database document for the given database definition path.protected java.lang.String
getMySqlStylePath()
Returns the stylesheet file path for MySql.protected java.lang.String
getOracleStylePath()
Returns the stylesheet file path for Oracle.protected java.lang.String
getSqlServerStylePath()
Returns the stylesheet file path for SQL Server.-
Methods inherited from class lumis.util.AbstractSqlGenerator
generateSql, generateSql
-
-
-
-
Constructor Detail
-
SqlGenerator
public SqlGenerator() throws PortalException
- Throws:
PortalException
-
-
Method Detail
-
getMySqlStylePath
protected java.lang.String getMySqlStylePath()
Description copied from class:AbstractSqlGenerator
Returns the stylesheet file path for MySql.- Specified by:
getMySqlStylePath
in classAbstractSqlGenerator
- Returns:
- the stylesheet file path for MySql.
-
getOracleStylePath
protected java.lang.String getOracleStylePath()
Description copied from class:AbstractSqlGenerator
Returns the stylesheet file path for Oracle.- Specified by:
getOracleStylePath
in classAbstractSqlGenerator
- Returns:
- the stylesheet file path for Oracle.
-
getSqlServerStylePath
protected java.lang.String getSqlServerStylePath()
Description copied from class:AbstractSqlGenerator
Returns the stylesheet file path for SQL Server.- Specified by:
getSqlServerStylePath
in classAbstractSqlGenerator
- Returns:
- the stylesheet file path for SQL Server.
-
createTransformer
protected javax.xml.transform.Transformer createTransformer(java.lang.String sourcePath) throws PortalException
Description copied from class:AbstractSqlGenerator
Returns the transformer for the given stylesheet path.- Specified by:
createTransformer
in classAbstractSqlGenerator
- Parameters:
sourcePath
- the stylesheet path- Returns:
- the transformer for the given stylesheet path.
- Throws:
PortalException
-
getDatabaseDocument
public org.w3c.dom.Document getDatabaseDocument(java.lang.String databaseDefinitionDir) throws ServiceException, org.xml.sax.SAXException, java.io.IOException
Returns the database document for the given database definition path.- Parameters:
databaseDefinitionDir
- the database definition path.- Returns:
- the database document for the given database definition path.
- Throws:
ServiceException
org.xml.sax.SAXException
java.io.IOException
- Since:
- 8.0.0
-
-