public class DbAccessReadExpCondition
extends n4e.core.database.DbAccessRead
DbAccessReadExpCondition
class reads fields of ExpCondition table in database.changed, changedfrom, client, conn, created, creator, databasename, dbtablename, errCode, errMess, ERROR_0001, ERROR_0002, fields4load, hasdata, indivTableFields, inuse, keynameofpublvk, LIST_OF_INDIV_TABLE_FIELDS, LIST_OF_NAMES_OF_PUBLIC_FOREIGN_KEYS, LIST_OF_PRIVATE_FOREIGN_KEYS, LIST_OF_PUBLIC_FOREIGN_KEYS, LIST_OF_STD_TABLE_FIELDS, LIST_OF_TABLES_OWNER_KEYS, LIST_OF_TABLES_PRIVATE_FOREIGN_KEYS, LIST_OF_TABLES_PUBLIC_FOREIGN_KEYS, myconn, myDatabaseConnectionSet, privateforeignkey, privateforeignkeytable, privfkey4load, publfkey4load, publicforeignkey, publicforeignkeytable, read_with_client, sqlAdd, stdTableFields, success, sysUser, t4d, t4m, t4n, t4st, tblnameofownerfield, tblnameofprivk, tblnameofpublvk, uniqueid, version
Constructor and Description |
---|
DbAccessReadExpCondition()
The constructor
DbAccessReadExpCondition initialized the object. |
DbAccessReadExpCondition(n4e.core.database.DatabaseConnection conn,
n4e.core.list.List4SysUser pUser,
java.lang.String uniqueid,
java.lang.String fieldlist,
java.lang.String privfkey,
java.lang.String publfkey)
The constructor
DbAccessReadExpCondition initialized the object |
DbAccessReadExpCondition(n4e.core.database.DatabaseConnection conn,
n4e.core.list.List4SysUser pUser,
java.lang.String uniqueid,
java.lang.String fieldlist,
java.lang.String privfkey,
java.lang.String publfkey,
java.lang.String sqlAdd)
The constructor
DbAccessReadExpCondition initialized the object with additional sqlwhere
this.conn 0 conn; |
DbAccessReadExpCondition(n4e.core.list.List4SysUser sysUser)
The constructor
DbAccessReadExpCondition initialized the object. |
DbAccessReadExpCondition(n4e.core.list.List4SysUser pUser,
java.lang.String uniqueid,
java.lang.String fieldlist,
java.lang.String privfkey,
java.lang.String publfkey)
The constructor
DbAccessReadExpCondition initialized the object |
DbAccessReadExpCondition(n4e.core.list.List4SysUser pUser,
java.lang.String uniqueid,
java.lang.String fieldlist,
java.lang.String privfkey,
java.lang.String publfkey,
java.lang.String sqlAdd)
The constructor
DbAccessReadExpCondition initialized the object with additional sqlwhere |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBlobField(java.lang.String fieldname)
The method
getBlobField returns the field contens of blob fields. |
java.lang.String |
getCondition() |
java.util.ArrayList |
getDataSet(java.lang.String addsqlorder)
The method
getDataSet returns a data set from table. |
java.lang.String |
getDefData(java.lang.String fieldname,
java.lang.String datatype)
The method
getDefData returns data concerning a table field. |
java.lang.String |
getFieldAsStringKey(java.lang.String fieldname,
java.lang.Boolean getkey)
The method
getFieldAsStringKey returns the field contens as a string. |
java.lang.String |
getKeyWord(java.lang.String uid)
The method
getKeyWord gets a keyword from keyset. |
java.util.ArrayList |
getKeyWordList(java.lang.String keyset,
java.lang.String dontshowaskey)
The method
getKeyWordList gets a list of all keywords from keyset. |
DbAccessReadExpAttribute |
getMyDbAccessReadExpAttribute() |
DbAccessReadExpRule |
getMyDbAccessReadExpRule() |
java.lang.String |
getOperand() |
java.lang.String |
getOperator() |
long |
getSort() |
java.lang.String |
getTranslationText(int ndx)
The method
getTranslationText returns the translated text. |
void |
initiate(n4e.core.list.List4SysUser pUser,
java.lang.String uniqueid,
java.lang.String fieldlist,
java.lang.String privfkey,
java.lang.String publfkey,
java.lang.String sqlAdd,
boolean read_with_client)
The method
initiate initializes the object with additional sqlwhere. |
boolean |
loadFromTable(java.lang.String uniqueid,
java.lang.String fieldlist,
java.lang.String privfkey,
java.lang.String publfkey,
java.lang.String sqlAdd)
The method
loadFromTable gets tabledata from database. |
void |
setCondition(java.lang.String input) |
void |
setMyDbAccessReadExpAttribute(DbAccessReadExpAttribute input) |
void |
setMyDbAccessReadExpRule(DbAccessReadExpRule input) |
void |
setOperand(java.lang.String input) |
void |
setOperator(java.lang.String input) |
void |
setSort(long input) |
void |
setWorkFields()
The method
setWorkFields sets the work fiels to current values. |
getByteStringFromByteArray, getChanged, getChangedfrom, getClient, getCreated, getCreator, getDatabasename, getDbTablename, getFieldAsString, getIndivTableFields, getInuse, getKeynameofpublvk, getListOfFields, getListOfFields, getPrivateforeignkey, getPublicforeignkey, getStdTableFields, getSystemUser, getTblnameofownerfield, getTblnameofprivk, getTblnameofpublvk, getUniqueid, getVersion, setChanged, setChangedfrom, setClient, setCreated, setCreator, setInuse, setInuse, setSystemUser, setUniqueid, setVersion, setVersion
public DbAccessReadExpCondition()
DbAccessReadExpCondition
initialized the object.public DbAccessReadExpCondition(n4e.core.list.List4SysUser sysUser)
DbAccessReadExpCondition
initialized the object.sysUser
- the system user.public DbAccessReadExpCondition(n4e.core.list.List4SysUser pUser, java.lang.String uniqueid, java.lang.String fieldlist, java.lang.String privfkey, java.lang.String publfkey) throws java.lang.Exception
DbAccessReadExpCondition
initialized the objectpUser
- the system user objectuniqueid
- the unique keyfieldlist
- List of fields to loadprivfkey
- List of privfkeys to loadpublfkey
- List of publfkeys to loadjava.lang.Exception
- if errorpublic DbAccessReadExpCondition(n4e.core.database.DatabaseConnection conn, n4e.core.list.List4SysUser pUser, java.lang.String uniqueid, java.lang.String fieldlist, java.lang.String privfkey, java.lang.String publfkey) throws java.lang.Exception
DbAccessReadExpCondition
initialized the objectconn
- database connectionpUser
- the system user objectuniqueid
- the unique keyfieldlist
- List of fields to loadprivfkey
- List of privfkeys to loadpublfkey
- List of publfkeys to loadjava.lang.Exception
- if errorpublic DbAccessReadExpCondition(n4e.core.list.List4SysUser pUser, java.lang.String uniqueid, java.lang.String fieldlist, java.lang.String privfkey, java.lang.String publfkey, java.lang.String sqlAdd) throws java.lang.Exception
DbAccessReadExpCondition
initialized the object with additional sqlwherepUser
- the system user objectuniqueid
- the unique keyfieldlist
- List of fields to loadprivfkey
- List of privfkeys to loadpublfkey
- List of publfkeys to loadsqlAdd
- additional where clausejava.lang.Exception
- if errorpublic DbAccessReadExpCondition(n4e.core.database.DatabaseConnection conn, n4e.core.list.List4SysUser pUser, java.lang.String uniqueid, java.lang.String fieldlist, java.lang.String privfkey, java.lang.String publfkey, java.lang.String sqlAdd) throws java.lang.Exception
DbAccessReadExpCondition
initialized the object with additional sqlwhere
this.conn 0 conn;conn
- database connectionpUser
- the system user objectuniqueid
- the unique keyfieldlist
- List of fields to loadprivfkey
- List of privfkeys to loadpublfkey
- List of publfkeys to loadsqlAdd
- additional where clausejava.lang.Exception
- if errorpublic void setSort(long input)
public long getSort()
public void setCondition(java.lang.String input)
public java.lang.String getCondition()
public void setOperator(java.lang.String input)
public java.lang.String getOperator()
public void setOperand(java.lang.String input)
public java.lang.String getOperand()
public void setMyDbAccessReadExpRule(DbAccessReadExpRule input)
public DbAccessReadExpRule getMyDbAccessReadExpRule()
public void setMyDbAccessReadExpAttribute(DbAccessReadExpAttribute input)
public DbAccessReadExpAttribute getMyDbAccessReadExpAttribute()
public void initiate(n4e.core.list.List4SysUser pUser, java.lang.String uniqueid, java.lang.String fieldlist, java.lang.String privfkey, java.lang.String publfkey, java.lang.String sqlAdd, boolean read_with_client) throws java.lang.Exception
initiate
initializes the object with additional sqlwhere.initiate
in class n4e.core.database.DbAccessRead
pUser
- the system user object.uniqueid
- the unique key.fieldlist
- List of fields to load.privfkey
- List of privfkeys to load.publfkey
- List of publfkeys to load.sqlAdd
- additional where clause.read_with_client
- read with use of the client id.java.lang.Exception
- if errorpublic void setWorkFields()
setWorkFields
sets the work fiels to current values.setWorkFields
in class n4e.core.database.DbAccessRead
public boolean loadFromTable(java.lang.String uniqueid, java.lang.String fieldlist, java.lang.String privfkey, java.lang.String publfkey, java.lang.String sqlAdd) throws java.lang.Exception
loadFromTable
gets tabledata from database.loadFromTable
in class n4e.core.database.DbAccessRead
uniqueid
- the unique keyfieldlist
- List of fields to loadprivfkey
- List of privfkeys to loadpublfkey
- List of publfkeys to loadsqlAdd
- additional where clausejava.lang.Exception
- if errorpublic java.lang.String getDefData(java.lang.String fieldname, java.lang.String datatype) throws java.lang.Exception
getDefData
returns data concerning a table field.getDefData
in class n4e.core.database.DbAccessRead
fieldname
- the name of table fielddatatype
- type of data to returnjava.lang.Exception
- if errorpublic byte[] getBlobField(java.lang.String fieldname) throws java.lang.Exception
getBlobField
returns the field contens of blob fields.fieldname
- the name of table field.java.lang.Exception
- if errorpublic java.lang.String getFieldAsStringKey(java.lang.String fieldname, java.lang.Boolean getkey) throws java.lang.Exception
getFieldAsStringKey
returns the field contens as a string.getFieldAsStringKey
in class n4e.core.database.DbAccessRead
fieldname
- the name of table field.getkey,
- get the key value.java.lang.Exception
- if errorpublic java.util.ArrayList getDataSet(java.lang.String addsqlorder) throws java.lang.Exception
getDataSet
returns a data set from table.getDataSet
in class n4e.core.database.DbAccessRead
addsqlorder
- order of sql resultjava.lang.Exception
- if errorpublic java.lang.String getTranslationText(int ndx) throws java.lang.Exception
getTranslationText
returns the translated text.ndx
- the text index.java.lang.Exception
- if errorpublic java.lang.String getKeyWord(java.lang.String uid) throws java.lang.Exception
getKeyWord
gets a keyword from keyset.uid
- uniqueid of keywordjava.lang.Exception
- if errorpublic java.util.ArrayList getKeyWordList(java.lang.String keyset, java.lang.String dontshowaskey) throws java.lang.Exception
getKeyWordList
gets a list of all keywords from keyset.keyset
- name of keysetdontshowaskey
- key word uniqueids without showing separated by semicolon.java.lang.Exception
- if error