Source Code Cross Referenced for PersistDataQueueObject.java in  » Groupware » Data-share » org » datashare » 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 » Groupware » Data share » org.datashare 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /* ----- BEGIN LICENSE BLOCK -----
002:         * Version: MPL 1.1
003:         *
004:         * The contents of this file are subject to the Mozilla Public License Version
005:         * 1.1 (the "License"); you may not use this file except in compliance with
006:         * the License. You may obtain a copy of the License at
007:         * http://www.mozilla.org/MPL/
008:         *
009:         * Software distributed under the License is distributed on an "AS IS" basis,
010:         * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
011:         * for the specific language governing rights and limitations under the
012:         * License.
013:         *
014:         * The Original Code is the DataShare server.
015:         *
016:         * The Initial Developer of the Original Code is
017:         * Ball Aerospace & Technologies Corp, Fairborn, Ohio
018:         * Portions created by the Initial Developer are Copyright (C) 2001
019:         * the Initial Developer. All Rights Reserved.
020:         *
021:         * Contributor(s): Charles Wood <cwood@ball.com>
022:         *
023:         * ----- END LICENSE BLOCK ----- */
024:        /* RCS $Id: PersistDataQueueObject.java,v 1.1.1.1 2001/10/23 13:37:18 lizellaman Exp $
025:         * $Log: PersistDataQueueObject.java,v $
026:         * Revision 1.1.1.1  2001/10/23 13:37:18  lizellaman
027:         * initial sourceforge release
028:         *
029:         */
030:
031:        package org.datashare;
032:
033:        import java.util.Hashtable;
034:
035:        /**
036:         * Defines the object that will be put into our Queue and extracted by the PersistDataQueueConsumer
037:         * class.  This object fully describes the EJB that is to be created by the
038:         * PersistDataQueueConsumer.
039:         *
040:         * @date March 01, 2001
041:         * @author Charles Wood
042:         * @version 1.0
043:         */
044:        public class PersistDataQueueObject {
045:            /**
046:             * the name/type of the EJB to be created, should be the 'home' EJB class
047:             *
048:             */
049:            String tableName = "";
050:
051:            /**
052:             * describes the attributes of the EJB, determined by the EJB class that is to be created
053:             * Contains attributes of the data, the keys are strings that correspond to fields,
054:             * the values are the field values.
055:             *
056:             */
057:            Hashtable props = new Hashtable();
058:
059:            /**
060:             * should be set to the class that wishes to receive the ADSKey that corresponds
061:             * to the EJB that is to be created, should be set to null if no callback with the
062:             * ADSKey is desired
063:             *
064:             */
065:            PersistDataCallbackInterface callback = null;
066:
067:            /**
068:             * class constructor, must be created with first two parameters non-null
069:             *
070:             * @param beanName the name of the bean, used in the EjbUtil.create call
071:             * @param props the property values that describe this bean, used in the
072:             *     call to EjbUtil.create
073:             * @param callback provides the method that will let us return the ADSkey
074:             *     that corresponds to this EJB, set to null if no callback is desired
075:             */
076:            PersistDataQueueObject(String tableName, Hashtable props,
077:                    PersistDataCallbackInterface callback) {
078:                this .tableName = tableName;
079:                this .props = props;
080:                this .callback = callback;
081:            }
082:
083:            /**
084:             * accessor for beanName of this instance
085:             *
086:             * @return the beanName that was provided to the class constructor
087:             */
088:            public String getTableName() {
089:                return tableName;
090:            }
091:
092:            /**
093:             * accessor for the ADSProperties of this instance
094:             *
095:             * @return the ADSProperties that was provided to the class constructor
096:             */
097:            public Hashtable getProperties() {
098:                return props;
099:            }
100:
101:            /**
102:             * returns the instance that was supplied to the consructor
103:             *
104:             * @return the instance supplied by the constructor parameter
105:             */
106:            public PersistDataCallbackInterface getCallback() {
107:                return callback;
108:            }
109:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.