lumis.util
Class SqlGenerator

Package class diagram package SqlGenerator
java.lang.Object
  extended by lumis.util.SqlGenerator

public class SqlGenerator
extends Object

Generates the SQL scripts from database definitions.

Since:
4.0.3

Constructor Summary
SqlGenerator()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlGenerator

public SqlGenerator()
             throws PortalException
Throws:
PortalException
Method Detail

generateSql

public String generateSql(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:
4.0.5

generateSql

public String generateSql(Document databaseXml,
                          String dbType)
                   throws PortalException
Throws:
PortalException


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.