Class SqlUtil

java.lang.Object
adalid.util.sql.SqlUtil
Direct Known Subclasses:
SqlMerger, SqlReader

public class SqlUtil extends Object
Author:
Jorge Campins
  • Field Details

    • _dbms

      protected String _dbms
    • _host

      protected String _host
    • _port

      protected String _port
    • _user

      protected String _user
    • _password

      protected String _password
    • _database

      protected String _database
    • _schema

      protected String _schema
    • _urlPattern

      protected String _urlPattern
    • _driver

      protected String _driver
    • _programmer

      protected String _programmer
    • _url

      protected String _url
    • _connection

      protected Connection _connection
    • _initialised

      protected boolean _initialised
    • _argIndex

      protected int _argIndex
    • _args

      protected String[] _args
  • Constructor Details

    • SqlUtil

      public SqlUtil()
    • SqlUtil

      public SqlUtil(String[] args)
  • Method Details

    • arg

      protected String arg(int i, String[] args)
    • logValidArgument

      protected void logValidArgument(String param, String arg)
    • logInvalidArgument

      protected void logInvalidArgument(String param, String arg)
    • logSyntaxError

      protected void logSyntaxError()
    • getSyntax

      protected String getSyntax()
    • getSqlUtilSyntax

      protected final String getSqlUtilSyntax()
    • getNewInstanceForName

      protected Object getNewInstanceForName(String className)
    • getClassForName

      protected Class<?> getClassForName(String className)
    • connect

      protected boolean connect()
    • close

      protected boolean close()
    • isRemoteConnection

      protected boolean isRemoteConnection()
    • isSlowConnection

      protected boolean isSlowConnection()
    • executeStatement

      protected boolean executeStatement(String statement) throws SQLException
      Throws:
      SQLException
    • executeStatement

      protected boolean executeStatement(String statement, boolean rethrow) throws SQLException
      Throws:
      SQLException
    • prepareStatement

      protected PreparedStatement prepareStatement(String statement)
    • close

      protected void close(SqlUtil.PreparedStatementWrapper wrapper)
    • close

      protected void close(PreparedStatement statement)
    • getDbms

      public String getDbms()
    • getHost

      public String getHost()
    • getPort

      public String getPort()
    • getUser

      public String getUser()
    • getPassword

      public String getPassword()
    • getDatabase

      public String getDatabase()
    • getSchema

      public String getSchema()
    • getDriver

      public String getDriver()
    • getUrl

      public String getUrl()
    • isInitialised

      public boolean isInitialised()
    • getMetajavaPath

      public String getMetajavaPath()
    • getCommonsPackage

      public String getCommonsPackage()
    • getDefaultPackage

      public String getDefaultPackage()
    • getSourceMetajavaPackage

      public String getSourceMetajavaPackage()
    • getTargetMetajavaPackage

      public String getTargetMetajavaPackage()