Package adalid.util.sql
Class SqlUtil
java.lang.Object
adalid.util.sql.SqlUtil
- Author:
- Jorge Campins
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected booleanclose()protected voidclose(SqlUtil.PreparedStatementWrapper wrapper) protected voidclose(PreparedStatement statement) protected booleanconnect()protected booleanexecuteStatement(String statement) protected booleanexecuteStatement(String statement, boolean rethrow) protected Class<?> getClassForName(String className) getDbms()getHost()protected ObjectgetNewInstanceForName(String className) getPort()protected final Stringprotected StringgetUrl()getUser()booleanprotected booleanprotected booleanprotected voidlogInvalidArgument(String param, String arg) protected voidprotected voidlogValidArgument(String param, String arg) protected PreparedStatementprepareStatement(String statement)
-
Field Details
-
_dbms
-
_host
-
_port
-
_user
-
_password
-
_database
-
_schema
-
_urlPattern
-
_driver
-
_programmer
-
_url
-
_connection
-
_initialised
protected boolean _initialised -
_argIndex
protected int _argIndex -
_args
-
-
Constructor Details
-
SqlUtil
public SqlUtil() -
SqlUtil
-
-
Method Details
-
arg
-
logValidArgument
-
logInvalidArgument
-
logSyntaxError
protected void logSyntaxError() -
getSyntax
-
getSqlUtilSyntax
-
getNewInstanceForName
-
getClassForName
-
connect
protected boolean connect() -
close
protected boolean close() -
isRemoteConnection
protected boolean isRemoteConnection() -
isSlowConnection
protected boolean isSlowConnection() -
executeStatement
- Throws:
SQLException
-
executeStatement
- Throws:
SQLException
-
prepareStatement
-
close
-
close
-
getDbms
-
getHost
-
getPort
-
getUser
-
getPassword
-
getDatabase
-
getSchema
-
getDriver
-
getUrl
-
isInitialised
public boolean isInitialised() -
getMetajavaPath
-
getCommonsPackage
-
getDefaultPackage
-
getSourceMetajavaPackage
-
getTargetMetajavaPackage
-