Java Doc for OrderEntryClerk.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas » stests » appli » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » JOnAS 4.8.6 » org.objectweb.jonas.stests.appli 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.objectweb.jonas.stests.appli.OrderEntryClerk

OrderEntryClerk
public interface OrderEntryClerk extends EJBObject(Code)
OrderEntryClerk remote interface




Method Summary
public  voidaddOrderLine(Integer iid, int quantity)
     Create an order detail (order line).
public  voidcreateAllTables()
    
public  VectorfindAllCustomers()
    
public  VectorfindAllItems()
    
public  VectorfindRangeOfItems(Integer lowID, Integer highID)
    
public  String[]getCustomerForOrder(String wid, int did, int oid)
     Get the cutomer for a given order.
public  VectorgetItemsForOrder(String wid, int did, int oid)
     Get the items list for a given order.
public  StringplaceOrder()
     Place an order.
public  voidsetCustomer(Integer cid)
     Set the current cutomer for this stateful Session Bean.
public  voidundoAll()
    
public  booleanverifyCustomer(Integer cid)
     Verify the existence of a customer in this districts tables.



Method Detail
addOrderLine
public void addOrderLine(Integer iid, int quantity) throws RemoteException(Code)
Create an order detail (order line). Add an item and quantity to the order.


Parameters:
  iid - Item ID to set (Mandatory)
Parameters:
  quantity - amount of the item to be placed on order (Mandatory) void
exception:
  java.rmi.RemoteException - Remote exception




createAllTables
public void createAllTables() throws RemoteException, CpwejbException(Code)



findAllCustomers
public Vector findAllCustomers() throws RemoteException(Code)
Retrieve all available customers Vector
exception:
  java.rmi.RemoteException - Remote exception



findAllItems
public Vector findAllItems() throws RemoteException(Code)
Find all available items

Note: This method will return a Vector of String Arrays each String Array contains:

  • String 0 - Item ID
  • String 1 - Item Description
  • String 2 - Item Price
  • String 3 - Item Quantity in Stock
  • String 4 - Item Data
Vector
exception:
  java.rmi.RemoteException - Remote exception



findRangeOfItems
public Vector findRangeOfItems(Integer lowID, Integer highID) throws RemoteException(Code)
Retrieve available items within a range of item IDs

Note: This method will return a Vector of String Arrays each String Array contains:

  • String 0 - Item ID
  • String 1 - Item Description
  • String 2 - Item Price
  • String 3 - Item Quantity in Stock
  • String 4 - Item Data
Vector
exception:
  java.rmi.RemoteException - Remote exception



getCustomerForOrder
public String[] getCustomerForOrder(String wid, int did, int oid) throws RemoteException, CpwejbException(Code)
Get the cutomer for a given order. The order is located by its warehouse, district, and order number. The returned information is:
  • String 0 - Customer ID
  • String 1 - Customer first name
  • String 2 - Customer initials
  • String 3 - Customer last name


Parameters:
  wid - Warehouse ID
Parameters:
  did - District ID
Parameters:
  oid - Order ID String
exception:
  CpwejbException - Application exception
exception:
  java.rmi.RemoteException - Remote exception




getItemsForOrder
public Vector getItemsForOrder(String wid, int did, int oid) throws RemoteException, CpwejbException(Code)
Get the items list for a given order. The order is located by its warehouse, district, and order number. The return information is:
  • String 0 - Order line number
  • String 1 - Item description
  • String 2 - Item quanity
  • String 3 - Order line amount


Parameters:
  wid - Warehouse ID
Parameters:
  did - District ID
Parameters:
  oid - Order ID Vector
exception:
  CpwejbException - Application exception
exception:
  java.rmi.RemoteException - Remote exception




placeOrder
public String placeOrder() throws RemoteException, CpwejbException(Code)
Place an order. If successful, this method will return the order number

String
exception:
  CpwejbException - Application exception
exception:
  java.rmi.RemoteException - Remote exception




setCustomer
public void setCustomer(Integer cid) throws RemoteException, CpwejbException(Code)
Set the current cutomer for this stateful Session Bean.


Parameters:
  cid - Customer ID to set (Mandatory) void
exception:
  CpwejbException - Application exception
exception:
  java.rmi.RemoteException - Remote exception




undoAll
public void undoAll() throws RemoteException(Code)
Reset the OrderEntryClerk state ie the current customer and the current order



verifyCustomer
public boolean verifyCustomer(Integer cid) throws RemoteException(Code)
Verify the existence of a customer in this districts tables.


Parameters:
  cid - Customer ID to check for (Mandatory) boolean
exception:
  java.rmi.RemoteException - Remote exception




www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.