public class DbAccessReadKeyWord
extends n4e.core.database.DbAccessRead
DbAccessReadKeyWord
class reads fields of KeyWord 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 |
---|
DbAccessReadKeyWord()
The constructor
DbAccessReadKeyWord initialized the object. |
DbAccessReadKeyWord(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
DbAccessReadKeyWord initialized the object |
DbAccessReadKeyWord(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
DbAccessReadKeyWord initialized the object with additional sqlwhere
this.conn 0 conn; |
DbAccessReadKeyWord(n4e.core.list.List4SysUser sysUser)
The constructor
DbAccessReadKeyWord initialized the object. |
DbAccessReadKeyWord(n4e.core.list.List4SysUser pUser,
java.lang.String uniqueid,
java.lang.String fieldlist,
java.lang.String privfkey,
java.lang.String publfkey)
The constructor
DbAccessReadKeyWord initialized the object |
DbAccessReadKeyWord(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
DbAccessReadKeyWord 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. |
int |
getCanchangename() |
int |
getCandelete() |
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 |
getDescription() |
java.lang.String |
getDescription2() |
java.lang.String |
getDescription3() |
java.lang.String |
getDescription4() |
java.lang.String |
getDescription5() |
java.lang.String |
getFieldAsStringKey(java.lang.String fieldname,
java.lang.Boolean getkey)
The method
getFieldAsStringKey returns the field contens as a string. |
DbAccessReadKeySet |
getMyDbAccessReadKeySet() |
java.lang.String |
getName() |
java.lang.String |
getName2() |
java.lang.String |
getName3() |
java.lang.String |
getName4() |
java.lang.String |
getName5() |
java.lang.String |
getParameter1() |
java.lang.String |
getParameter2() |
java.lang.String |
getParameter3() |
java.lang.String |
getParameter4() |
java.lang.String |
getParameter5() |
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 |
setCanchangename(int input) |
void |
setCandelete(int input) |
void |
setDescription(java.lang.String input) |
void |
setDescription2(java.lang.String input) |
void |
setDescription3(java.lang.String input) |
void |
setDescription4(java.lang.String input) |
void |
setDescription5(java.lang.String input) |
void |
setMyDbAccessReadKeySet(DbAccessReadKeySet input) |
void |
setName(java.lang.String input) |
void |
setName2(java.lang.String input) |
void |
setName3(java.lang.String input) |
void |
setName4(java.lang.String input) |
void |
setName5(java.lang.String input) |
void |
setParameter1(java.lang.String input) |
void |
setParameter2(java.lang.String input) |
void |
setParameter3(java.lang.String input) |
void |
setParameter4(java.lang.String input) |
void |
setParameter5(java.lang.String 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 DbAccessReadKeyWord()
DbAccessReadKeyWord
initialized the object.public DbAccessReadKeyWord(n4e.core.list.List4SysUser sysUser)
DbAccessReadKeyWord
initialized the object.sysUser
- the system user.public DbAccessReadKeyWord(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
DbAccessReadKeyWord
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 DbAccessReadKeyWord(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
DbAccessReadKeyWord
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 DbAccessReadKeyWord(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
DbAccessReadKeyWord
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 DbAccessReadKeyWord(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
DbAccessReadKeyWord
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 setName(java.lang.String input)
public java.lang.String getName()
public void setName2(java.lang.String input)
public java.lang.String getName2()
public void setName3(java.lang.String input)
public java.lang.String getName3()
public void setName4(java.lang.String input)
public java.lang.String getName4()
public void setName5(java.lang.String input)
public java.lang.String getName5()
public void setCanchangename(int input)
public int getCanchangename()
public void setDescription(java.lang.String input)
public java.lang.String getDescription()
public void setDescription2(java.lang.String input)
public java.lang.String getDescription2()
public void setDescription3(java.lang.String input)
public java.lang.String getDescription3()
public void setDescription4(java.lang.String input)
public java.lang.String getDescription4()
public void setDescription5(java.lang.String input)
public java.lang.String getDescription5()
public void setParameter1(java.lang.String input)
public java.lang.String getParameter1()
public void setParameter2(java.lang.String input)
public java.lang.String getParameter2()
public void setParameter3(java.lang.String input)
public java.lang.String getParameter3()
public void setParameter4(java.lang.String input)
public java.lang.String getParameter4()
public void setParameter5(java.lang.String input)
public java.lang.String getParameter5()
public void setCandelete(int input)
public int getCandelete()
public void setMyDbAccessReadKeySet(DbAccessReadKeySet input)
public DbAccessReadKeySet getMyDbAccessReadKeySet()
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 error