public class MicrositeDB extends DBPersist
Microsite database index
Modifier and Type | Field and Description |
---|---|
static short |
ClassId |
static short |
TYPE_HTML |
static short |
TYPE_SURVEY |
static short |
TYPE_XSL |
Constructor and Description |
---|
MicrositeDB() |
MicrositeDB(JDCConnection oConn,
java.lang.String sMicrositeGUID) |
Modifier and Type | Method and Description |
---|---|
boolean |
existsFile() |
static java.lang.String |
filePath(JDCConnection oConn,
java.lang.String sMicrositeGUID)
Get relative path to XML metadata file
Relative path is readed from field path_metadata of table k_microsites.
|
boolean |
load(JDCConnection oConn,
java.lang.Object[] aPK)
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.
|
allcaps, allcaps, clear, clone, columns, containsKey, containsValue, delete, 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, 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 static final short TYPE_XSL
public static final short TYPE_HTML
public static final short TYPE_SURVEY
public MicrositeDB()
public MicrositeDB(JDCConnection oConn, java.lang.String sMicrositeGUID) throws java.sql.SQLException
java.sql.SQLException
public boolean load(JDCConnection oConn, java.lang.Object[] aPK) throws java.sql.SQLException
DBPersist
Load the internal value set from a register at a database table
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 boolean existsFile()
public static java.lang.String filePath(JDCConnection oConn, java.lang.String sMicrositeGUID) throws java.sql.SQLException
Get relative path to XML metadata file
Relative path is readed from field path_metadata of table k_microsites.oConn
- Database ConnectionsMicrositeGUID
- GUID of Microsite witch metadata file relative path is to be retrievedjava.sql.SQLException