com.knowgate.marketing
Class ActivityAudience
java.lang.Object
com.knowgate.dataobjs.DBPersist
com.knowgate.marketing.ActivityAudience
- All Implemented Interfaces:
- java.io.Serializable, java.util.Map
public class ActivityAudience
- extends DBPersist
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
|
Method Summary |
Address |
getAddress()
|
Contact |
getContact()
|
boolean |
load(JDCConnection oConn,
java.lang.Object[] PKVals)
Load the internal value set from a register at a database table |
boolean |
load(JDCConnection oConn,
java.lang.String sGuActivityAudience)
Load the internal value set from a register at a database table |
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. |
| Methods inherited from class com.knowgate.dataobjs.DBPersist |
allcaps, allcaps, changelog, clear, clone, containsKey, containsValue, delete, 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 |
CONFIRMED
public static final short CONFIRMED
- See Also:
- Constant Field Values
NOTCONFIRMED
public static final short NOTCONFIRMED
- See Also:
- Constant Field Values
REFUSED
public static final short REFUSED
- See Also:
- Constant Field Values
ClassId
public static final short ClassId
- See Also:
- Constant Field Values
ActivityAudience
public ActivityAudience()
getAddress
public Address getAddress()
getContact
public Contact getContact()
load
public boolean load(JDCConnection oConn,
java.lang.Object[] PKVals)
throws java.sql.SQLException
- Description copied from class:
DBPersist
Load the internal value set from a register at a database table
- Overrides:
load in class DBPersist
- Parameters:
oConn - Database ConnectionPKVals - Primary key values in order of appearance
- Returns:
- true if a register was found, false if no register was
found with such primary key.
- Throws:
java.sql.SQLException
load
public boolean load(JDCConnection oConn,
java.lang.String sGuActivityAudience)
throws java.sql.SQLException
- Description copied from class:
DBPersist
Load the internal value set from a register at a database table
- Overrides:
load in class DBPersist
- Parameters:
oConn - JDCConnectionsGuActivityAudience - String Primary key value
- Returns:
- true if a register was found, false if no register was
found with such primary key.
- Throws:
java.sql.SQLException
store
public boolean store(JDCConnection oConn)
throws java.sql.SQLException
- Description copied from class:
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.
- Overrides:
store in class DBPersist
- Parameters:
oConn - Database Connection
- Returns:
- boolean true if register was stored for the first time,
false if register already existed.
- Throws:
java.sql.SQLException