Class KeyDataBean
This class is useful for retrieving key data from DB.
Inheritance
System.Object
KeyDataBean
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SDBCS.bean
Assembly: SDBCS.dll
Syntax
public class KeyDataBean
Remarks
Author Mehmet Hayati KINAŞ
Version 1.0
Constructors
KeyDataBean(RunDB, String, String, String[])
The constructor use runDB, tableName, keyField, unqField parameters for retrieving key data from DB.
Declaration
public KeyDataBean(RunDB runDB, string tableName, string keyField, 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[] | unqField | Unique fields string array. |
Methods
closeAll()
Firstly close local dataReader if it is open, then call runDB closeAll method.
Declaration
public void closeAll()
closeDR()
This is for closing data reader if it is open.
Declaration
public void closeDR()
getErrorString()
For getting errorString.
Declaration
public string getErrorString()
Returns
Type | Description |
---|---|
System.String | errorString |
getKeyData(String[])
This method is for retrieving key data from DB.
Declaration
public string getKeyData(string[] unqData)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | unqData | Unique fields string array. |
Returns
Type | Description |
---|---|
System.String | Key data string value. |