|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.knowgate.dataobjs.DBPersist
com.knowgate.dataxslt.db.PageSetDB
public class PageSetDB
PageSet database index
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Field Summary | |
|---|---|
static short |
ClassId
|
| Fields inherited from class com.knowgate.dataobjs.DBPersist |
|---|
AllVals, sAuditCls, sAuditUsr, sTransactId |
| Constructor Summary | |
|---|---|
PageSetDB()
|
|
PageSetDB(JDCConnection oConn,
java.lang.String sPageSetGUID)
|
|
| Method Summary | |
|---|---|
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 sPageSetGUID)
|
boolean |
existsFile()
|
static java.lang.String |
filePath(JDCConnection oConn,
java.lang.String sPageSetGUID)
Get relative path to XML data file Relative path is readed from field path_data of table k_pagesets. |
boolean |
load(JDCConnection oConn,
java.lang.Object[] aPK)
Load the internal value set from a register at a database table |
void |
setPage(JDCConnection oConn,
java.lang.String sIdPage,
int iPgPage,
java.lang.String sTlPage,
java.lang.String sPathPage)
|
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, 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, getStringNull, getTable, getTable, getTableName, getTime, getTimeOfDay, getTimestamp, getUIdFromName, isEmpty, isNull, iterator, keySet, load, 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, setAuditTransact, setAuditUser, 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 |
| Field Detail |
|---|
public static final short ClassId
| Constructor Detail |
|---|
public PageSetDB()
public PageSetDB(JDCConnection oConn,
java.lang.String sPageSetGUID)
throws java.sql.SQLException
java.sql.SQLException| Method Detail |
|---|
public boolean load(JDCConnection oConn,
java.lang.Object[] aPK)
throws java.sql.SQLException
DBPersistLoad the internal value set from a register at a database table
load in class DBPersistoConn - Database ConnectionaPK - Primary key values in order of appearance
java.sql.SQLException
public boolean store(JDCConnection oConn)
throws java.sql.SQLException
DBPersistStore 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.
store in class DBPersistoConn - Database Connection
java.sql.SQLException
public boolean delete(JDCConnection oConn)
throws java.sql.SQLException
DBPersistDelete a register from database
The deleted register will be the one matching this DBPersist primary key, as set at constructor or load() method.
delete in class DBPersistoConn - Database connection
java.sql.SQLExceptionpublic boolean existsFile()
public void setPage(JDCConnection oConn,
java.lang.String sIdPage,
int iPgPage,
java.lang.String sTlPage,
java.lang.String sPathPage)
throws java.sql.SQLException
java.sql.SQLException
public static java.lang.String filePath(JDCConnection oConn,
java.lang.String sPageSetGUID)
throws java.sql.SQLException
Get relative path to XML data file
Relative path is readed from field path_data of table k_pagesets.
oConn - Database ConnectionsPageSetGUID - GUID of PageSet witch data file relative path is to be retrieved
java.sql.SQLException
public static boolean delete(JDCConnection oConn,
java.lang.String sPageSetGUID)
throws java.sql.SQLException
java.sql.SQLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||