Java Doc for AbstractNode.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 Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.mmbase.bridge.util.AbstractNode

All known Subclasses:   org.mmbase.bridge.util.AbstractNodeManager,  org.mmbase.bridge.implementation.BasicNode,  org.mmbase.bridge.implementation.VirtualNode,  org.mmbase.bridge.util.MapNode,
AbstractNode
abstract public class AbstractNode implements Node(Code)
Abstract implementation of Node. All methods which are based on other methods are implemented here, to minimalize the implementation effort of fully implemented Nodes.
author:
   Michiel Meeuwissen
version:
   $Id: AbstractNode.java,v 1.22 2007/10/17 12:48:14 michiel Exp $
See Also:   org.mmbase.bridge.Node
since:
   MMBase-1.8




Method Summary
public  voidcancel()
    
protected  voidcheckWrite()
    
public  voidcommit()
    
final public  intcompareTo(Node o)
     Compares this node to the passed object. Returns 0 if they are equal, -1 if the object passed is a NodeManager and larger than this manager, and +1 if the object passed is a NodeManager and smaller than this manager. This is used to sort Nodes. A node is 'larger' than another node if its GUI() result is larger (alphabetically, case sensitive) than that of the other node.
public  intcountRelatedNodes(NodeManager otherNodeManager, String role, String direction)
    
public  intcountRelatedNodes(String type)
    
final public  intcountRelations()
    
final public  intcountRelations(String type)
    
public  voidcreateAlias(String aliasName)
    
protected  FieldValuecreateFunctionValue(Object result)
    
public  ParameterscreateParameters(String functionName)
    
public  RelationcreateRelation(Node destinationNode, RelationManager relationManager)
    
final public  voiddelete()
    
public  voiddelete(boolean deleteRelations)
    
public  voiddeleteAlias(String aliasName)
    
final public  voiddeleteRelations()
    
public  voiddeleteRelations(String type)
    
final public  booleanequals(Object o)
     Compares two nodes, and returns true if they are equal.
public  StringListgetAliases()
    
public  booleangetBooleanValue(String fieldName)
    
public  byte[]getByteValue(String fieldName)
    
public  Set<String>getChanged()
    
public  StringgetContext()
    
public  DategetDateValue(String fieldName)
    
public  doublegetDoubleValue(String fieldName)
    
final public  FieldValuegetFieldValue(String fieldName)
    
final public  FieldValuegetFieldValue(Field field)
    
public  floatgetFloatValue(String fieldName)
    
final public  FunctiongetFunction(String functionName)
    
public  FieldValuegetFunctionValue(String functionName, List parameters)
    
public  java.io.InputStreamgetInputStreamValue(String fieldName)
    
public  intgetIntValue(String fieldName)
    
public  ListgetListValue(String fieldName)
    
public  longgetLongValue(String fieldName)
    
protected  FunctiongetNodeFunction(String functionName)
    
public  NodegetNodeValue(String fieldName)
    
public  intgetNumber()
    
final public  ObjectgetObjectValue(String fieldName)
    
public  StringListgetPossibleContexts()
    
final public  NodeListgetRelatedNodes()
    
final public  NodeListgetRelatedNodes(String type)
    
final public  NodeListgetRelatedNodes(NodeManager nodeManager)
    
final public  NodeListgetRelatedNodes(String type, String role, String searchDir)
    
public  NodeListgetRelatedNodes(NodeManager nodeManager, String role, String searchDir)
    
final public  RelationListgetRelations()
    
final public  RelationListgetRelations(String role)
    
final public  RelationListgetRelations(String role, NodeManager nodeManager)
    
public  RelationListgetRelations(String role, NodeManager nodeManager, String searchDir)
    
public  RelationListgetRelations(String role, String nodeManager)
    
public  StringgetStringValue(String fieldName)
    
final public  ObjectgetValue(String fieldName)
    
public  DocumentgetXMLValue(String fieldName)
    
final public  ElementgetXMLValue(String fieldName, Document tree)
    
public  booleanhasRelations()
    
final public  inthashCode()
    
public  booleanisChanged(String fieldName)
    
public  booleanisChanged()
    
public  booleanisNew()
    
public  booleanisNodeManager()
    
public  booleanisNull(String fieldName)
    
public  booleanisRelation()
    
public  booleanisRelationManager()
    
public  booleanmayChangeContext()
    
public  booleanmayDelete()
    
public  booleanmayWrite()
    
final public  voidprocessCommit()
    
protected  ObjectprocessNull(int type, Field field)
    
final public  voidsetBooleanValue(String fieldName, boolean value)
    
final public  voidsetByteValue(String fieldName, byte[] value)
    
public  voidsetContext(String context)
    
final public  voidsetDateValue(String fieldName, Date value)
    
final public  voidsetDoubleValue(String fieldName, double value)
    
final public  voidsetFloatValue(String fieldName, float value)
    
final public  voidsetInputStreamValue(String fieldName, InputStream value, long size)
    
final public  voidsetIntValue(String fieldName, int value)
    
final public  voidsetListValue(String fieldName, List value)
    
final public  voidsetLongValue(String fieldName, long value)
    
final public  voidsetNodeValue(String fieldName, Node value)
    
final public  voidsetObjectValue(String fieldName, Object value)
    
abstract protected  voidsetSize(String fieldName, long size)
    
final public  voidsetStringValue(String fieldName, String value)
    
final public  voidsetValue(String fieldName, Object value)
    
abstract protected  voidsetValueWithoutChecks(String fieldName, Object value)
    
public  voidsetValueWithoutProcess(String fieldName, Object value)
     Like setObjectValue, but without processing, this is called by the other set-values.
final public  voidsetXMLValue(String fieldName, Document value)
    
public  NodeManagertoNodeManager()
    
protected  IntegertoNodeNumber(Object v)
     A method to convert an object to an node number.
public  RelationtoRelation()
    
public  RelationManagertoRelationManager()
    
public  Collection<String>validate()
    



Method Detail
cancel
public void cancel()(Code)



checkWrite
protected void checkWrite()(Code)
Throws exception if may not write current node
since:
   MMBase-1.9



commit
public void commit()(Code)



compareTo
final public int compareTo(Node o)(Code)
Compares this node to the passed object. Returns 0 if they are equal, -1 if the object passed is a NodeManager and larger than this manager, and +1 if the object passed is a NodeManager and smaller than this manager. This is used to sort Nodes. A node is 'larger' than another node if its GUI() result is larger (alphabetically, case sensitive) than that of the other node. If the GUI() results are the same, the nodes are compared on number, and (if needed) on their owning clouds.
Parameters:
  o - the object to compare it with 0 if they are equal, -1 if the object passed is a NodeManager and larger than this manager,and +1 if the object passed is a NodeManager and smaller than this manager.



countRelatedNodes
public int countRelatedNodes(NodeManager otherNodeManager, String role, String direction)(Code)



countRelatedNodes
public int countRelatedNodes(String type)(Code)



countRelations
final public int countRelations()(Code)



countRelations
final public int countRelations(String type)(Code)



createAlias
public void createAlias(String aliasName)(Code)



createFunctionValue
protected FieldValue createFunctionValue(Object result)(Code)



createParameters
public Parameters createParameters(String functionName)(Code)



createRelation
public Relation createRelation(Node destinationNode, RelationManager relationManager)(Code)



delete
final public void delete()(Code)



delete
public void delete(boolean deleteRelations)(Code)



deleteAlias
public void deleteAlias(String aliasName)(Code)



deleteRelations
final public void deleteRelations()(Code)



deleteRelations
public void deleteRelations(String type) throws NotFoundException(Code)



equals
final public boolean equals(Object o)(Code)
Compares two nodes, and returns true if they are equal. This effectively means that both objects are nodes, and they both have the same number and cloud
Parameters:
  o - the object to compare it with
See Also:   java.lang.Object.equals(java.lang.Object)



getAliases
public StringList getAliases()(Code)



getBooleanValue
public boolean getBooleanValue(String fieldName)(Code)



getByteValue
public byte[] getByteValue(String fieldName)(Code)



getChanged
public Set<String> getChanged()(Code)



getContext
public String getContext()(Code)



getDateValue
public Date getDateValue(String fieldName)(Code)



getDoubleValue
public double getDoubleValue(String fieldName)(Code)



getFieldValue
final public FieldValue getFieldValue(String fieldName) throws NotFoundException(Code)



getFieldValue
final public FieldValue getFieldValue(Field field)(Code)



getFloatValue
public float getFloatValue(String fieldName)(Code)



getFunction
final public Function getFunction(String functionName)(Code)



getFunctionValue
public FieldValue getFunctionValue(String functionName, List parameters)(Code)



getInputStreamValue
public java.io.InputStream getInputStreamValue(String fieldName)(Code)



getIntValue
public int getIntValue(String fieldName)(Code)



getListValue
public List getListValue(String fieldName)(Code)



getLongValue
public long getLongValue(String fieldName)(Code)



getNodeFunction
protected Function getNodeFunction(String functionName)(Code)



getNodeValue
public Node getNodeValue(String fieldName)(Code)



getNumber
public int getNumber()(Code)



getObjectValue
final public Object getObjectValue(String fieldName)(Code)



getPossibleContexts
public StringList getPossibleContexts()(Code)



getRelatedNodes
final public NodeList getRelatedNodes()(Code)



getRelatedNodes
final public NodeList getRelatedNodes(String type)(Code)



getRelatedNodes
final public NodeList getRelatedNodes(NodeManager nodeManager)(Code)



getRelatedNodes
final public NodeList getRelatedNodes(String type, String role, String searchDir)(Code)



getRelatedNodes
public NodeList getRelatedNodes(NodeManager nodeManager, String role, String searchDir)(Code)



getRelations
final public RelationList getRelations()(Code)



getRelations
final public RelationList getRelations(String role)(Code)



getRelations
final public RelationList getRelations(String role, NodeManager nodeManager)(Code)



getRelations
public RelationList getRelations(String role, NodeManager nodeManager, String searchDir) throws NotFoundException(Code)



getRelations
public RelationList getRelations(String role, String nodeManager) throws NotFoundException(Code)



getStringValue
public String getStringValue(String fieldName)(Code)



getValue
final public Object getValue(String fieldName)(Code)



getXMLValue
public Document getXMLValue(String fieldName)(Code)



getXMLValue
final public Element getXMLValue(String fieldName, Document tree)(Code)



hasRelations
public boolean hasRelations()(Code)



hashCode
final public int hashCode()(Code)



isChanged
public boolean isChanged(String fieldName)(Code)



isChanged
public boolean isChanged()(Code)



isNew
public boolean isNew()(Code)



isNodeManager
public boolean isNodeManager()(Code)



isNull
public boolean isNull(String fieldName)(Code)



isRelation
public boolean isRelation()(Code)



isRelationManager
public boolean isRelationManager()(Code)



mayChangeContext
public boolean mayChangeContext()(Code)



mayDelete
public boolean mayDelete()(Code)



mayWrite
public boolean mayWrite()(Code)



processCommit
final public void processCommit()(Code)



processNull
protected Object processNull(int type, Field field)(Code)

since:
   MMBase-1.8.5



setBooleanValue
final public void setBooleanValue(String fieldName, boolean value)(Code)



setByteValue
final public void setByteValue(String fieldName, byte[] value)(Code)



setContext
public void setContext(String context)(Code)



setDateValue
final public void setDateValue(String fieldName, Date value)(Code)



setDoubleValue
final public void setDoubleValue(String fieldName, double value)(Code)



setFloatValue
final public void setFloatValue(String fieldName, float value)(Code)



setInputStreamValue
final public void setInputStreamValue(String fieldName, InputStream value, long size)(Code)



setIntValue
final public void setIntValue(String fieldName, int value)(Code)



setListValue
final public void setListValue(String fieldName, List value)(Code)



setLongValue
final public void setLongValue(String fieldName, long value)(Code)



setNodeValue
final public void setNodeValue(String fieldName, Node value)(Code)



setObjectValue
final public void setObjectValue(String fieldName, Object value)(Code)



setSize
abstract protected void setSize(String fieldName, long size)(Code)



setStringValue
final public void setStringValue(String fieldName, String value)(Code)



setValue
final public void setValue(String fieldName, Object value)(Code)
Setting value with default method (depending on field's type)
Parameters:
  fieldName - name of the field
Parameters:
  value - set value



setValueWithoutChecks
abstract protected void setValueWithoutChecks(String fieldName, Object value)(Code)



setValueWithoutProcess
public void setValueWithoutProcess(String fieldName, Object value)(Code)
Like setObjectValue, but without processing, this is called by the other set-values.
Parameters:
  fieldName - name of field
Parameters:
  value - new value of the field
since:
   MMBase-1.7



setXMLValue
final public void setXMLValue(String fieldName, Document value)(Code)



toNodeManager
public NodeManager toNodeManager()(Code)



toNodeNumber
protected Integer toNodeNumber(Object v)(Code)
A method to convert an object to an node number. Default impelmentation is reasonable, but does not support core objects.



toRelation
public Relation toRelation()(Code)



toRelationManager
public RelationManager toRelationManager()(Code)



validate
public Collection<String> validate()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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