Source Code Cross Referenced for NodeWrapper.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 org.mmbase.bridge.*;
014:        import java.util.*;
015:        import org.w3c.dom.Element;
016:        import org.w3c.dom.Document;
017:        import org.mmbase.util.functions.Function;
018:        import org.mmbase.util.functions.Parameters;
019:
020:        /**
021:         * Wraps another Node. You can use this if you want to implement Node, and want to base that
022:         * implementation on a existing <code>Node</code> instance.
023:         *
024:         * @author  Michiel Meeuwissen
025:         * @version $Id: NodeWrapper.java,v 1.20 2008/02/03 17:33:56 nklasens Exp $
026:         * @since   MMBase-1.8
027:         */
028:
029:        public abstract class NodeWrapper implements  Node {
030:            protected final Node node;
031:
032:            public NodeWrapper(Node node) {
033:                assert node != null;
034:                this .node = node;
035:            }
036:
037:            public Cloud getCloud() {
038:                return node.getCloud();
039:            }
040:
041:            public NodeManager getNodeManager() {
042:                return node.getNodeManager();
043:            }
044:
045:            public int getNumber() {
046:                return node.getNumber();
047:            }
048:
049:            public boolean isRelation() {
050:                return node.isRelation();
051:            }
052:
053:            public Relation toRelation() {
054:                return node.toRelation();
055:            }
056:
057:            public boolean isNodeManager() {
058:                return node.isNodeManager();
059:            }
060:
061:            public NodeManager toNodeManager() {
062:                return node.toNodeManager();
063:            }
064:
065:            public boolean isRelationManager() {
066:                return node.isRelationManager();
067:            }
068:
069:            public RelationManager toRelationManager() {
070:                return node.toRelationManager();
071:            }
072:
073:            public void setValue(String fieldName, Object value) {
074:                node.setValue(fieldName, value);
075:            }
076:
077:            public void setValueWithoutProcess(String fieldName, Object value) {
078:                node.setValueWithoutProcess(fieldName, value);
079:            }
080:
081:            public void setObjectValue(String fieldName, Object value) {
082:                node.setObjectValue(fieldName, value);
083:            }
084:
085:            public void setBooleanValue(String fieldName, boolean value) {
086:                node.setBooleanValue(fieldName, value);
087:            }
088:
089:            public void setNodeValue(String fieldName, Node value) {
090:                node.setNodeValue(fieldName, value);
091:            }
092:
093:            public void setIntValue(String fieldName, int value) {
094:                node.setIntValue(fieldName, value);
095:            }
096:
097:            public void setFloatValue(String fieldName, float value) {
098:                node.setFloatValue(fieldName, value);
099:            }
100:
101:            public void setDoubleValue(String fieldName, double value) {
102:                node.setDoubleValue(fieldName, value);
103:            }
104:
105:            public void setByteValue(String fieldName, byte[] value) {
106:                node.setByteValue(fieldName, value);
107:            }
108:
109:            public void setInputStreamValue(String fieldName,
110:                    java.io.InputStream value, long size) {
111:                node.setInputStreamValue(fieldName, value, size);
112:            }
113:
114:            public void setLongValue(String fieldName, long value) {
115:                node.setLongValue(fieldName, value);
116:            }
117:
118:            public void setStringValue(String fieldName, String value) {
119:                node.setStringValue(fieldName, value);
120:            }
121:
122:            public void setDateValue(String fieldName, Date value) {
123:                node.setDateValue(fieldName, value);
124:            }
125:
126:            public void setListValue(String fieldName, List value) {
127:                node.setListValue(fieldName, value);
128:            }
129:
130:            public boolean isNull(String fieldName) {
131:                return node.isNull(fieldName);
132:            }
133:
134:            public long getSize(String fieldName) {
135:                return node.getSize(fieldName);
136:            }
137:
138:            public Object getValue(String fieldName) {
139:                return node.getValue(fieldName);
140:            }
141:
142:            public Object getValueWithoutProcess(String fieldName) {
143:                return node.getValueWithoutProcess(fieldName);
144:            }
145:
146:            public Object getObjectValue(String fieldName) {
147:                return node.getObjectValue(fieldName);
148:            }
149:
150:            public boolean getBooleanValue(String fieldName) {
151:                return node.getBooleanValue(fieldName);
152:            }
153:
154:            public Node getNodeValue(String fieldName) {
155:                return node.getNodeValue(fieldName);
156:            }
157:
158:            public int getIntValue(String fieldName) {
159:                return node.getIntValue(fieldName);
160:            }
161:
162:            public float getFloatValue(String fieldName) {
163:                return node.getFloatValue(fieldName);
164:            }
165:
166:            public long getLongValue(String fieldName) {
167:                return node.getLongValue(fieldName);
168:            }
169:
170:            public double getDoubleValue(String fieldName) {
171:                return node.getDoubleValue(fieldName);
172:            }
173:
174:            public byte[] getByteValue(String fieldName) {
175:                return node.getByteValue(fieldName);
176:            }
177:
178:            public java.io.InputStream getInputStreamValue(String fieldName) {
179:                return node.getInputStreamValue(fieldName);
180:            }
181:
182:            public String getStringValue(String fieldName) {
183:                return node.getStringValue(fieldName);
184:            }
185:
186:            public Date getDateValue(String fieldName) {
187:                return node.getDateValue(fieldName);
188:            }
189:
190:            public List getListValue(String fieldName) {
191:                return node.getListValue(fieldName);
192:            }
193:
194:            public FieldValue getFieldValue(String fieldName)
195:                    throws NotFoundException {
196:                return node.getFieldValue(fieldName);
197:            }
198:
199:            public FieldValue getFieldValue(Field field) {
200:                return node.getFieldValue(field);
201:            }
202:
203:            public Collection<String> validate() {
204:                return node.validate();
205:            }
206:
207:            public void commit() {
208:                node.commit();
209:            }
210:
211:            public void cancel() {
212:                node.cancel();
213:            }
214:
215:            public boolean isNew() {
216:                return node.isNew();
217:            }
218:
219:            public boolean isChanged(String fieldName) {
220:                return node.isChanged(fieldName);
221:            }
222:
223:            public boolean isChanged() {
224:                return node.isChanged();
225:            }
226:
227:            public Set<String> getChanged() {
228:                return node.getChanged();
229:            }
230:
231:            public void delete() {
232:                node.delete();
233:            }
234:
235:            public void delete(boolean deleteRelations) {
236:                node.delete(deleteRelations);
237:            }
238:
239:            @Override
240:            public String toString() {
241:                return node.toString();
242:            }
243:
244:            public Document getXMLValue(String fieldName)
245:                    throws IllegalArgumentException {
246:                return node.getXMLValue(fieldName);
247:            }
248:
249:            public Element getXMLValue(String fieldName, Document tree)
250:                    throws IllegalArgumentException {
251:                return node.getXMLValue(fieldName, tree);
252:            }
253:
254:            public void setXMLValue(String fieldName, Document value) {
255:                node.setXMLValue(fieldName, value);
256:            }
257:
258:            public boolean hasRelations() {
259:                return node.hasRelations();
260:            }
261:
262:            public void deleteRelations() {
263:                node.deleteRelations();
264:            };
265:
266:            public void deleteRelations(String relationManager) {
267:                node.deleteRelations(relationManager);
268:            }
269:
270:            public RelationList getRelations() {
271:                return node.getRelations();
272:            }
273:
274:            public RelationList getRelations(String role) {
275:                return node.getRelations(role);
276:            }
277:
278:            public RelationList getRelations(String role, String nodeManager) {
279:                return node.getRelations(role, nodeManager);
280:            }
281:
282:            public RelationList getRelations(String role,
283:                    NodeManager nodeManager) {
284:                return node.getRelations(role, nodeManager);
285:            }
286:
287:            public RelationList getRelations(String role,
288:                    NodeManager nodeManager, String searchDir) {
289:                return node.getRelations(role, nodeManager, searchDir);
290:            }
291:
292:            public int countRelations() {
293:                return node.countRelations();
294:            }
295:
296:            public int countRelations(String relationManager) {
297:                return node.countRelations(relationManager);
298:            }
299:
300:            public NodeList getRelatedNodes() {
301:                return node.getRelatedNodes();
302:            }
303:
304:            public NodeList getRelatedNodes(String nodeManager) {
305:                return node.getRelatedNodes(nodeManager);
306:            }
307:
308:            public NodeList getRelatedNodes(NodeManager nodeManager) {
309:                return node.getRelatedNodes(nodeManager);
310:            }
311:
312:            public NodeList getRelatedNodes(String nodeManager, String role,
313:                    String searchDir) {
314:                return node.getRelatedNodes(nodeManager, role, searchDir);
315:            }
316:
317:            public NodeList getRelatedNodes(NodeManager nodeManager,
318:                    String role, String searchDir) {
319:                return node.getRelatedNodes(nodeManager, role, searchDir);
320:            }
321:
322:            public int countRelatedNodes(String nodeManager) {
323:                return node.countRelatedNodes(nodeManager);
324:            }
325:
326:            public int countRelatedNodes(NodeManager otherNodeManager,
327:                    String role, String searchDir) {
328:                return node
329:                        .countRelatedNodes(otherNodeManager, role, searchDir);
330:            }
331:
332:            public StringList getAliases() {
333:                return node.getAliases();
334:            }
335:
336:            public void createAlias(String alias) {
337:                node.createAlias(alias);
338:            }
339:
340:            public void deleteAlias(String alias) {
341:                node.deleteAlias(alias);
342:            }
343:
344:            public Relation createRelation(Node destinationNode,
345:                    RelationManager relationManager) {
346:                return node.createRelation(destinationNode, relationManager);
347:            }
348:
349:            public void setContext(String context) {
350:                node.setContext(context);
351:            }
352:
353:            public String getContext() {
354:                return node.getContext();
355:            }
356:
357:            public StringList getPossibleContexts() {
358:                return node.getPossibleContexts();
359:            }
360:
361:            public boolean mayWrite() {
362:                return node.mayWrite();
363:            }
364:
365:            public boolean mayDelete() {
366:                return node.mayDelete();
367:            }
368:
369:            public boolean mayChangeContext() {
370:                return node.mayChangeContext();
371:            }
372:
373:            public Collection<Function<?>> getFunctions() {
374:                return node.getFunctions();
375:            }
376:
377:            public Function getFunction(String functionName) {
378:                return node.getFunction(functionName);
379:            }
380:
381:            public Parameters createParameters(String functionName) {
382:                return node.createParameters(functionName);
383:            }
384:
385:            public FieldValue getFunctionValue(String functionName,
386:                    List parameters) {
387:                return node.getFunctionValue(functionName, parameters);
388:            }
389:
390:            @Override
391:            public int hashCode() {
392:                return node.hashCode();
393:            }
394:
395:            @Override
396:            public boolean equals(Object o) {
397:                return node.equals(o);
398:            }
399:
400:            public int compareTo(Node o) {
401:                return node.compareTo(o);
402:            }
403:
404:            public Node getNode() {
405:                return node;
406:            }
407:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.