salto.tool.sql
Class ConnectionInfo

java.lang.Object
  extended by salto.tool.sql.ConnectionInfo
All Implemented Interfaces:
java.io.Serializable

public class ConnectionInfo
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
ConnectionInfo(java.lang.String driver, java.lang.String url, java.lang.String user, java.lang.String pwd, java.lang.String name)
           
ConnectionInfo(java.lang.String driver, java.lang.String url, java.lang.String user, java.lang.String pwd, java.lang.String name, java.lang.String driverJarFile)
           
 
Method Summary
protected  void finalize()
           
 CatalogInfo[] getCatalogInfos()
           
 java.sql.Connection getConn()
          Gets the conn.
 java.lang.String getDriver()
          Gets the driver.
 java.lang.String getDriverJarFile()
          Gets the driverJarFile.
 java.lang.String getName()
          Gets the name.
 java.lang.String getPwd()
          Gets the pwd.
 ShemaInfo[] getShemaInfos()
           
 ShemaInfo[] getShemaInfos(boolean find)
           
 java.lang.String getUrl()
          Gets the url.
 java.lang.String getUser()
          Gets the user.
 boolean isConnected()
           
 void setCatalogInfos(CatalogInfo[] catalogInfos)
           
 void setConn(java.sql.Connection conn)
          Sets the conn.
 void setDriver(java.lang.String driver)
          Sets the driver.
 void setDriverJarFile(java.lang.String driverJarFile)
          Sets the driverJarFile.
 void setName(java.lang.String name)
          Sets the name.
 void setPwd(java.lang.String pwd)
          Sets the pwd.
 void setUrl(java.lang.String url)
          Sets the url.
 void setUser(java.lang.String user)
          Sets the user.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionInfo

public ConnectionInfo(java.lang.String driver,
                      java.lang.String url,
                      java.lang.String user,
                      java.lang.String pwd,
                      java.lang.String name)

ConnectionInfo

public ConnectionInfo(java.lang.String driver,
                      java.lang.String url,
                      java.lang.String user,
                      java.lang.String pwd,
                      java.lang.String name,
                      java.lang.String driverJarFile)
Method Detail

getCatalogInfos

public CatalogInfo[] getCatalogInfos()
Returns:
Returns the catalogInfos.

setCatalogInfos

public void setCatalogInfos(CatalogInfo[] catalogInfos)
Parameters:
catalogInfos - The catalogInfos to set.

getDriver

public java.lang.String getDriver()
Gets the driver.

Returns:
Returns a String

setDriver

public void setDriver(java.lang.String driver)
Sets the driver.

Parameters:
driver - The driver to set

getPwd

public java.lang.String getPwd()
Gets the pwd.

Returns:
Returns a String

setPwd

public void setPwd(java.lang.String pwd)
Sets the pwd.

Parameters:
pwd - The pwd to set

getUrl

public java.lang.String getUrl()
Gets the url.

Returns:
Returns a String

setUrl

public void setUrl(java.lang.String url)
Sets the url.

Parameters:
url - The url to set

getUser

public java.lang.String getUser()
Gets the user.

Returns:
Returns a String

setUser

public void setUser(java.lang.String user)
Sets the user.

Parameters:
user - The user to set

getConn

public java.sql.Connection getConn()
Gets the conn.

Returns:
Returns a Connection

setConn

public void setConn(java.sql.Connection conn)
Sets the conn.

Parameters:
conn - The conn to set

getName

public java.lang.String getName()
Gets the name.

Returns:
Returns a String

setName

public void setName(java.lang.String name)
Sets the name.

Parameters:
name - The name to set

getDriverJarFile

public java.lang.String getDriverJarFile()
Gets the driverJarFile.

Returns:
Returns a String

setDriverJarFile

public void setDriverJarFile(java.lang.String driverJarFile)
Sets the driverJarFile.

Parameters:
driverJarFile - The driverJarFile to set

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable
See Also:
Object.finalize()

isConnected

public boolean isConnected()

getShemaInfos

public ShemaInfo[] getShemaInfos()

getShemaInfos

public ShemaInfo[] getShemaInfos(boolean find)
Returns:


Copyright © 2002-2008 Salto Consulting. All Rights Reserved.