Source Code Cross Referenced for ItemMeta.java in  » J2EE » Jaffa » org » jaffa » persistence » domainobjects » 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 » Jaffa » org.jaffa.persistence.domainobjects 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        // .//GEN-BEGIN:1_be
002:        /******************************************************
003:         * Code Generated From JAFFA Framework Default Pattern
004:         * 
005:         * The JAFFA Project can be found at http://jaffa.sourceforge.net
006:         * and is available under the Lesser GNU Public License
007:         ******************************************************/package org.jaffa.persistence.domainobjects;
008:
009:        import org.jaffa.metadata.*;
010:        import java.util.*;
011:
012:        // .//GEN-END:1_be
013:        // Add additional imports//GEN-FIRST:imports
014:
015:        // .//GEN-LAST:imports
016:        // .//GEN-BEGIN:2_be
017:        /** This class has the meta information for the Item persistent class.
018:         */
019:        public class ItemMeta {
020:
021:            // domain-object class name
022:            private static String m_name = "org.jaffa.persistence.domainobjects.Item";
023:
024:            // token to be used for getting the label for the domain-object
025:            private static String m_labelToken = "[label.App1.Material.Item]";
026:
027:            // Field constants
028:            /** A constant to identity the ItemId field.*/
029:            public static final String ITEM_ID = "ItemId";
030:            /** A constant to identity the ReceivedItemId field.*/
031:            public static final String RECEIVED_ITEM_ID = "ReceivedItemId";
032:            /** A constant to identity the Part field.*/
033:            public static final String PART = "Part";
034:            /** A constant to identity the Prime field.*/
035:            public static final String PRIME = "Prime";
036:            /** A constant to identity the Sc field.*/
037:            public static final String SC = "Sc";
038:            /** A constant to identity the Condition field.*/
039:            public static final String CONDITION = "Condition";
040:            /** A constant to identity the CreatedDatetime field.*/
041:            public static final String CREATED_DATETIME = "CreatedDatetime";
042:            /** A constant to identity the Qty field.*/
043:            public static final String QTY = "Qty";
044:            /** A constant to identity the KeyRef field.*/
045:            public static final String KEY_REF = "KeyRef";
046:            /** A constant to identity the Status1 field.*/
047:            public static final String STATUS1 = "Status1";
048:            /** A constant to identity the Status2 field.*/
049:            public static final String STATUS2 = "Status2";
050:            /** A constant to identity the Status3 field.*/
051:            public static final String STATUS3 = "Status3";
052:
053:            // Meta Data Definitions
054:
055:            /** A constant which holds the meta information for the ItemId field.*/
056:            public static final FieldMetaData META_ITEM_ID = new StringFieldMetaData(
057:                    ITEM_ID, "[label.App1.Material.Item.ItemId]", Boolean.TRUE,
058:                    null, new Integer(20), FieldMetaData.UPPER_CASE);
059:
060:            /** A constant which holds the meta information for the ReceivedItemId field.*/
061:            public static final FieldMetaData META_RECEIVED_ITEM_ID = new StringFieldMetaData(
062:                    RECEIVED_ITEM_ID,
063:                    "[label.App1.Material.Item.ReceivedItemId]", Boolean.FALSE,
064:                    null, new Integer(20), FieldMetaData.UPPER_CASE);
065:
066:            /** A constant which holds the meta information for the Part field.*/
067:            public static final FieldMetaData META_PART = new StringFieldMetaData(
068:                    PART, "[label.App1.Material.Item.Part]", Boolean.FALSE,
069:                    null, new Integer(50), FieldMetaData.UPPER_CASE);
070:
071:            /** A constant which holds the meta information for the Prime field.*/
072:            public static final FieldMetaData META_PRIME = new StringFieldMetaData(
073:                    PRIME, "[label.App1.Material.Item.Prime]", Boolean.FALSE,
074:                    null, new Integer(50), FieldMetaData.UPPER_CASE);
075:
076:            /** A constant which holds the meta information for the Sc field.*/
077:            public static final FieldMetaData META_SC = new StringFieldMetaData(
078:                    SC, "[label.App1.Material.Item.Sc]", Boolean.FALSE, null,
079:                    new Integer(20), FieldMetaData.UPPER_CASE);
080:
081:            /** A constant which holds the meta information for the Condition field.*/
082:            public static final FieldMetaData META_CONDITION = new StringFieldMetaData(
083:                    CONDITION, "[label.App1.Material.Item.Condition]",
084:                    Boolean.FALSE, null, new Integer(20),
085:                    FieldMetaData.UPPER_CASE);
086:
087:            /** A constant which holds the meta information for the CreatedDatetime field.*/
088:            public static final FieldMetaData META_CREATED_DATETIME = new DateTimeFieldMetaData(
089:                    CREATED_DATETIME,
090:                    "[label.App1.Material.Item.CreatedDatetime]",
091:                    Boolean.FALSE, null, null, null);
092:
093:            /** A constant which holds the meta information for the Qty field.*/
094:            public static final FieldMetaData META_QTY = new IntegerFieldMetaData(
095:                    QTY, "[label.App1.Material.Item.Qty]", Boolean.FALSE, null,
096:                    null, null, new Integer(8));
097:
098:            /** A constant which holds the meta information for the KeyRef field.*/
099:            public static final FieldMetaData META_KEY_REF = new StringFieldMetaData(
100:                    KEY_REF, "[label.App1.Material.Item.KeyRef]",
101:                    Boolean.FALSE, null, new Integer(50),
102:                    FieldMetaData.UPPER_CASE);
103:
104:            /** A constant which holds the meta information for the Status1 field.*/
105:            public static final FieldMetaData META_STATUS1 = new StringFieldMetaData(
106:                    STATUS1, "[label.App1.Material.Item.Status1]",
107:                    Boolean.FALSE, null, new Integer(1),
108:                    FieldMetaData.UPPER_CASE);
109:
110:            /** A constant which holds the meta information for the Status2 field.*/
111:            public static final FieldMetaData META_STATUS2 = new StringFieldMetaData(
112:                    STATUS2, "[label.App1.Material.Item.Status2]",
113:                    Boolean.FALSE, null, new Integer(1),
114:                    FieldMetaData.UPPER_CASE);
115:
116:            /** A constant which holds the meta information for the Status3 field.*/
117:            public static final FieldMetaData META_STATUS3 = new StringFieldMetaData(
118:                    STATUS3, "[label.App1.Material.Item.Status3]",
119:                    Boolean.FALSE, null, new Integer(1),
120:                    FieldMetaData.UPPER_CASE);
121:
122:            // Map of FieldConstants + MetaDataDefinitions
123:            private static Map m_fieldMap = new HashMap();
124:            static {
125:                m_fieldMap.put(ITEM_ID, META_ITEM_ID);
126:                m_fieldMap.put(RECEIVED_ITEM_ID, META_RECEIVED_ITEM_ID);
127:                m_fieldMap.put(PART, META_PART);
128:                m_fieldMap.put(PRIME, META_PRIME);
129:                m_fieldMap.put(SC, META_SC);
130:                m_fieldMap.put(CONDITION, META_CONDITION);
131:                m_fieldMap.put(CREATED_DATETIME, META_CREATED_DATETIME);
132:                m_fieldMap.put(QTY, META_QTY);
133:                m_fieldMap.put(KEY_REF, META_KEY_REF);
134:                m_fieldMap.put(STATUS1, META_STATUS1);
135:                m_fieldMap.put(STATUS2, META_STATUS2);
136:                m_fieldMap.put(STATUS3, META_STATUS3);
137:            }
138:
139:            // List of MetaDataDefinitions for key fields
140:            private static List m_keyFields = new LinkedList();
141:            static {
142:                m_keyFields.add(META_ITEM_ID);
143:            }
144:
145:            // List of MetaDataDefinitions for mandatory fields
146:            private static List m_mandatoryFields = new LinkedList();
147:            static {
148:                m_mandatoryFields.add(META_ITEM_ID);
149:            }
150:
151:            /** Returns the name of the persistent class.
152:             * @return the name of the persistent class.
153:             */
154:            public static String getName() {
155:                return m_name;
156:            }
157:
158:            /** Getter for property labelToken.
159:             * @return Value of property labelToken.
160:             */
161:            public static String getLabelToken() {
162:                return m_labelToken;
163:            }
164:
165:            /** This returns an array of all the fields of the persistent class.
166:             * @return an array of all the fields of the persistent class.
167:             */
168:            public static String[] getAttributes() {
169:                return DomainMetaDataHelper.getAttributes(m_fieldMap);
170:            }
171:
172:            /** This returns an array of meta information for all the fields of the persistent class.
173:             * @return an array of meta information for all the fields of the persistent class.
174:             */
175:            public static FieldMetaData[] getFieldMetaData() {
176:                return DomainMetaDataHelper.getFieldMetaData(m_fieldMap);
177:            }
178:
179:            /** This returns meta information for the input field.
180:             * @param fieldName the field name.
181:             * @return meta information for the input field.
182:             */
183:            public static FieldMetaData getFieldMetaData(String fieldName) {
184:                return DomainMetaDataHelper.getFieldMetaData(m_fieldMap,
185:                        fieldName);
186:            }
187:
188:            /** This returns an array of meta information for all the key fields of the persistent class.
189:             * @return an array of meta information for all the key fields of the persistent class.
190:             */
191:            public static FieldMetaData[] getKeyFields() {
192:                return (FieldMetaData[]) m_keyFields
193:                        .toArray(new FieldMetaData[0]);
194:            }
195:
196:            /** This returns an array of meta information for all the mandatory fields of the persistent class.
197:             * @return an array of meta information for all the mandatory fields of the persistent class.
198:             */
199:            public static FieldMetaData[] getMandatoryFields() {
200:                return (FieldMetaData[]) m_mandatoryFields
201:                        .toArray(new FieldMetaData[0]);
202:            }
203:
204:            // .//GEN-END:2_be
205:            // All the custom code goes here//GEN-FIRST:custom
206:
207:            // .//GEN-LAST:custom
208:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.