public class Attachment extends DBPersist
Contact Attachment
Copyright: Copyright (c) KnowGate 2003
Modifier and Type | Field and Description |
---|---|
static short |
ClassId |
Constructor and Description |
---|
Attachment() |
Modifier and Type | Method and Description |
---|---|
boolean |
delete(JDCConnection oConn)
Delete Attachment
The associated Product and physical files are automatically deleted as well.
|
boolean |
store(JDCConnection oConn)
Store Product as Contact Attachment.
|
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 boolean store(JDCConnection oConn) throws java.sql.SQLException
Store Product as Contact Attachment.
A Product object must have been stored at database prior to storing the
Attachment object.
The link between Product and Attachment is done just by setting the
gu_product field at Attachment object.
An Attachment progressive numeric identifier is automatically computed
for field pg_product of table k_contact_attachs if one is not explicitly set.
Automatically generates dt_modified DATE if not explicitly set.
public boolean delete(JDCConnection oConn) throws java.sql.SQLException
Delete Attachment
The associated Product and physical files are automatically deleted as well.