public class AdHocMailing extends DBPersist
Modifier and Type | Field and Description |
---|---|
static short |
ClassId |
Constructor and Description |
---|
AdHocMailing() |
AdHocMailing(JDCConnection oConn,
java.lang.String sGuAdHocMailing) |
Modifier and Type | Method and Description |
---|---|
void |
addBlackList(java.lang.String[] aEMails) |
void |
addRecipients(java.lang.String[] aEMails) |
void |
clearRecipients() |
void |
clone(JDCConnection oConn,
java.lang.String sProtocol,
java.lang.String sWorkAreasPut,
AdHocMailing oSource) |
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.
|
java.lang.String |
getAllowPattern() |
java.lang.String[] |
getBlackList() |
java.lang.String |
getDenyPattern() |
java.lang.String[] |
getRecipients() |
boolean |
load(JDCConnection oConn,
int iPgMailing,
java.lang.String sGuWorkArea) |
void |
setAllowPattern(java.lang.String sAllowPattern) |
void |
setDenyPattern(java.lang.String sDenyPattern) |
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.
|
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 AdHocMailing()
public AdHocMailing(JDCConnection oConn, java.lang.String sGuAdHocMailing) throws java.sql.SQLException
java.sql.SQLException
public boolean load(JDCConnection oConn, int iPgMailing, java.lang.String sGuWorkArea) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String[] getBlackList()
public void addBlackList(java.lang.String[] aEMails) throws org.apache.oro.text.regex.MalformedPatternException
org.apache.oro.text.regex.MalformedPatternException
public void clearRecipients()
public java.lang.String[] getRecipients()
public java.lang.String getAllowPattern()
public void setAllowPattern(java.lang.String sAllowPattern)
public java.lang.String getDenyPattern()
public void setDenyPattern(java.lang.String sDenyPattern)
public void addRecipients(java.lang.String[] aEMails) throws java.lang.ArrayIndexOutOfBoundsException, org.apache.oro.text.regex.MalformedPatternException
java.lang.ArrayIndexOutOfBoundsException
org.apache.oro.text.regex.MalformedPatternException
public boolean store(JDCConnection oConn) throws java.sql.SQLException
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.
public void clone(JDCConnection oConn, java.lang.String sProtocol, java.lang.String sWorkAreasPut, AdHocMailing oSource) throws java.io.IOException, java.sql.SQLException
java.io.IOException
java.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.