Class PasswordBean
This class is useful for retrieving and recording password data from DB.
Inheritance
Inherited Members
Namespace: SDBCS.bean
Assembly: SDBCS.dll
Syntax
public class PasswordBean
Remarks
Author Mehmet Hayati KINAŞ
Version 1.0
Constructors
PasswordBean(RunDB, String, String, String)
The constructor use runDB, tableName, keyField, paswField parameters for recording and retrieving password data from DB.
Declaration
public PasswordBean(RunDB runDB, string tableName, string keyField, string paswField)
Parameters
Type | Name | Description |
---|---|---|
RunDB | runDB | RunDB instance for DB processes. |
System.String | tableName | Table name string value. |
System.String | keyField | Key field string value. |
System.String | paswField | Password field string value. |
PasswordBean(RunDB, String, String, String, String[])
The constructor sets runDB, tableName, keyField, unqField, paswField parameters for recording and retrieving password data from DB.
Declaration
public PasswordBean(RunDB runDB, string tableName, string keyField, string paswField, string[] unqField)
Parameters
Type | Name | Description |
---|---|---|
RunDB | runDB | RunDB instance for DB processes. |
System.String | tableName | Table name string value. |
System.String | keyField | Key field string value. |
System.String | paswField | Password field string value. |
System.String[] | unqField | Unique fields string array. |
Methods
closeAll()
Firstly close local dataReader if it is open, then call runDB closeAll method.
Declaration
public void closeAll()
getErrorString()
For getting error string.
Declaration
public string getErrorString()
Returns
Type | Description |
---|---|
System.String | errorString |
getKeyData(String[])
If key data don't present unique data can be use for retrieving key data.
Declaration
public string getKeyData(string[] unqData)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | unqData | Unique data string array. |
Returns
Type | Description |
---|---|
System.String |
getPassword(String)
This method is for retrieving password from DB.
Declaration
public string getPassword(string keyData)
Parameters
Type | Name | Description |
---|---|---|
System.String | keyData | Key data string value. |
Returns
Type | Description |
---|---|
System.String | Password string value. |
getQuerystring()
For getting queryString.
Declaration
public string getQuerystring()
Returns
Type | Description |
---|---|
System.String | queryString |
setPassword(String, String)
This method is for recording password to DB.
Declaration
public bool setPassword(string keyData, string paswData)
Parameters
Type | Name | Description |
---|---|---|
System.String | keyData | Key data string value. |
System.String | paswData | Password string value. |
Returns
Type | Description |
---|---|
System.Boolean | If recording is successful it will return true, else return false. |