pt.despodata.java.ddata
Class DevelopmentTool

java.lang.Object
  extended bypt.despodata.java.ddata.DevelopmentTool

public class DevelopmentTool
extends java.lang.Object

Devlopment.java Esta classe destina-se a facilitar o acesso a base de dados. Created: Tue Aug 29 10:38:54 2000

Version:
1.0
Author:
Paulo Carmo

Field Summary
protected  java.lang.String passwd
           
protected  java.lang.String passwdFile
           
protected  java.lang.String url
           
protected  java.lang.String userid
           
 
Constructor Summary
DevelopmentTool()
          DevlopmentTool Constructor
DevelopmentTool(java.lang.String url)
          DevlopmentTool Constructor
DevelopmentTool(java.lang.String url, java.lang.String user, java.lang.String passwd)
          DevlopmentTool Constructor
 
Method Summary
 java.sql.Connection getConnection()
          Creates and returns a Connection
 java.lang.String getPasswd()
          Get the value of password.
 java.lang.String getPasswdFile()
          Get the value of passwdFile.
 java.lang.String getTimeString()
           
 java.lang.String getUrl()
          Get the value of url.
 java.lang.String getUserid()
          Get the value of userid.
static void main(java.lang.String[] args)
           
 void ReadPasswdFile()
          read username and password from file
 void setPasswd(java.lang.String v)
          Set the value of password.
 void setPasswdFile(java.lang.String v)
          Set the value of passwdFile.
 void setUrl(java.lang.String v)
          Set the value of url.
 void setUserid(java.lang.String v)
          Set the value of userid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

passwdFile

protected java.lang.String passwdFile

userid

protected java.lang.String userid

passwd

protected java.lang.String passwd

url

protected java.lang.String url
Constructor Detail

DevelopmentTool

public DevelopmentTool()
DevlopmentTool Constructor


DevelopmentTool

public DevelopmentTool(java.lang.String url)
DevlopmentTool Constructor

Parameters:
url - Database URL String

DevelopmentTool

public DevelopmentTool(java.lang.String url,
                       java.lang.String user,
                       java.lang.String passwd)
DevlopmentTool Constructor

Parameters:
url - Database URL String
user - User name
passwd - User password
Method Detail

getConnection

public java.sql.Connection getConnection()
Creates and returns a Connection


ReadPasswdFile

public void ReadPasswdFile()
read username and password from file


getTimeString

public java.lang.String getTimeString()

getPasswdFile

public java.lang.String getPasswdFile()
Get the value of passwdFile.

Returns:
Value of passwdFile.

setPasswdFile

public void setPasswdFile(java.lang.String v)
Set the value of passwdFile.

Parameters:
v - Value to assign to passwdFile.

getUserid

public java.lang.String getUserid()
Get the value of userid.

Returns:
Value of userid.

setUserid

public void setUserid(java.lang.String v)
Set the value of userid.

Parameters:
v - Value to assign to userid.

getPasswd

public java.lang.String getPasswd()
Get the value of password.

Returns:
Value of password.

setPasswd

public void setPasswd(java.lang.String v)
Set the value of password.

Parameters:
v - Value to assign to password.

getUrl

public java.lang.String getUrl()
Get the value of url.

Returns:
Value of url.

setUrl

public void setUrl(java.lang.String v)
Set the value of url.

Parameters:
v - Value to assign to url.

main

public static void main(java.lang.String[] args)