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


java.lang.Object
   org.mmbase.bridge.util.AbstractNode
      org.mmbase.bridge.implementation.BasicNode
         org.mmbase.bridge.implementation.BasicNodeManager

All known Subclasses:   org.mmbase.bridge.implementation.BasicRelationManager,
BasicNodeManager
public class BasicNodeManager extends BasicNode implements NodeManager(Code)
This class represents a node's type information object - what used to be the 'builder'. It contains all the field and attribuut information, as well as GUI data for editors and some information on deribed and deriving types. It also contains some maintenance code - code to create new nodes, en code to query objects belonging to the same manager. Since node types are normally maintained through use of config files (and not in the database), as wel as for security issues, the data of a nodetype cannot be changed except through the use of an administration module (which is why we do not include setXXX methods here).
author:
   Rob Vermeulen
author:
   Pierre van Rooden
author:
   Michiel Meeuwissen
version:
   $Id: BasicNodeManager.java,v 1.133 2007/06/21 13:46:51 michiel Exp $

Inner Class :final protected class NodeAndId

Field Summary
protected  MMObjectBuilderbuilder
    
protected  Map<String, Field>fieldTypes
    

Constructor Summary
 BasicNodeManager(MMObjectNode node, BasicCloud cloud, int nodeid)
     Instantiates a new NodeManager (for insert) based on a newly created node which either represents or references a builder. Normally this is a TypeDef node, but subclasses (i.e.
 BasicNodeManager(MMObjectNode node, BasicCloud cloud)
     Instantiates a NodeManager based on a node which either represents or references a builder. Normally this is a TypeDef node, but subclasses (i.e.
 BasicNodeManager(MMObjectBuilder builder, BasicCloud cloud)
     Instantiates a NodeManager based on a builder.

Method Summary
public  voidcommit()
    
protected  BasicNodecreateBasicNode()
     BasicNodeManager is garantueed to return BasicNode's.
public  FieldListcreateFieldList()
    
protected  NodeAndIdcreateMMObjectNode()
     Creates new MMObjectNode for the current node manager.
final public  NodecreateNode()
    
public  NodeListcreateNodeList()
    
public  NodeQuerycreateQuery()
    
public  RelationListcreateRelationList()
    
public  voiddelete(boolean deleteRelations)
    
public  RelationManagerListgetAllowedRelations()
    
public  RelationManagerListgetAllowedRelations(String nodeManager, String role, String direction)
    
public  RelationManagerListgetAllowedRelations(NodeManager nodeManager, String role, String direction)
    
public  NodeManagerListgetDescendants()
    
public  StringgetDescription()
    
public  StringgetDescription(Locale locale)
    
public  FieldgetField(String fieldName)
    
protected  Map<String, Field>getFieldTypes()
     Returns the fieldlist of this nodemanager after making sure the manager is synced with the builder.
public  FieldListgetFields()
    
public  FieldListgetFields(int order)
    
public  Collection<Function<?>>getFunctions()
    
public  StringgetGUIName()
    
public  StringgetGUIName(int plurality)
    
public  StringgetGUIName(int plurality, Locale locale)
    
public  StringgetInfo(String command)
    
public  StringgetInfo(String command, ServletRequest req, ServletResponse resp)
    
public  NodeListgetList(NodeQuery query)
    
public  NodeListgetList(String constraints, String sorted, String directions)
    
public  NodeListgetList(String command, Map parameters)
    
public  NodeListgetList(String command, Map parameters, ServletRequest req, ServletResponse resp)
    
 MMObjectBuildergetMMObjectBuilder()
    
public  StringgetName()
    
protected  FunctiongetNodeFunction(String functionName)
    
public  NodeManagergetParent()
    
public  Map<String, String>getProperties()
    
public  StringgetProperty(String name)
    
public  booleanhasField(String fieldName)
    
protected  voidinitManager()
     Initializes the NodeManager: determines the MMObjectBuilder if it was not already known, and fills the fields list.
final public  booleanisNodeManager()
    
public  booleanmayCreateNode()
    
protected  voidsetNodeManager(MMObjectNode node)
    
protected static  voidsync(MMObjectBuilder builder, Map<String, Field> fieldTypes, NodeManager nodeManager)
    
final public  NodeManagertoNodeManager()
    

Field Detail
builder
protected MMObjectBuilder builder(Code)



fieldTypes
protected Map<String, Field> fieldTypes(Code)




Constructor Detail
BasicNodeManager
BasicNodeManager(MMObjectNode node, BasicCloud cloud, int nodeid)(Code)
Instantiates a new NodeManager (for insert) based on a newly created node which either represents or references a builder. Normally this is a TypeDef node, but subclasses (i.e. BasicRelationManager) may use other nodes, such as nodes from RelDef or TypeRel. The NodeManager that administrates the node itself is requested from the Cloud. The Nodemanager cannot be used for administartion tasks until it is isnerted (committed) in the Cloud.
Parameters:
  node - the MMObjectNode to base the NodeManager on.
Parameters:
  Cloud - the cloud to which this node belongs
Parameters:
  id - the id of the node in the temporary cloud



BasicNodeManager
BasicNodeManager(MMObjectNode node, BasicCloud cloud)(Code)
Instantiates a NodeManager based on a node which either represents or references a builder. Normally this is a TypeDef node, but subclasses (i.e. BasicRelationManager) may use other nodes, such as nodes from RelDef or TypeRel. The NodeManager that administrates the node itself is requested from the Cloud.
Parameters:
  node - the MMObjectNode to base the NodeManager on.
Parameters:
  Cloud - the cloud to which this node belongs



BasicNodeManager
BasicNodeManager(MMObjectBuilder builder, BasicCloud cloud)(Code)
Instantiates a NodeManager based on a builder. The constructor attempts to retrieve an MMObjectNode (from typedef) which represents this builder.
Parameters:
  builder - the MMObjectBuilder to base the NodeManager on.
Parameters:
  Cloud - the cloud to which this node belongs




Method Detail
commit
public void commit()(Code)



createBasicNode
protected BasicNode createBasicNode()(Code)
BasicNodeManager is garantueed to return BasicNode's. So extendsion must override this, and not BasicNodeManager.createNode
since:
   MMBase-1.8



createFieldList
public FieldList createFieldList()(Code)



createMMObjectNode
protected NodeAndId createMMObjectNode()(Code)
Creates new MMObjectNode for the current node manager. MMObjectNode wrapped in a NodeAndId
since:
   MMBase-1.8



createNode
final public Node createNode()(Code)



createNodeList
public NodeList createNodeList()(Code)



createQuery
public NodeQuery createQuery()(Code)



createRelationList
public RelationList createRelationList()(Code)



delete
public void delete(boolean deleteRelations)(Code)



getAllowedRelations
public RelationManagerList getAllowedRelations()(Code)



getAllowedRelations
public RelationManagerList getAllowedRelations(String nodeManager, String role, String direction)(Code)



getAllowedRelations
public RelationManagerList getAllowedRelations(NodeManager nodeManager, String role, String direction)(Code)



getDescendants
public NodeManagerList getDescendants()(Code)



getDescription
public String getDescription()(Code)



getDescription
public String getDescription(Locale locale)(Code)



getField
public Field getField(String fieldName) throws NotFoundException(Code)



getFieldTypes
protected Map<String, Field> getFieldTypes()(Code)
Returns the fieldlist of this nodemanager after making sure the manager is synced with the builder.
since:
   MMBase-1.8



getFields
public FieldList getFields()(Code)



getFields
public FieldList getFields(int order)(Code)



getFunctions
public Collection<Function<?>> getFunctions()(Code)



getGUIName
public String getGUIName()(Code)



getGUIName
public String getGUIName(int plurality)(Code)



getGUIName
public String getGUIName(int plurality, Locale locale)(Code)



getInfo
public String getInfo(String command)(Code)



getInfo
public String getInfo(String command, ServletRequest req, ServletResponse resp)(Code)



getList
public NodeList getList(NodeQuery query)(Code)



getList
public NodeList getList(String constraints, String sorted, String directions)(Code)



getList
public NodeList getList(String command, Map parameters)(Code)



getList
public NodeList getList(String command, Map parameters, ServletRequest req, ServletResponse resp)(Code)



getMMObjectBuilder
MMObjectBuilder getMMObjectBuilder()(Code)



getName
public String getName()(Code)



getNodeFunction
protected Function getNodeFunction(String functionName)(Code)



getParent
public NodeManager getParent() throws NotFoundException(Code)



getProperties
public Map<String, String> getProperties()(Code)



getProperty
public String getProperty(String name)(Code)



hasField
public boolean hasField(String fieldName)(Code)



initManager
protected void initManager()(Code)
Initializes the NodeManager: determines the MMObjectBuilder if it was not already known, and fills the fields list.



isNodeManager
final public boolean isNodeManager()(Code)



mayCreateNode
public boolean mayCreateNode()(Code)



setNodeManager
protected void setNodeManager(MMObjectNode node)(Code)



sync
protected static void sync(MMObjectBuilder builder, Map<String, Field> fieldTypes, NodeManager nodeManager)(Code)

since:
   MMBase-1.8



toNodeManager
final public NodeManager toNodeManager()(Code)



Fields inherited from org.mmbase.bridge.implementation.BasicNode
protected String account(Code)(Java Doc)
final protected BasicCloud cloud(Code)(Java Doc)
protected BasicNodeManager nodeManager(Code)(Java Doc)
protected MMObjectNode noderef(Code)(Java Doc)
protected int temporaryNodeId(Code)(Java Doc)

Methods inherited from org.mmbase.bridge.implementation.BasicNode
public void cancel()(Code)(Java Doc)
protected void checkAccount()(Code)(Java Doc)
protected void checkCommit()(Code)(Java Doc)
protected void checkCreate()(Code)(Java Doc)
protected void checkDelete()(Code)(Java Doc)
protected void checkWrite()(Code)(Java Doc)
public void commit()(Code)(Java Doc)
public int countRelatedNodes(NodeManager otherNodeManager, String role, String direction)(Code)(Java Doc)
public int countRelatedNodes(String type)(Code)(Java Doc)
public void createAlias(String aliasName)(Code)(Java Doc)
protected FieldValue createFunctionValue(Object result)(Code)(Java Doc)
public Parameters createParameters(String functionName)(Code)(Java Doc)
public void delete(boolean deleteRelations)(Code)(Java Doc)
public void deleteAlias(String aliasName)(Code)(Java Doc)
public void deleteRelations(String type) throws NotFoundException(Code)(Java Doc)
protected void finalize()(Code)(Java Doc)
public StringList getAliases()(Code)(Java Doc)
public boolean getBooleanValue(String fieldName)(Code)(Java Doc)
public int getByteSize()(Code)(Java Doc)
public int getByteSize(SizeOf sizeof)(Code)(Java Doc)
public byte[] getByteValue(String fieldName)(Code)(Java Doc)
public Set<String> getChanged()(Code)(Java Doc)
public Cloud getCloud()(Code)(Java Doc)
public String getContext()(Code)(Java Doc)
public Date getDateValue(String fieldName)(Code)(Java Doc)
public double getDoubleValue(String fieldName)(Code)(Java Doc)
public float getFloatValue(String fieldName)(Code)(Java Doc)
public Collection<Function<?>> getFunctions()(Code)(Java Doc)
public java.io.InputStream getInputStreamValue(String fieldName)(Code)(Java Doc)
public int getIntValue(String fieldName)(Code)(Java Doc)
public List getListValue(String fieldName)(Code)(Java Doc)
public long getLongValue(String fieldName)(Code)(Java Doc)
final protected MMObjectNode getNode()(Code)(Java Doc)
protected Function getNodeFunction(String functionName)(Code)(Java Doc)
public NodeManager getNodeManager()(Code)(Java Doc)
public Node getNodeValue(String fieldName)(Code)(Java Doc)
public int getNumber()(Code)(Java Doc)
public StringList getPossibleContexts()(Code)(Java Doc)
protected NodeList getRelatedNodes(NodeManager otherManager, String role)(Code)(Java Doc)
public NodeList getRelatedNodes(NodeManager otherManager, String role, String searchDir)(Code)(Java Doc)
public RelationList getRelations(String role, String otherNodeManager) throws NotFoundException(Code)(Java Doc)
public RelationList getRelations(String role, NodeManager nodeManager, String searchDir) throws NotFoundException(Code)(Java Doc)
public long getSize(String fieldName)(Code)(Java Doc)
public String getStringValue(String fieldName)(Code)(Java Doc)
public Object getValueWithoutProcess(String fieldName)(Code)(Java Doc)
public Document getXMLValue(String fieldName)(Code)(Java Doc)
public boolean hasRelations()(Code)(Java Doc)
protected void init()(Code)(Java Doc)
protected void invalidateNode()(Code)(Java Doc)
public boolean isChanged(String fieldName)(Code)(Java Doc)
public boolean isChanged()(Code)(Java Doc)
public boolean isNew()(Code)(Java Doc)
public boolean isNull(String fieldName)(Code)(Java Doc)
public boolean mayChangeContext()(Code)(Java Doc)
public boolean mayDelete()(Code)(Java Doc)
public boolean mayWrite()(Code)(Java Doc)
public void setContext(String context)(Code)(Java Doc)
protected void setNode(MMObjectNode n)(Code)(Java Doc)
protected void setNodeManager(MMObjectNode node)(Code)(Java Doc)
protected void setSize(String fieldName, long size)(Code)(Java Doc)
protected void setValueWithoutChecks(String fieldName, Object value)(Code)(Java Doc)
protected Integer toNodeNumber(Object v)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from org.mmbase.bridge.util.AbstractNode
public void cancel()(Code)(Java Doc)
protected void checkWrite()(Code)(Java Doc)
public void commit()(Code)(Java Doc)
final public int compareTo(Node o)(Code)(Java Doc)
public int countRelatedNodes(NodeManager otherNodeManager, String role, String direction)(Code)(Java Doc)
public int countRelatedNodes(String type)(Code)(Java Doc)
final public int countRelations()(Code)(Java Doc)
final public int countRelations(String type)(Code)(Java Doc)
public void createAlias(String aliasName)(Code)(Java Doc)
protected FieldValue createFunctionValue(Object result)(Code)(Java Doc)
public Parameters createParameters(String functionName)(Code)(Java Doc)
public Relation createRelation(Node destinationNode, RelationManager relationManager)(Code)(Java Doc)
final public void delete()(Code)(Java Doc)
public void delete(boolean deleteRelations)(Code)(Java Doc)
public void deleteAlias(String aliasName)(Code)(Java Doc)
final public void deleteRelations()(Code)(Java Doc)
public void deleteRelations(String type) throws NotFoundException(Code)(Java Doc)
final public boolean equals(Object o)(Code)(Java Doc)
public StringList getAliases()(Code)(Java Doc)
public boolean getBooleanValue(String fieldName)(Code)(Java Doc)
public byte[] getByteValue(String fieldName)(Code)(Java Doc)
public Set<String> getChanged()(Code)(Java Doc)
public String getContext()(Code)(Java Doc)
public Date getDateValue(String fieldName)(Code)(Java Doc)
public double getDoubleValue(String fieldName)(Code)(Java Doc)
final public FieldValue getFieldValue(String fieldName) throws NotFoundException(Code)(Java Doc)
final public FieldValue getFieldValue(Field field)(Code)(Java Doc)
public float getFloatValue(String fieldName)(Code)(Java Doc)
final public Function getFunction(String functionName)(Code)(Java Doc)
public FieldValue getFunctionValue(String functionName, List parameters)(Code)(Java Doc)
public java.io.InputStream getInputStreamValue(String fieldName)(Code)(Java Doc)
public int getIntValue(String fieldName)(Code)(Java Doc)
public List getListValue(String fieldName)(Code)(Java Doc)
public long getLongValue(String fieldName)(Code)(Java Doc)
protected Function getNodeFunction(String functionName)(Code)(Java Doc)
public Node getNodeValue(String fieldName)(Code)(Java Doc)
public int getNumber()(Code)(Java Doc)
final public Object getObjectValue(String fieldName)(Code)(Java Doc)
public StringList getPossibleContexts()(Code)(Java Doc)
final public NodeList getRelatedNodes()(Code)(Java Doc)
final public NodeList getRelatedNodes(String type)(Code)(Java Doc)
final public NodeList getRelatedNodes(NodeManager nodeManager)(Code)(Java Doc)
final public NodeList getRelatedNodes(String type, String role, String searchDir)(Code)(Java Doc)
public NodeList getRelatedNodes(NodeManager nodeManager, String role, String searchDir)(Code)(Java Doc)
final public RelationList getRelations()(Code)(Java Doc)
final public RelationList getRelations(String role)(Code)(Java Doc)
final public RelationList getRelations(String role, NodeManager nodeManager)(Code)(Java Doc)
public RelationList getRelations(String role, NodeManager nodeManager, String searchDir) throws NotFoundException(Code)(Java Doc)
public RelationList getRelations(String role, String nodeManager) throws NotFoundException(Code)(Java Doc)
public String getStringValue(String fieldName)(Code)(Java Doc)
final public Object getValue(String fieldName)(Code)(Java Doc)
public Document getXMLValue(String fieldName)(Code)(Java Doc)
final public Element getXMLValue(String fieldName, Document tree)(Code)(Java Doc)
public boolean hasRelations()(Code)(Java Doc)
final public int hashCode()(Code)(Java Doc)
public boolean isChanged(String fieldName)(Code)(Java Doc)
public boolean isChanged()(Code)(Java Doc)
public boolean isNew()(Code)(Java Doc)
public boolean isNodeManager()(Code)(Java Doc)
public boolean isNull(String fieldName)(Code)(Java Doc)
public boolean isRelation()(Code)(Java Doc)
public boolean isRelationManager()(Code)(Java Doc)
public boolean mayChangeContext()(Code)(Java Doc)
public boolean mayDelete()(Code)(Java Doc)
public boolean mayWrite()(Code)(Java Doc)
final public void processCommit()(Code)(Java Doc)
protected Object processNull(int type, Field field)(Code)(Java Doc)
final public void setBooleanValue(String fieldName, boolean value)(Code)(Java Doc)
final public void setByteValue(String fieldName, byte[] value)(Code)(Java Doc)
public void setContext(String context)(Code)(Java Doc)
final public void setDateValue(String fieldName, Date value)(Code)(Java Doc)
final public void setDoubleValue(String fieldName, double value)(Code)(Java Doc)
final public void setFloatValue(String fieldName, float value)(Code)(Java Doc)
final public void setInputStreamValue(String fieldName, InputStream value, long size)(Code)(Java Doc)
final public void setIntValue(String fieldName, int value)(Code)(Java Doc)
final public void setListValue(String fieldName, List value)(Code)(Java Doc)
final public void setLongValue(String fieldName, long value)(Code)(Java Doc)
final public void setNodeValue(String fieldName, Node value)(Code)(Java Doc)
final public void setObjectValue(String fieldName, Object value)(Code)(Java Doc)
abstract protected void setSize(String fieldName, long size)(Code)(Java Doc)
final public void setStringValue(String fieldName, String value)(Code)(Java Doc)
final public void setValue(String fieldName, Object value)(Code)(Java Doc)
abstract protected void setValueWithoutChecks(String fieldName, Object value)(Code)(Java Doc)
public void setValueWithoutProcess(String fieldName, Object value)(Code)(Java Doc)
final public void setXMLValue(String fieldName, Document value)(Code)(Java Doc)
public NodeManager toNodeManager()(Code)(Java Doc)
protected Integer toNodeNumber(Object v)(Code)(Java Doc)
public Relation toRelation()(Code)(Java Doc)
public RelationManager toRelationManager()(Code)(Java Doc)
public Collection<String> validate()(Code)(Java Doc)

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.