org.jsqltool.conn
Class DbConnection
java.lang.Object
|
+--org.jsqltool.conn.DbConnection
- public class DbConnection
- extends java.lang.Object
Title: JSqlTool Project
Description: database connection descriptor:
contains connection properties, old queries and tables filters.
This window allows to create/edit/delete connections.
Copyright: Copyright (C) 2006 Mauro Carniel
This file is part of JSqlTool project.
This library is free software; you can redistribute it and/or
modify it under the terms of the (LGPL) Lesser General Public
License as published by the Free Software Foundation;
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
The author may be contacted at:
maurocarniel@tin.it
|
Constructor Summary |
DbConnection(int dbType,
java.lang.String name,
java.lang.String className,
java.lang.String url,
java.lang.String username,
java.lang.String password,
boolean autoCommit,
int isolationLevel,
boolean readOnly,
java.lang.String catalog,
java.util.Hashtable filters,
java.util.ArrayList oldQueries,
boolean quotes)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ORACLE_TYPE
public static final int ORACLE_TYPE
- See Also:
- Constant Field Values
SQLSERVER_TYPE
public static final int SQLSERVER_TYPE
- See Also:
- Constant Field Values
ODBC_TYPE
public static final int ODBC_TYPE
- See Also:
- Constant Field Values
OTHER_TYPE
public static final int OTHER_TYPE
- See Also:
- Constant Field Values
DbConnection
public DbConnection(int dbType,
java.lang.String name,
java.lang.String className,
java.lang.String url,
java.lang.String username,
java.lang.String password,
boolean autoCommit,
int isolationLevel,
boolean readOnly,
java.lang.String catalog,
java.util.Hashtable filters,
java.util.ArrayList oldQueries,
boolean quotes)
getClassName
public java.lang.String getClassName(int dbType)
getUrl
public java.lang.String getUrl(int dbType,
java.lang.String host,
java.lang.String port,
java.lang.String sid)
getHost
public java.lang.String getHost()
getPort
public java.lang.String getPort()
getSID
public java.lang.String getSID()
getClassName
public java.lang.String getClassName()
getName
public java.lang.String getName()
getUrl
public java.lang.String getUrl()
getUsername
public java.lang.String getUsername()
getPassword
public java.lang.String getPassword()
getIsolationLevel
public int getIsolationLevel()
isAutoCommit
public boolean isAutoCommit()
getDbType
public int getDbType()
setAutoCommit
public void setAutoCommit(boolean autoCommit)
setClassName
public void setClassName(java.lang.String className)
setDbType
public void setDbType(int dbType)
setIsolationLevel
public void setIsolationLevel(int isolationLevel)
setName
public void setName(java.lang.String name)
setPassword
public void setPassword(java.lang.String password)
setUrl
public void setUrl(java.lang.String url)
setUsername
public void setUsername(java.lang.String username)
isReadOnly
public boolean isReadOnly()
setReadOnly
public void setReadOnly(boolean readOnly)
getCatalog
public java.lang.String getCatalog()
setCatalog
public void setCatalog(java.lang.String catalog)
getFilters
public java.util.Hashtable getFilters()
getOldQueries
public java.util.ArrayList getOldQueries()
setOldQueries
public void setOldQueries(java.util.ArrayList oldQueries)
setFilters
public void setFilters(java.util.Hashtable filters)
isQuotes
public boolean isQuotes()
setQuotes
public void setQuotes(boolean quotes)