public abstract class AbstractSqlGenerator extends Object
Constructor and Description |
---|
AbstractSqlGenerator() |
Modifier and Type | Method and Description |
---|---|
protected abstract Transformer |
createTransformer(String sourcePath)
Returns the transformer for the given stylesheet path.
|
String |
generateSql(Document databaseXml,
DatabaseType dbType)
Generates the sql according to the given database definition for the specified database type.
|
String |
generateSql(Document databaseXml,
String dbType) |
protected abstract String |
getMySqlStylePath()
Returns the stylesheet file path for MySql.
|
protected abstract String |
getOracleStylePath()
Returns the stylesheet file path for Oracle.
|
protected abstract String |
getSqlServerStylePath()
Returns the stylesheet file path for SQL Server.
|
public AbstractSqlGenerator() throws PortalException
PortalException
protected abstract Transformer createTransformer(String sourcePath) throws PortalException
sourcePath
- the stylesheet pathPortalException
protected abstract String getMySqlStylePath()
protected abstract String getOracleStylePath()
protected abstract String getSqlServerStylePath()
public String generateSql(Document databaseXml, DatabaseType dbType) throws PortalException
databaseXml
- the database definition.dbType
- the database type.PortalException
public String generateSql(Document databaseXml, String dbType) throws PortalException
PortalException
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.