Source Code Cross Referenced for FieldWrapper.java in  » Database-ORM » MMBase » org » mmbase » bridge » util » 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 » Database ORM » MMBase » org.mmbase.bridge.util 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:
003:        This software is OSI Certified Open Source Software.
004:        OSI Certified is a certification mark of the Open Source Initiative.
005:
006:        The license (Mozilla version 1.0) can be read at the MMBase site.
007:        See http://www.MMBase.org/license
008:
009:         */
010:
011:        package org.mmbase.bridge.util;
012:
013:        import java.util.Locale;
014:        import java.util.Collection;
015:        import org.mmbase.util.LocalizedString;
016:        import org.mmbase.bridge.*;
017:        import org.mmbase.datatypes.DataType;
018:
019:        /**
020:         * Wraps another Field. You can use this if you want to implement Field, and want to base that
021:         * implementation on a existing <code>Field</code> instance.
022:         *
023:         * @author  Michiel Meeuwissen
024:         * @version $Id: FieldWrapper.java,v 1.4 2008/02/03 17:33:56 nklasens Exp $
025:         * @since   MMBase-1.8.1
026:         */
027:
028:        public abstract class FieldWrapper implements  Field {
029:            protected final Field field;
030:
031:            public FieldWrapper(Field field) {
032:                this .field = field;
033:            }
034:
035:            public abstract NodeManager getNodeManager();
036:
037:            public int getState() {
038:                return Field.STATE_VIRTUAL;
039:            }
040:
041:            public DataType<Object> getDataType() {
042:                return field.getDataType();
043:            }
044:
045:            public boolean isUnique() {
046:                return field.isUnique();
047:            }
048:
049:            public boolean hasIndex() {
050:                return field.hasIndex();
051:            }
052:
053:            public int getType() {
054:                return field.getType();
055:            }
056:
057:            public int getListItemType() {
058:                return field.getListItemType();
059:            }
060:
061:            public int getSearchPosition() {
062:                return field.getSearchPosition();
063:            }
064:
065:            public int getListPosition() {
066:                return field.getListPosition();
067:            }
068:
069:            public int getEditPosition() {
070:                return field.getEditPosition();
071:            }
072:
073:            public int getStoragePosition() {
074:                return field.getStoragePosition();
075:            }
076:
077:            public String getGUIType() {
078:                return field.getGUIType();
079:            }
080:
081:            public boolean isRequired() {
082:                return field.isRequired();
083:            }
084:
085:            public int getMaxLength() {
086:                return field.getMaxLength();
087:            }
088:
089:            public Collection validate(Object value) {
090:                return field.validate(value);
091:            }
092:
093:            public boolean isVirtual() {
094:                return true;
095:            }
096:
097:            public boolean isReadOnly() {
098:                return true;
099:            }
100:
101:            public String getName() {
102:                return field.getName();
103:            }
104:
105:            public String getGUIName() {
106:                return field.getGUIName();
107:            }
108:
109:            public String getGUIName(Locale locale) {
110:                return field.getGUIName(locale);
111:            }
112:
113:            public LocalizedString getLocalizedGUIName() {
114:                return field.getLocalizedGUIName();
115:            }
116:
117:            public void setGUIName(String g, Locale locale) {
118:                throw new UnsupportedOperationException();
119:            }
120:
121:            public void setGUIName(String g) {
122:                throw new UnsupportedOperationException();
123:            }
124:
125:            public LocalizedString getLocalizedDescription() {
126:                return field.getLocalizedDescription();
127:            }
128:
129:            public String getDescription(Locale locale) {
130:                return field.getDescription(locale);
131:            }
132:
133:            public String getDescription() {
134:                return field.getDescription();
135:            }
136:
137:            public void setDescription(String description, Locale locale) {
138:                throw new UnsupportedOperationException();
139:            }
140:
141:            public void setDescription(String description) {
142:                throw new UnsupportedOperationException();
143:            }
144:
145:            public Field getField() {
146:                return field;
147:            }
148:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.