public class DespatchAdvice extends AbstractOrder
Modifier and Type | Field and Description |
---|---|
static short |
ClassId |
Constructor and Description |
---|
DespatchAdvice() |
DespatchAdvice(java.lang.String sDespacthAdviceId) |
Modifier and Type | Method and Description |
---|---|
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
|
addProduct, addProduct, addProduct, computeSubtotal, computeSubtotal, computeTaxes, computeTaxes, computeTotal, computeTotal, getBillAddress, getCurrencyFormat, getLines, getLocale, removeAllProducts, removeProduct, setCurrencyFormat, setLocale, setLocale, setLocale
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, 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, values
public static final short ClassId
public DespatchAdvice()
public DespatchAdvice(java.lang.String sDespacthAdviceId)
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 throwngetLines
in class AbstractOrder
oConn
- JDCConnectionjava.sql.SQLException
java.lang.NullPointerException
public 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 nullpublic boolean load(JDCConnection oConn, java.lang.Object[] PKVals) throws java.sql.SQLException
load
in class AbstractOrder
oConn
- 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
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.public boolean delete(JDCConnection oConn) throws java.sql.SQLException
Delete Dispatch Note
public java.lang.String toXML() throws java.lang.IllegalStateException
Get despatch advice as an XML document
Character encoding is set to UTF-8toXML
in class DBPersist
java.lang.IllegalStateException
- if despatch advice lines are not loaded or buyer is not set or seller is not setpublic 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-8toXML
in class DBPersist
sIdent
- 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 setpublic 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-8toXML
in class DBPersist
sIdent
- 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 setpublic 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-8oConn
- JDCConnection Openend JDBC database connectionsLocale
- String Locale for output formattingjava.lang.IllegalStateException
- if invoice lines are not loaded or buyer is not set or seller is not setpublic static int nextVal(JDCConnection oConn, java.lang.String sGuWorkArea) throws java.sql.SQLException
oConn
- JDCConnection JDBC ConnectionsGuWorkArea
- String WorkArea GUIDjava.sql.SQLException