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 Transformer
createTransformer(String sourcePath)
Returns the transformer for the given stylesheet path.Document
getDatabaseDocument(String databaseDefinitionDir)
Returns the database document for the given database definition path.protected String
getMySqlStylePath()
Returns the stylesheet file path for MySql.protected String
getOracleStylePath()
Returns the stylesheet file path for Oracle.protected 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 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 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 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 Transformer createTransformer(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 Document getDatabaseDocument(String databaseDefinitionDir) throws ServiceException, SAXException, 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
SAXException
IOException
- Since:
- 8.0.0
-
-