public class Duty extends DBPersist
Modifier and Type | Field and Description |
---|---|
static short |
ClassId |
Constructor and Description |
---|
Duty()
Create empty Duty
|
Duty(JDCConnection oConn,
java.lang.String sIdDuty)
Load Duty from database
|
Modifier and Type | Method and Description |
---|---|
boolean |
delete(JDCConnection oConn)
Delete Duty
Calls k_sp_del_duty stored procedure.
|
static boolean |
delete(JDCConnection oConn,
java.lang.String sDutyGUID)
Delete Duty
Calls k_sp_del_duty stored procedure.
|
Resource[] |
resources(JDCConnection oConn)
Get resources assigned to this duty
|
boolean |
store(JDCConnection oConn)
Store Duty
If gu_duty is null a new GUID is automatically assigned.
|
java.lang.String |
toXML(java.lang.String sIdent,
java.lang.String sDelim,
java.util.HashMap oAttrs)
Get an XML dump for the DBPersist values
|
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, load, load, 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 Duty()
public Duty(JDCConnection oConn, java.lang.String sIdDuty) throws java.sql.SQLException
java.sql.SQLException
public boolean delete(JDCConnection oConn) throws java.sql.SQLException
Delete Duty
Calls k_sp_del_duty stored procedure.public boolean store(JDCConnection oConn) throws java.sql.SQLException
Store Duty
If gu_duty is null a new GUID is automatically assigned.public Resource[] resources(JDCConnection oConn) throws java.lang.IllegalStateException, java.sql.SQLException
Get resources assigned to this duty
oConn
- Database Connectionjava.lang.IllegalStateException
java.sql.SQLException
public java.lang.String toXML(java.lang.String sIdent, java.lang.String sDelim, java.util.HashMap oAttrs)
DBPersist
Get an XML dump for the DBPersist values
sIdent
- Number of blank spaces for left padding at every line.sDelim
- Line delimiter (usually "\n" or "\r\n")oAttrs
- Map of values to be added as attributes of the toplevel nodepublic static boolean delete(JDCConnection oConn, java.lang.String sDutyGUID) throws java.sql.SQLException
Delete Duty
Calls k_sp_del_duty stored procedure.oConn
- Database ConnectionsDutyGUID
- GUID of Duty to be deletedjava.sql.SQLException