CustomerSalesOrderBeanServiceDataObject, java.lang.Cloneable, java.io.Serializable, java.lang.Comparable CustomerSalesOrderServiceDAO implements the ServiceDataObject
interface for the CustomerSalesOrder service data access and update object..
CustomerSalesOrderBean,
ServiceDataObject, Serialized
Form
| Field Summary |
|---|
| Fields inherited from class com.yourcompany.yourapp.client.CustomerSalesOrderBean |
|---|
| ADDRESSATTRIBUTEID, AREACODEATTRIBUTEID, ATTRIBUTECOUNT, CITYATTRIBUTEID, CLASSNAME, CLASSNAMEBASE, COMMENTSATTRIBUTEID, CREDITLIMITATTRIBUTEID, CUSTOMERIDATTRIBUTEID, customersalesorderremoteobject_, DATAACCESSOBHECTSUFFIX, FIELDDESCRIPTORKEYS, instancecount__, ISATTRIBUTEOBJECTKEY, MAXKEYCOUNT, MINKEYCOUNT, NAMEATTRIBUTEID, ORDERDATEATTRIBUTEID, ORDERIDATTRIBUTEID, PHONENUMBERATTRIBUTEID, registry_, rules_, SALESPERSONIDATTRIBUTEID, SHIPDATEATTRIBUTEID, STATEATTRIBUTEID, TOTALATTRIBUTEID, ZIPCODEATTRIBUTEID |
| Constructor Summary | |
|---|---|
CustomerSalesOrderServiceDAO()
Zero-arg default constructor. |
|
| Method Summary | |
|---|---|
java.lang.String[] |
create(java.lang.String[] _insertvalues)
Create a new single, specific data access object in the persistent store on hehalf of the web service. |
int |
getAttributeCount()
Gets the attribute count for CustomerSalesOrder service data object. |
int |
getDefiningAttributeID()
For a the CustomerSalesOrder service data object, return the zero-relative attribute offset that makes this object unique or distinct. |
java.util.List |
getFieldDescriptors(java.lang.String _iso639language)
Obtain the resource bundle for the CustomerSalesOrder web service data object for the specified language. |
java.lang.String |
getNextObjectKey(int _attributeid)
Obtain the next unique object key for an upcoming create() operation. |
boolean[] |
getObjectKeyOffsetsAsBooleanList()
The CustomerSalesOrder service data objects returns a boolean for each attribibute in the object, true if the attribute at the given offset is an object key,
false if not. |
java.lang.String |
inputEdit(java.lang.String[] _attributes)
Invokes the edit rules chain on _attributes. |
java.lang.String[] |
load(java.lang.String[] _objectkeylist)
Load a single, CustomerSalesOrder service data object from the persistent store for the web services. |
java.util.List |
load(java.lang.String[] _objectkeylist,
int _blocksize) Load a block of CustomerSalesOrder service data objects from the persistent store on behalf of the web service. |
void |
remove(java.lang.String[] _objectkeylist)
Remove a specific CustomerSalesOrder service data access object from the persistent store. |
void |
store(java.lang.String[] _expectedvaluelist,
java.lang.String[] _newvaluelist) Store changes made to existing CustomerSalesOrder service data objects. |
| Constructor Detail |
public CustomerSalesOrderServiceDAO()
| Method Detail |
public java.lang.String[] load(java.lang.String[] _objectkeylist)
throws DAOException
load in interface ServiceDataObject_objectkeylist - A fully qualified list of object keys to access the desired
Service Data Object. An element of this _objectkeylist
is needed for each object key. When mapping to relational databases, include
all primary keys for all base tables, in the event of a master-detail
relationship. For specifics, please refer to the Java Bean superclass
of the implementing class.
null of no object matching the specified key(s) is found.
java.lang.IllegalArgumentException - If an insufficient number of keys passed,
or the _objectkeylist is null.
DAOException - If any unrecoverable transport / remote server
exceptions occur or if a cluster recovery operation times out.
public java.util.List load(java.lang.String[] _objectkeylist,
int _blocksize)
throws DAOException
load in interface ServiceDataObject_objectkeylist - A partially qualified list of object keys to access
the desired Data Access Object. The number of keys in this list is the
value of the manifest constant MINKEYCOUNT in the implementing
class. For relational data stores, MINKEYCOUNTis the number of
primary keys in the highest level parent base table in a 1:n one-to-many
relationship, or the number of primary key columns that make up the
composite key in a persistent object that maps to a single table._blocksize - The maximum number of parent objects to return.
Be advised that all children of the parent objects will be recursively
located in the remote RDBMS and returned.
null if no matching objects
are located.
java.lang.IllegalArgumentException - If an insufficient number of keys passed,
or the _objectkeylist is null.
DAOException - If any unrecoverable transport / remote server
exceptions occur or if a cluster recovery operation times out.
public java.util.List getFieldDescriptors(java.lang.String _iso639language)
throws DAOException
getFieldDescriptors in interface ServiceDataObject_iso639language - THe ISO 639 language code, in lower case,
for the specified language, i.e. "en", "es", "fr", "de" and so on.
These resource bundles are created on the Interationalization tab
in the Generation options step of the PRO-Gen persistent object
code generation wizard.
_iso639language) and
the language specific string resources that correlate to a given key,
for the specified _iso639language.
java.lang.IllegalArgumentException - If __iso639language is
null, empty, or undefined.
DAOException - If an unrecoverable error occurs loading the
resources for the given language.
public int getAttributeCount()
throws DAOException
getAttributeCount in interface ServiceDataObject DAOException - If an error occurs obtaining the attribute count,
say, if the implementing class failes to load dynamically.
public java.lang.String inputEdit(java.lang.String[] _attributes)
throws DAOException
_attributes.
inputEdit in interface ServiceDataObject_attributes - A string[] list of object attributes to edit, one
element in the list for each attribute in the object, length
determined by @{link #getAttributeCount getAttributeCount()}.
null if all _attributes passed the
rules chains, otherwise an exception string that contains an edit error
indicating field and reason for edit failure.
DAOException - If an error occurs invoking the edit
rules chain upon _attributes.
public java.lang.String[] create(java.lang.String[] _insertvalues)
throws DAOException
create in interface ServiceDataObject_insertvalues - A list of object attributes / fields, length of which is
the same as the length of the string[] list returned by the single-object
load() method.
java.lang.IllegalArgumentException - If an insufficient number of insert value
elements is passed passed, or the _insertvalues reference is null,
of if the length of _insertvalues does not match the length
as returned by getAttributeCount()
DAOException - If any unrecoverable transport / remote server
exceptions occur or if a cluster recovery operation times out or if any
problem is detected serializing or persisting the new object.
public java.lang.String getNextObjectKey(int _attributeid)
throws DAOException
create()
operation. getNextObjectKey() is relevant only to data stores
that implement the notion of sequences.
getNextObjectKey in interface ServiceDataObject_attributeid - The zero-relative attributeid that corresponds to the
object key in the attribute[] list that makes the object unique.
create() operation.
java.lang.IllegalArgumentException - If _attributeid exceeds the number
of attributes in the implementing object or is less than zero.
DAOException - If the underlying persistent does not implement
sequences or if an unerecoverable error occurs accessing the physical
sequence object.
public void remove(java.lang.String[] _objectkeylist)
throws DAOException
remove in interface ServiceDataObject_objectkeylist - A fully qualified list of object keys to delete the desired
service data bject. Note that if the object does not exist, this routine
will return silently.
java.lang.IllegalArgumentException - If an insufficient number of keys passed,
or the _objectkeylist is null.
DAOException - If any unrecoverable transport / remote server
exceptions occur or if a cluster recovery operation times out.
public void store(java.lang.String[] _expectedvaluelist,
java.lang.String[] _newvaluelist)
throws DAOException
store in interface ServiceDataObject_expectedvaluelist - The expected state of the persistent
object in the relational store. These values, for example, would
represent the values returned by the initial load()
method, or the values the end-user believe he or she is changing._newvaluelist - Revised values, values not being changed
should be null; that is, only send modified attributes
in this list.
java.lang.IllegalArgumentException - If _expecteddbvaluelist or
_newvaluelist is not equal to the number of attributes in the
implementing object (as defined by getAttributeCount().
DAOException - If the elements in _expecteddbvaluelist
that are being mutated do not match the current state of the persistent object;
if an object lock can not be acquired to mutate the object, if the object has
been removed since the load() took place, or any unrecoverable
transport or network errors take place.public int getDefiningAttributeID()
getDefiningAttributeID in interface ServiceDataObjectgetDefiningAttributeID
in class CustomerSalesOrderBean
public boolean[] getObjectKeyOffsetsAsBooleanList()
true if the attribute at the given offset is an
object key, false if not.
getObjectKeyOffsetsAsBooleanList in interface ServiceDataObjecttrue
if the attribute at the given offset is an object key, false
if not.