ElegantJ Data Tables Java API Specification v1.1

com.elegantj.data.editors
Class ConnectionProperties

java.lang.Object
  extended bycom.elegantj.data.editors.ConnectionProperties
All Implemented Interfaces:
java.io.Serializable

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

This utitlity class provides properties for making connection with database.

See Also:
Serialized Form

Constructor Summary
ConnectionProperties()
           
ConnectionProperties(java.lang.String url, java.lang.String driver, java.lang.String user, java.lang.String pswd)
          Creates a ConnectionProperties with specified url, driver class name, user name and password.
 
Method Summary
 java.lang.Object clone()
          Returns the clone of the caller object
 boolean equals(java.lang.Object obj)
          Compares the specified Object with this ConnectionProperties for equality.
 java.lang.String getDriver()
          Returns the driver class name to connect with the database
 java.lang.String getPassword()
          Returns the password to connect with the database
 java.lang.String getURL()
          Returns the url string to connect with the database
 java.lang.String getUser()
          Returns the user name to connect with the database
 java.lang.String toString()
          Converts the object to a string
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionProperties

public ConnectionProperties()

ConnectionProperties

public ConnectionProperties(java.lang.String url,
                            java.lang.String driver,
                            java.lang.String user,
                            java.lang.String pswd)
Creates a ConnectionProperties with specified url, driver class name, user name and password.

Parameters:
url - the string contains the database url protocol:subprotocol:dsn name ( like jdbc:odbc:DSN )
driver - the string contains the driver class name for the database ( like jdbc.odbc.JdbcOdbcDriver )
user - the string contains the database user name
pswd - the string contains the database login password
Method Detail

getURL

public java.lang.String getURL()
Returns the url string to connect with the database


getDriver

public java.lang.String getDriver()
Returns the driver class name to connect with the database


getUser

public java.lang.String getUser()
Returns the user name to connect with the database


getPassword

public java.lang.String getPassword()
Returns the password to connect with the database


clone

public java.lang.Object clone()
Returns the clone of the caller object


toString

public java.lang.String toString()
Converts the object to a string

Returns:
a string representation of this class object

equals

public boolean equals(java.lang.Object obj)
Compares the specified Object with this ConnectionProperties for equality. Returns true if and only if the specified Object is also a ConnectionProperties, both ConnectionProperties have the same propties.

Parameters:
obj - the Object to be compared for equality with this ConnectionProperties.
Returns:
true if the specified Object is equal to this Vector

ElegantJ Data Tables Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.