com.ibm.db.base
Class DatabaseLogonSpec
java.lang.Object
|
+--com.ibm.db.base.DatabaseLogonSpec
- public class DatabaseLogonSpec
- extends java.lang.Object
- implements java.io.Serializable
DatabaseLogonSpec contains the logon password and userID need to establish
a connection with a database.
- See Also:
- Serialized Form
Constructor Summary |
DatabaseLogonSpec(java.lang.String anId,
java.lang.String aPassword)
This contructor sets the id and password |
DatabaseLogonSpec(java.lang.String anId,
java.lang.String aPassword,
boolean decode)
|
Method Summary |
java.lang.String |
getId()
This method returns the id |
java.lang.String |
getPassword()
This method returns the password |
protected boolean |
isValid()
This method check if the id and password fields are not null |
void |
setId(java.lang.String anId)
This method sets the id |
void |
setPassword(java.lang.String aPassword)
This method sets the password |
void |
setPassword(java.lang.String aPassword,
boolean decode)
Sets the password. |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
id
private java.lang.String id
password
private java.lang.String password
serialVersionUID
static final long serialVersionUID
copyright
private static final java.lang.String copyright
DatabaseLogonSpec
public DatabaseLogonSpec(java.lang.String anId,
java.lang.String aPassword)
- This contructor sets the id and password
DatabaseLogonSpec
public DatabaseLogonSpec(java.lang.String anId,
java.lang.String aPassword,
boolean decode)
throws DataException
getId
public java.lang.String getId()
- This method returns the id
getPassword
public java.lang.String getPassword()
- This method returns the password
isValid
protected boolean isValid()
- This method check if the id and password fields are not null
setId
public void setId(java.lang.String anId)
- This method sets the id
setPassword
public void setPassword(java.lang.String aPassword)
- This method sets the password
setPassword
public void setPassword(java.lang.String aPassword,
boolean decode)
throws DataException
- Sets the password. If requested, the password is decoded before it is saved.