|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.knowgate.dataobjs.DBPersist
com.knowgate.hipergate.AbstractOrder
com.knowgate.hipergate.DespatchAdvice
public class DespatchAdvice
Despatch Advice
| 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.hipergate.AbstractOrder |
|---|
oBuyer, oLines, oSeller, sLinesTable, sPrimaryKey |
| Fields inherited from class com.knowgate.dataobjs.DBPersist |
|---|
AllVals, sAuditCls, sAuditUsr, sTransactId |
| Constructor Summary | |
|---|---|
DespatchAdvice()
|
|
DespatchAdvice(java.lang.String sDespacthAdviceId)
|
|
| Method Summary | |
|---|---|
boolean |
delete(JDCConnection oConn)
Delete Dispatch Note |
DBSubset |
getLines(JDCConnection oConn)
Get a DBSubset with all lines of this Dispatch Note The Despatch Advice must have been previously loaded or a NullPointerException will be thrown |
java.lang.String[] |
getOrders()
Get Orders for this Invoice Orders can only be get if Invoice has been previously loaded, else this method will return null |
boolean |
load(JDCConnection oConn,
java.lang.Object[] PKVals)
Load Despatch Advice with its associated Addresses |
boolean |
load(JDCConnection oConn,
java.lang.String sGuDespatchAdvice)
Load Despatch Advice with its associated Addresses |
static int |
nextVal(JDCConnection oConn,
java.lang.String sGuWorkArea)
Get next value for field pg_despatch in a given WorkArea |
boolean |
store(JDCConnection oConn)
Store despatch note If no value for gu_despatch is specified then a new one is automatically assigned. |
java.lang.String |
toXML()
Get despatch advice as an XML document Character encoding is set to UTF-8 |
java.lang.String |
toXML(JDCConnection oConn,
java.lang.String sLocale)
Get despatch advice as an XML document Character encoding is set to UTF-8 |
java.lang.String |
toXML(java.lang.String sIdent)
Get despatch advice as an XML document Character encoding is set to UTF-8 |
java.lang.String |
toXML(java.lang.String sIdent,
java.lang.String sDelim)
Get despatch advice as an XML document Character encoding is set to UTF-8 |
| Methods inherited from class com.knowgate.hipergate.AbstractOrder |
|---|
addProduct, addProduct, addProduct, computeSubtotal, computeSubtotal, computeTaxes, computeTaxes, computeTotal, computeTotal, formatCurrency, formatPercentage, getBillAddress, getCurrencyFormat, getDecimalFormated, getFloatFormated, getLines, getLocale, removeAllProducts, removeProduct, setCurrencyFormat, setLocale, setLocale, setLocale |
| 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, 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, 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 DespatchAdvice()
public DespatchAdvice(java.lang.String sDespacthAdviceId)
| Method Detail |
|---|
public DBSubset getLines(JDCConnection oConn)
throws java.sql.SQLException,
java.lang.NullPointerException
Get a DBSubset with all lines of this Dispatch Note
The Despatch Advice must have been previously loaded or a NullPointerException will be thrown
getLines in class AbstractOrderoConn - JDCConnection
java.sql.SQLException
java.lang.NullPointerExceptionpublic java.lang.String[] getOrders()
Get Orders for this Invoice
Orders can only be get if Invoice has been previously loaded, else this method will return null
public boolean load(JDCConnection oConn,
java.lang.Object[] PKVals)
throws java.sql.SQLException
load in class AbstractOrderoConn - JDCConnectionPKVals - Array with a single element Object[1]{(String)gu_despacth}
java.sql.SQLException
public boolean load(JDCConnection oConn,
java.lang.String sGuDespatchAdvice)
throws java.sql.SQLException
load in class DBPersistoConn - JDCConnectionsGuDespatchAdvice - Despatch Advice GUID
java.sql.SQLException
public boolean store(JDCConnection oConn)
throws java.sql.SQLException
Store despatch note
If no value for gu_despatch is specified then a new one is automatically assigned.
store in class DBPersistoConn - JDCConnection
java.sql.SQLException
public boolean delete(JDCConnection oConn)
throws java.sql.SQLException
Delete Dispatch Note
delete in class DBPersistoConn - Database Connection
java.sql.SQLException
public java.lang.String toXML()
throws java.lang.IllegalStateException
Get despatch advice as an XML document
Character encoding is set to UTF-8
toXML in class DBPersistjava.lang.IllegalStateException - if despatch advice lines are not loaded or buyer is not set or seller is not set
public java.lang.String toXML(java.lang.String sIdent,
java.lang.String sDelim)
throws java.lang.IllegalStateException
Get despatch advice as an XML document
Character encoding is set to UTF-8
toXML in class DBPersistsIdent - Number of blank spaces for left padding at every line.sDelim - Line delimiter (usually "\n" or "\r\n")
java.lang.IllegalStateException - if despatch advice lines are not loaded or buyer is not set or seller is not set
public java.lang.String toXML(java.lang.String sIdent)
throws java.lang.IllegalStateException
Get despatch advice as an XML document
Character encoding is set to UTF-8
toXML in class DBPersistsIdent - Number of blank spaces for left padding at every line.
java.lang.IllegalStateException - if despatch advice lines are not loaded or buyer is not set or seller is not set
public java.lang.String toXML(JDCConnection oConn,
java.lang.String sLocale)
throws java.lang.IllegalStateException
Get despatch advice as an XML document
Character encoding is set to UTF-8
oConn - JDCConnection Openend JDBC database connectionsLocale - String Locale for output formatting
java.lang.IllegalStateException - if invoice lines are not loaded or buyer is not set or seller is not set
public static int nextVal(JDCConnection oConn,
java.lang.String sGuWorkArea)
throws java.sql.SQLException
oConn - JDCConnection JDBC ConnectionsGuWorkArea - String WorkArea GUID
java.sql.SQLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||