public class DbAccess extends DbAccessRead
DbAccess
class is the parent of all access classes.Modifier and Type | Field and Description |
---|---|
static int |
ERROR_0003 |
static int |
ERROR_0004 |
static int |
ERROR_0005 |
static int |
ERROR_0104 |
static int |
ERROR_0105 |
java.util.ArrayList |
key_words_used
private foreign key hash table which contains the keys.
|
static int |
MSG_0006 |
static int |
MSG_0007 |
static int |
MSG_0008 |
boolean |
protocol
flag, if trafic is to protocol.
|
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 |
---|
DbAccess() |
Modifier and Type | Method and Description |
---|---|
boolean |
deleteInSink(DatabaseConnection conn)
The method
deleteInSink deletes the data in database (data sink). |
boolean |
hasChanged(java.lang.String fieldname)
The method
hasChanged returns the status of field change. |
boolean |
putToSink(DatabaseConnection conn)
The method
putToSink stores the data to database (data sink). |
void |
setFieldAsString(java.lang.String fieldname,
java.lang.String value)
The method
setFieldAsString returns the field contens as a string. |
void |
setKeyWordsAsUsed(DatabaseConnection pconn)
The method
setKeyWordsAsUsed set updated key words as used. |
void |
setProtocol(java.lang.String tablename)
The method
setProtocol set protocol flag. |
getByteStringFromByteArray, getChanged, getChangedfrom, getClient, getCreated, getCreator, getDatabasename, getDataSet, getDbTablename, getDefData, getFieldAsString, getFieldAsStringKey, getIndivTableFields, getInuse, getKeynameofpublvk, getListOfFields, getListOfFields, getPrivateforeignkey, getPublicforeignkey, getStdTableFields, getSystemUser, getTblnameofownerfield, getTblnameofprivk, getTblnameofpublvk, getUniqueid, getVersion, initiate, loadFromTable, setChanged, setChangedfrom, setClient, setCreated, setCreator, setInuse, setInuse, setSystemUser, setUniqueid, setVersion, setVersion, setWorkFields
public static final int ERROR_0003
public static final int ERROR_0004
public static final int ERROR_0005
public static final int ERROR_0104
public static final int ERROR_0105
public static final int MSG_0006
public static final int MSG_0007
public static final int MSG_0008
public java.util.ArrayList key_words_used
public boolean protocol
public boolean putToSink(DatabaseConnection conn) throws java.lang.Exception
putToSink
stores the data to database (data sink).conn
- Connection to Database, if null: make own connectionjava.lang.Exception
- if error.public boolean deleteInSink(DatabaseConnection conn) throws java.lang.Exception
deleteInSink
deletes the data in database (data sink).conn
- Connection to Database, if null: make own connectionjava.lang.Exception
- if error.public void setFieldAsString(java.lang.String fieldname, java.lang.String value) throws java.lang.Exception
setFieldAsString
returns the field contens as a string.fieldname
- the name of table field,value
- of the field.java.lang.Exception
- if error.public boolean hasChanged(java.lang.String fieldname) throws java.lang.Exception
hasChanged
returns the status of field change.fieldname
- the name of table fieldjava.lang.Exception
- if error.public void setKeyWordsAsUsed(DatabaseConnection pconn) throws java.lang.Exception
setKeyWordsAsUsed
set updated key words as used.pconn
- connection to database system.java.lang.Exception
- if error.public void setProtocol(java.lang.String tablename)
setProtocol
set protocol flag.tablename
- the name of the current database table.