public class Fellow extends DBPersist
Enterprise Fellow
Modifier and Type | Field and Description |
---|---|
static short |
ClassId |
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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) |
allcaps, allcaps, clear, 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 Fellow()
public Fellow(java.lang.String sFellowId)
sFellowId
- Fellow Unique Identifierpublic Fellow(JDCConnection oConn, java.lang.String sFellowId) throws java.sql.SQLException
Construct object and load fields from database.
oConn
- database ConnectionsFellowId
- Fellow Unique Identifierjava.sql.SQLException
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.
public boolean hasPhoto(JDCConnection oConn) throws java.sql.SQLException
oConn
- Database Connectionjava.sql.SQLException
public byte[] getPhoto(java.sql.Connection oConn) throws java.sql.SQLException
Get Fellow Photo as a byte array
oConn
- JDBC Connectionjava.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 loadedjava.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.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.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.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 availabilityjava.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 availabilityjava.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 availabilityjava.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 availabilityjava.sql.SQLException
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 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 deletejava.sql.SQLException