|
|||||||||
| Home >> All >> com >> lutris >> dods >> gui >> [ importer overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.lutris.dods.gui.importer
Class DatabaseAdapter

java.lang.Objectcom.lutris.dods.gui.importer.DatabaseAdapter
- public class DatabaseAdapter
- extends java.lang.Object
This is a temporary database adapter, until I have time to figure out the Enhydra DatabaseManager classes... Yeah, kinda messy right now :)
- Version:
- $Revision: 1.5 $
| Field Summary | |
private static java.sql.Connection |
c
|
private static java.lang.String |
dbmsName
|
private static boolean |
DEBUG
|
private static java.lang.String |
driverName
|
private static java.lang.String |
lastError
|
private static java.lang.String |
password
|
private static boolean |
shouldBeConnected
|
private static java.lang.String |
systemName
|
private static java.lang.String |
tname1
|
private static java.lang.String |
tname2
|
private static java.lang.String |
tname3
|
private static javax.swing.JTree |
tree
|
private static java.lang.String |
userID
|
| Constructor Summary | |
DatabaseAdapter()
|
|
| Method Summary | |
static void |
closeConnection()
|
static java.sql.ResultSet |
executeQuery(java.lang.String queryString)
This method takes a (SQL)string, and querys the database with it |
static int |
executeUpdate(java.lang.String queryString)
This method takes a (SQL)string, and updates the database with it |
void |
finalize()
Called on an object by the Virtual Machine at most once, at some point after the Object is determined unreachable but before it is destroyed. |
static java.util.Vector |
getCatalogs()
This method returns a Vector full of catalogs available at the connection |
static java.lang.String |
getDataSourceName()
|
static java.lang.String |
getDriverName()
|
static boolean |
getIsConnected()
|
static java.lang.String |
getLastError()
|
static java.lang.String |
getSystemName()
|
static java.util.Vector |
getTables(java.util.Vector getCollections,
int specificNumber)
This method returns a Vector full of tables available in the collection, at the specified index. |
static java.lang.String |
getUserID()
|
static boolean |
isConnected()
|
static void |
main(java.lang.String[] args)
|
static void |
makeConnection()
this method tries to connect the static Connection (c) |
static void |
setDriverName(java.lang.String string)
|
static void |
setIsConnected(boolean string)
|
static void |
setLastError(java.lang.String string)
|
static void |
setPassword(java.lang.String string)
|
static void |
setSystemName(java.lang.String string)
|
static void |
setUserID(java.lang.String string)
|
static void |
sysPrint(java.lang.String string)
|
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
DEBUG
private static boolean DEBUG
systemName
private static java.lang.String systemName
driverName
private static java.lang.String driverName
userID
private static java.lang.String userID
password
private static java.lang.String password
c
private static java.sql.Connection c
lastError
private static java.lang.String lastError
dbmsName
private static java.lang.String dbmsName
tname1
private static java.lang.String tname1
tname2
private static java.lang.String tname2
tname3
private static java.lang.String tname3
tree
private static javax.swing.JTree tree
shouldBeConnected
private static boolean shouldBeConnected
| Constructor Detail |
DatabaseAdapter
public DatabaseAdapter()
| Method Detail |
main
public static void main(java.lang.String[] args)
makeConnection
public static void makeConnection()
throws java.sql.SQLException,
java.lang.ClassNotFoundException
- this method tries to connect the static Connection (c)
executeQuery
public static java.sql.ResultSet executeQuery(java.lang.String queryString) throws java.sql.SQLException
- This method takes a (SQL)string, and querys the database with it
executeUpdate
public static int executeUpdate(java.lang.String queryString) throws java.sql.SQLException
- This method takes a (SQL)string, and updates the database with it
closeConnection
public static void closeConnection()
throws java.sql.SQLException
getCatalogs
public static java.util.Vector getCatalogs() throws java.sql.SQLException
- This method returns a Vector full of catalogs available
at the connection
getTables
public static java.util.Vector getTables(java.util.Vector getCollections, int specificNumber) throws java.sql.SQLException
- This method returns a Vector full of tables available
in the collection, at the specified index.
sysPrint
public static void sysPrint(java.lang.String string)
setUserID
public static void setUserID(java.lang.String string)
setPassword
public static void setPassword(java.lang.String string)
setSystemName
public static void setSystemName(java.lang.String string)
setDriverName
public static void setDriverName(java.lang.String string)
setLastError
public static void setLastError(java.lang.String string)
setIsConnected
public static void setIsConnected(boolean string)
isConnected
public static boolean isConnected()
getSystemName
public static java.lang.String getSystemName()
getDataSourceName
public static java.lang.String getDataSourceName()
getDriverName
public static java.lang.String getDriverName()
getLastError
public static java.lang.String getLastError()
getUserID
public static java.lang.String getUserID()
getIsConnected
public static boolean getIsConnected()
finalize
public void finalize()
- Description copied from class:
java.lang.Object - Called on an object by the Virtual Machine at most once,
at some point after the Object is determined unreachable
but before it is destroyed. You would think that this
means it eventually is called on every Object, but this is
not necessarily the case. If execution terminates
abnormally, garbage collection does not always happen.
Thus you cannot rely on this method to always work.
For finer control over garbage collection, use references
from the
java.lang.refpackage.Virtual Machines are free to not call this method if they can determine that it does nothing important; for example, if your class extends Object and overrides finalize to do simply
super.finalize().finalize() will be called by a java.lang.Thread that has no locks on any Objects, and may be called concurrently. There are no guarantees on the order in which multiple objects are finalized. This means that finalize() is usually unsuited for performing actions that must be thread-safe, and that your implementation must be use defensive programming if it is to always work.
If an Exception is thrown from finalize() during garbage collection, it will be patently ignored and the Object will still be destroyed.
It is allowed, although not typical, for user code to call finalize() directly. User invocation does not affect whether automatic invocation will occur. It is also permitted, although not recommended, for a finalize() method to "revive" an object by making it reachable from normal code again.
Unlike constructors, finalize() does not get called for an object's superclass unless the implementation specifically calls
super.finalize().The default implementation does nothing.
|
|||||||||
| Home >> All >> com >> lutris >> dods >> gui >> [ importer overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.lutris.dods.gui.importer.DatabaseAdapter