|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.knowgate.dataobjs.DBPersist
com.knowgate.addrbook.Fellow
public class Fellow
Enterprise Fellow
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Field Summary | |
|---|---|
static short |
ClassId
|
| Fields inherited from class com.knowgate.dataobjs.DBPersist |
|---|
AllVals, sAuditCls, sAuditUsr, sTransactId |
| Constructor Summary | |
|---|---|
Fellow()
|
|
Fellow(JDCConnection oConn,
java.lang.String sFellowId)
Construct object and load fields from database. |
|
Fellow(java.lang.String sFellowId)
Construct object and set gu_fellow field. |
|
| Method Summary | |
|---|---|
void |
clone(DBPersist oUsr)
Create a fellow from a ACLUser or from another fellow
The fellow is internally stored at this object but NOT persisted to database. |
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 sFellowGUID)
Delete Fellow Calls k_sp_del_fellow stored procedure |
java.lang.String |
getMeetingAt(JDCConnection oConn,
java.util.Date dtAt)
Get meeting for this user at the given date and time (if any) If the fellow is attending to several meetings at the given time, only the first one is returned. |
java.lang.String |
getMeetingAt(JDCConnection oConn,
java.util.Date dtFrom,
java.util.Date dtTo)
Get meeting for this user at the given time interval (if any) If the fellow is attending to several meetings at the given time, only the first one is returned. |
byte[] |
getPhoto(java.sql.Connection oConn)
Get Fellow Photo as a byte array |
boolean |
hasPhoto(JDCConnection oConn)
|
boolean |
isAvailableAt(JDCConnection oConn,
java.util.Date dtAt)
Check whether this Fellow is available at the given time This function checks both the Working Calendar for the fellow (if any) and the meetings to which he attends, for determining if he is available. |
boolean |
isAvailableAt(JDCConnection oConn,
java.util.Date dtFrom,
java.util.Date dtTo)
Check whether this Fellow is available at the given time interval This function checks both the Working Calendar for the fellow (if any) and the meetings to which he attends, for determining if he is available. |
boolean |
load(java.sql.Connection oConn,
java.lang.Object[] PKVals)
Load Fellow This method extends the base DBPersist.load() by reading data from k_fellows, k_fellows_attach and k_users and putting all columns into the internal column Map of this instance. |
boolean |
load(JDCConnection oConn,
java.lang.Object[] PKVals)
Load Fellow This method extends the base DBPersist.load() by reading data from k_fellows, k_fellows_attach and k_users and putting all columns into the internal column Map of this instance. |
boolean |
load(JDCConnection oConn,
java.lang.String sGuFellow)
Load Fellow This method extends the base DBPersist.load() by reading data from k_fellows, k_fellows_attach and k_users and putting all columns into the internal column Map of this instance. |
boolean |
store(JDCConnection oConn)
Store Fellow This method extends the base DBPersist.load() by automatically creating a value for gu_fellow if none is suplied and updating dt_modified to current date. |
java.lang.String |
vCard(java.sql.Connection oConn)
|
| Methods inherited from class com.knowgate.dataobjs.DBPersist |
|---|
allcaps, allcaps, changelog, clear, containsKey, containsValue, entrySet, exists, get, get, getAuditClassName, getCreationDate, getDate, getDateFormated, getDateShort, getDateTime, getDateTime24, getDecimal, getDecimalFormated, getDecimalFormated, getDouble, getDoubleFormated, getFloat, getFloatFormated, getInt, getInteger, getIntervalPart, getItemMap, getItems, getMoney, getShort, getSQLDate, getSQLTime, getString, getStringHtml, getStringNull, getTable, getTable, getTableName, getTime, getTimeOfDay, getTimestamp, getUIdFromName, isEmpty, isNull, iterator, keySet, parseXML, 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, size, toLowerCase, toUpperCase, toXML, toXML, toXML, toXML, values |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Field Detail |
|---|
public static final short ClassId
| Constructor Detail |
|---|
public Fellow()
public Fellow(java.lang.String sFellowId)
sFellowId - Fellow Unique Identifier
public Fellow(JDCConnection oConn,
java.lang.String sFellowId)
throws java.sql.SQLException
Construct object and load fields from database.
oConn - database ConnectionsFellowId - Fellow Unique Identifier
java.sql.SQLException| Method Detail |
|---|
public void clone(DBPersist oUsr)
Create a fellow from a ACLUser or from another fellow
The fellow is internally stored at this object but NOT persisted to database.
clone in class DBPersistoUsr - ACLUser Identifier or Fellow identifier.
public boolean hasPhoto(JDCConnection oConn)
throws java.sql.SQLException
oConn - Database Connection
java.sql.SQLException
public byte[] getPhoto(java.sql.Connection oConn)
throws java.sql.SQLException
Get Fellow Photo as a byte array
oConn - JDBC Connection
java.sql.SQLException
public boolean load(java.sql.Connection oConn,
java.lang.Object[] PKVals)
throws java.sql.SQLException
Load Fellow
This method extends the base DBPersist.load() by reading data from k_fellows, k_fellows_attach and k_users and putting all columns into the internal column Map of this instance.
oConn - Database connectionPKVals - A String array with a single element containing GUID of Fellow to be loaded
java.sql.SQLException
public boolean load(JDCConnection oConn,
java.lang.Object[] PKVals)
throws java.sql.SQLException
Load Fellow
This method extends the base DBPersist.load() by reading data from k_fellows, k_fellows_attach and k_users and putting all columns into the internal column Map of this instance.
load in class DBPersistoConn - Database connectionPKVals - A String array with a single element containing GUID of Fellow to be loaded
java.sql.SQLException
public boolean load(JDCConnection oConn,
java.lang.String sGuFellow)
throws java.sql.SQLException
Load Fellow
This method extends the base DBPersist.load() by reading data from k_fellows, k_fellows_attach and k_users and putting all columns into the internal column Map of this instance.
load in class DBPersistoConn - Database connectionsGuFellow - GUID of Fellow to be loaded
java.sql.SQLException
public boolean store(JDCConnection oConn)
throws java.sql.SQLException
Store Fellow
This method extends the base DBPersist.load() by automatically creating a value for gu_fellow if none is suplied and updating dt_modified to current date. It does not write any data to k_users nor k_fellows_attach tables.
store in class DBPersistoConn - Database connection
java.sql.SQLException
public boolean isAvailableAt(JDCConnection oConn,
java.util.Date dtAt)
throws java.sql.SQLException
Check whether this Fellow is available at the given time
This function checks both the Working Calendar for the fellow (if any) and the meetings to which he attends, for determining if he is available.
oConn - Database ConnectiondtAt - Date and Time to be checked for availability
java.sql.SQLException
public boolean isAvailableAt(JDCConnection oConn,
java.util.Date dtFrom,
java.util.Date dtTo)
throws java.sql.SQLException
Check whether this Fellow is available at the given time interval
This function checks both the Working Calendar for the fellow (if any) and the meetings to which he attends, for determining if he is available.
oConn - Database ConnectiondtFrom - Start Date and Time to be checked for availabilitydtTo - End Date and Time to be checked for availability
java.sql.SQLException
public java.lang.String getMeetingAt(JDCConnection oConn,
java.util.Date dtAt)
throws java.sql.SQLException
Get meeting for this user at the given date and time (if any)
If the fellow is attending to several meetings at the given time, only the first one is returned.
oConn - Database ConnectiondtAt - Date and Time to be checked for availability
java.sql.SQLException
public java.lang.String getMeetingAt(JDCConnection oConn,
java.util.Date dtFrom,
java.util.Date dtTo)
throws java.sql.SQLException
Get meeting for this user at the given time interval (if any)
If the fellow is attending to several meetings at the given time, only the first one is returned.
oConn - Database ConnectiondtFrom - Start Date and Time to be checked for availabilitydtTo - End Date and Time to be checked for availability
java.sql.SQLException
public boolean delete(JDCConnection oConn)
throws java.sql.SQLException
DBPersistDelete a register from database
The deleted register will be the one matching this DBPersist primary key, as set at constructor or load() method.
delete in class DBPersistoConn - Database connection
java.sql.SQLException
public java.lang.String vCard(java.sql.Connection oConn)
throws java.sql.SQLException
java.sql.SQLException
public static boolean delete(JDCConnection oConn,
java.lang.String sFellowGUID)
throws java.sql.SQLException
Delete Fellow
Calls k_sp_del_fellow stored procedure
oConn - Database ConnectionsFellowGUID - Identifier of Fellow to delete
java.sql.SQLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||