public class Meeting extends DBPersist
Meeting for Fellows
Modifier and Type | Field and Description |
---|---|
static short |
ClassId |
Constructor and Description |
---|
Meeting() |
Meeting(JDCConnection oConn,
java.lang.String sMeetingId) |
Meeting(java.lang.String sMeetingId) |
Modifier and Type | Method and Description |
---|---|
void |
addAttendant(JDCConnection oConn,
java.lang.String sAttendantId)
Assign Attendant to Meeting
Attendants may be Fellows or Contacts
If Attendant was already assigned an SQLException in thrown.
|
void |
clearAttendants(JDCConnection oConn)
Remove all attendants to Meeting
Delete registers from k_x_meeting_fellow and k_x_meeting_contact tables
|
void |
clearRooms(JDCConnection oConn)
Remove all Rooms and other booked Resources for Meeting
Delete registers from k_x_meeting_room
|
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 sMeetingGUID)
Delete Meeting
Calls k_sp_del_meeting stored procedure
|
DBSubset |
getContacts(JDCConnection oConn)
External Enterprise Contacts Attending to this meeting
Retrieves Contacts from k_x_meeting_contact table.
|
DBSubset |
getFellows(JDCConnection oConn)
Get Fellows attending to this Meeting
Retrieves Fellows from k_x_meeting_fellow table.
|
java.lang.String |
getHour() |
java.lang.String |
getHourEnd() |
java.lang.String |
getMinute() |
java.lang.String |
getMinuteEnd() |
DBSubset |
getRooms(JDCConnection oConn)
Get Rooms and other Resources reserved for thsi meeting<.
|
java.util.Date |
lastModified() |
void |
repeat(JDCConnection oConn,
int nDaysGap,
int nTimes,
boolean bSkipHolidays)
Make copies of this meeting
|
void |
setAttendant(JDCConnection oConn,
java.lang.String sAttendantId)
Assign Attendant to Meeting
Attendants may be Fellows or Contacts
If Attendant was already assigned, meeting dates are updated and no error is raised.
|
void |
setRoom(JDCConnection oConn,
java.lang.String sRoomNm)
Assign a Room or Resource to a Meeting
If Room was already assigned, booking dates (dt_start and dt_end at k_x_meeting_room)
are updated and no error is raised.
|
boolean |
store(JDCConnection oConn)
Store meeting
gu_meeting is automatically assigned if not set for new meetings
dt_modified is automatically updated for existing meetings bo_private is set to zero if value for it is not specified Since version 4.0, as a shortcut, if a single value for nm_room property is set, then it is added to k_x_meeting_room table without need of calling setRoom() method |
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 Meeting()
public Meeting(java.lang.String sMeetingId)
public Meeting(JDCConnection oConn, java.lang.String sMeetingId) throws java.sql.SQLException
java.sql.SQLException
public java.util.Date lastModified()
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 boolean store(JDCConnection oConn) throws java.sql.SQLException
Store meeting
gu_meeting is automatically assigned if not set for new meetingspublic DBSubset getFellows(JDCConnection oConn) throws java.sql.SQLException
Get Fellows attending to this Meeting
Retrieves Fellows from k_x_meeting_fellow table.
oConn
- Database ConnectionDBSubset
with 5 columns {gu_fellow,tx_name,tx_surname,de_title,tx_email}java.sql.SQLException
Fellow}
public DBSubset getContacts(JDCConnection oConn) throws java.sql.SQLException
External Enterprise Contacts Attending to this meeting
Retrieves Contacts from k_x_meeting_contact table.
oConn
- Database ConnectionDBSubset
with 3 columns {gu_contact,tx_name,tx_surname}java.sql.SQLException
Contact}
public DBSubset getRooms(JDCConnection oConn) throws java.sql.SQLException
Get Rooms and other Resources reserved for thsi meeting<.
Retrieves Rooms from k_x_meeting_room table.
oConn
- Database ConnectionDBSubset
with 5 columns {nm_room,tp_room,tx_company,tx_location,tx_comments}java.sql.SQLException
public java.lang.String getHour()
public java.lang.String getMinute()
public java.lang.String getHourEnd()
public java.lang.String getMinuteEnd()
public void clearAttendants(JDCConnection oConn) throws java.sql.SQLException
Remove all attendants to Meeting
Delete registers from k_x_meeting_fellow and k_x_meeting_contact tables
oConn
- Database Connectionjava.sql.SQLException
public void clearRooms(JDCConnection oConn) throws java.sql.SQLException
Remove all Rooms and other booked Resources for Meeting
Delete registers from k_x_meeting_roomoConn
- Database Connectionjava.sql.SQLException
public void setRoom(JDCConnection oConn, java.lang.String sRoomNm) throws java.sql.SQLException
Assign a Room or Resource to a Meeting
If Room was already assigned, booking dates (dt_start and dt_end at k_x_meeting_room) are updated and no error is raised.
oConn
- Database ConnectionsRoomNm
- Room Namejava.sql.SQLException
public void addAttendant(JDCConnection oConn, java.lang.String sAttendantId) throws java.sql.SQLException
Assign Attendant to Meeting
Attendants may be Fellows or Contacts
If Attendant was already assigned an SQLException in thrown.
oConn
- Database ConnectionsAttendantId
- Fellow
or Contact
Unique Identifierjava.sql.SQLException
public void setAttendant(JDCConnection oConn, java.lang.String sAttendantId) throws java.sql.SQLException
Assign Attendant to Meeting
Attendants may be Fellows or Contacts
If Attendant was already assigned, meeting dates are updated and no error is raised.
oConn
- Database ConnectionsAttendantId
- Fellow
or Contact
Unique Identifierjava.sql.SQLException
public void repeat(JDCConnection oConn, int nDaysGap, int nTimes, boolean bSkipHolidays) throws java.sql.SQLException, java.lang.IllegalArgumentException
oConn
- JDCConnectionnDaysGap
- int Frecuency in days. One means that the meeting is repeated
daily for the number of specified times. Seven means that the meeting is repeated weekly.
Twenty eight is approximately once per month (every 4 weeks).nTimes
- int Number of times to repeat the meetingjava.sql.SQLException
java.lang.IllegalArgumentException
- if nDaysGap<=0 or nTimes<0public static boolean delete(JDCConnection oConn, java.lang.String sMeetingGUID) throws java.sql.SQLException
Delete Meeting
Calls k_sp_del_meeting stored procedureoConn
- Database ConnectionsMeetingGUID
- Meeting Unique Identifierjava.sql.SQLException