public class PasswordRecord extends DBPersist
Modifier and Type | Field and Description |
---|---|
static short |
ClassId |
Constructor and Description |
---|
PasswordRecord() |
PasswordRecord(java.lang.String sKey) |
Modifier and Type | Method and Description |
---|---|
void |
addLine(java.lang.String sId,
char cType,
java.lang.String sLabel) |
void |
addLine(java.lang.String sId,
char cType,
java.lang.String sLabel,
java.lang.String sValue) |
boolean |
delete(JDCConnection oConn)
Delete a register from database
The deleted register will be the one matching this DBPersist primary key,
as set at constructor or load() method.
|
static boolean |
delete(JDCConnection oConn,
java.lang.String sGuPwd) |
java.lang.String |
getValueOf(java.lang.String sLineId) |
java.util.ArrayList<PasswordRecordLine> |
lines() |
boolean |
load(JDCConnection oConn,
java.lang.Object[] aPK)
Load the internal value set from a register at a database table
|
boolean |
load(JDCConnection oConn,
java.lang.String sPk)
Load the internal value set from a register at a database table
|
void |
setKey(java.lang.String sKey) |
boolean |
store(JDCConnection oConn)
Store a register at database representing this instance of DBPersist
Insertions and updates : The store method automatically manages
register insertions and updates.
|
boolean |
store(JDCConnection oConn,
java.lang.String sGuCategory) |
java.lang.String |
toString() |
allcaps, allcaps, clear, clone, columns, containsKey, containsValue, entrySet, exists, get, get, getAuditClassName, getCreationDate, getDate, getDate, getDateFormated, getDateShort, getDateTime, getDateTime24, getDecimal, getDecimalFormated, getDecimalFormated, getDouble, getDoubleFormated, getFloat, getFloatFormated, getInt, getIntArray, getInteger, getIntegerArray, getIntervalPart, getItemMap, getItems, getMoney, getPrimaryKey, getShort, getSQLDate, getSQLTime, getString, getStringHtml, getStringNull, getTable, getTable, getTime, getTimeOfDay, getTimestamp, isEmpty, isNull, iterator, keySet, parseXML, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, putAll, putAll, remove, remove, replace, replace, replace, replace, replace, replace, replace, replace, setAuditTransact, setAuditUser, setCreationDate, setPrimaryKey, size, toLowerCase, toUpperCase, toXML, toXML, toXML, values
public static final short ClassId
public PasswordRecord()
public PasswordRecord(java.lang.String sKey)
public void setKey(java.lang.String sKey) throws java.lang.NullPointerException
java.lang.NullPointerException
public java.lang.String getValueOf(java.lang.String sLineId)
public void addLine(java.lang.String sId, char cType, java.lang.String sLabel)
public void addLine(java.lang.String sId, char cType, java.lang.String sLabel, java.lang.String sValue)
public java.util.ArrayList<PasswordRecordLine> lines()
public boolean load(JDCConnection oConn, java.lang.Object[] aPK) throws java.sql.SQLException, java.security.AccessControlException
DBPersist
Load the internal value set from a register at a database table
public boolean load(JDCConnection oConn, java.lang.String sPk) throws java.sql.SQLException, java.security.AccessControlException
DBPersist
Load the internal value set from a register at a database table
public boolean store(JDCConnection oConn) throws java.sql.SQLException, java.security.AccessControlException, java.lang.IllegalArgumentException, java.lang.NullPointerException
DBPersist
Store a register at database representing this instance of DBPersist
Insertions and updates : The store method automatically manages register insertions and updates. If the stored object already exists at database then it is updated, if it does not exists then it is inserted. A primary key violation error is never thrown so ther is no need to call delete() method before re-writing an existing object.
NULL fields : All values not set calling put() methods for DBPersist
will be assumed to be NULL. If a not nullable field is not set then an
SQLException will be raised.
On storing an already existing object all values will we overwrited,
so is a DBPersist is not fully loaded before storing it, values not set
by calling put() methods that already were present at database will be lost.
store
in class DBPersist
oConn
- Database Connectionjava.sql.SQLException
java.security.AccessControlException
java.lang.IllegalArgumentException
java.lang.NullPointerException
public boolean store(JDCConnection oConn, java.lang.String sGuCategory) throws java.sql.SQLException, java.security.AccessControlException, java.lang.IllegalArgumentException, java.lang.NullPointerException
java.sql.SQLException
java.security.AccessControlException
java.lang.IllegalArgumentException
java.lang.NullPointerException
public boolean delete(JDCConnection oConn) throws java.sql.SQLException
DBPersist
Delete a register from database
The deleted register will be the one matching this DBPersist primary key, as set at constructor or load() method.
public static boolean delete(JDCConnection oConn, java.lang.String sGuPwd) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String toString()
toString
in class java.util.AbstractMap