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


org.mmbase.module.core.MMTable
   org.mmbase.module.core.MMObjectBuilder
      org.mmbase.module.corebuilders.OAlias

OAlias
public class OAlias extends MMObjectBuilder (Code)
The OAlias builder is an optional corebuilder used to associate aliases with nodes. Each OAlias object contains a name field (the alias), and a destination field (the number of the object referenced). This builder is not used directly. If you add aliases, use MMObjectBuilder.createAlias instead of the builder's insert method. MMBase will run without this builder, but most applications use aliases.
author:
   Rico Jansen
author:
   Michiel Meeuwissen
version:
   $Id: OAlias.java,v 1.23 2007/04/05 14:04:18 pierre Exp $



Constructor Summary
public  OAlias()
    

Method Summary
public  voidcreateAlias(String alias, int number)
     Creates an alias for the node with the given number, and updates the alias cache.
public  voidcreateAlias(String alias, int number, String owner)
     Creates an alias for the node with the given number, and updates the alias cache.
public  StringgetAlias(int number)
     Obtain the alias of a node.
public  List<String>getAliasList(int number)
     Obtain the aliases of a node.
public  MMObjectNodegetAliasedNode(String alias)
    
public  intgetNumber(String name)
    
public  booleaninit()
    
public  booleannodeRemoteChanged(String machine, String number, String builder, String ctype)
     If a node is changed or newly created, this adds the new or updated alias to the cache.
public  voidremoveNode(MMObjectNode node)
    


Constructor Detail
OAlias
public OAlias()(Code)




Method Detail
createAlias
public void createAlias(String alias, int number)(Code)
Creates an alias for the node with the given number, and updates the alias cache.
since:
   MMBase-1.7



createAlias
public void createAlias(String alias, int number, String owner)(Code)
Creates an alias for the node with the given number, and updates the alias cache.
since:
   MMBase-1.8



getAlias
public String getAlias(int number)(Code)
Obtain the alias of a node. If a node has more aliases, it returns only one. Which one is not specified.
Parameters:
  number - the number of the node the alias of the node, or null if it does not exist
See Also:   OAlias.getNumber



getAliasList
public List<String> getAliasList(int number)(Code)
Obtain the aliases of a node. If a node has more aliases, it returns only one. Which one is not specified.
Parameters:
  number - the number of the node a List of the aliases of the node, or an emoty list if none exist
See Also:   OAlias.getAlias



getAliasedNode
public MMObjectNode getAliasedNode(String alias)(Code)
Obtain a node from the cloud through its alias
Parameters:
  alias - the alias of the desired node the node, or null if the alias does not exist
throws:
  RuntimeException - if the alias exists but the node itself doesn't (this indicatesan inconsistency in the database)
See Also:   OAlias.getNumber



getNumber
public int getNumber(String name)(Code)
Obtain the number of a node through its alias
Parameters:
  name - the alias of the desired node the number of the node, or -1 if the alias does not exist
See Also:   OAlias.getAliasedNode



init
public boolean init()(Code)



nodeRemoteChanged
public boolean nodeRemoteChanged(String machine, String number, String builder, String ctype)(Code)
If a node is changed or newly created, this adds the new or updated alias to the cache.
since:
   MMBase-1.7.1



removeNode
public void removeNode(MMObjectNode node)(Code)
Remove a node from the cloud and update the cache
Parameters:
  node - The node to remove.



Fields inherited from org.mmbase.module.core.MMObjectBuilder
final public static Parameter[] AGE_PARAMETERS(Code)(Java Doc)
final public static String DEFAULT_ALINEA(Code)(Java Doc)
final public static String DEFAULT_EOL(Code)(Java Doc)
final public static int EVENT_TYPE_LOCAL(Code)(Java Doc)
final public static int EVENT_TYPE_REMOTE(Code)(Java Doc)
final public static String FIELD_NUMBER(Code)(Java Doc)
final public static String FIELD_OBJECT_TYPE(Code)(Java Doc)
final public static String FIELD_OWNER(Code)(Java Doc)
final public static String GUI_INDICATOR(Code)(Java Doc)
final public static Parameter[] GUI_PARAMETERS(Code)(Java Doc)
final public static String SYSTEM_OWNER(Code)(Java Doc)
final public static int TEMPNODE_DEFAULT_SIZE(Code)(Java Doc)
final public static String TMP_FIELD_EXISTS(Code)(Java Doc)
final public static String TMP_FIELD_NUMBER(Code)(Java Doc)
final protected static Parameter[] WRAP_PARAMETERS(Code)(Java Doc)
protected boolean broadCastChanges(Code)(Java Doc)
public String description(Code)(Java Doc)
public Hashtable<String, String> descriptions(Code)(Java Doc)
final protected Map<String, CoreField> fields(Code)(Java Doc)
protected static BlobCache genericBlobCache(Code)(Java Doc)
protected Function<Collection<? extends Function>> getFunctions(Code)(Java Doc)
protected Function<String> guiFunction(Code)(Java Doc)
protected Function<Object> infoFunction(Code)(Java Doc)
protected long internalVersion(Code)(Java Doc)
protected static org.mmbase.cache.NodeCache nodeCache(Code)(Java Doc)
protected int oType(Code)(Java Doc)
public String searchAge(Code)(Java Doc)
public static Map<String, MMObjectNode> temporaryNodes(Code)(Java Doc)
protected boolean virtual(Code)(Java Doc)
protected Function<String> wrapFunction(Code)(Java Doc)

Methods inherited from org.mmbase.module.core.MMObjectBuilder
public void addEventListener(org.mmbase.core.event.EventListener listener)(Code)(Java Doc)
public void addField(CoreField def)(Code)(Java Doc)
public boolean addLocalObserver(MMBaseObserver obs)(Code)(Java Doc)
public boolean addRemoteObserver(MMBaseObserver obs)(Code)(Java Doc)
public boolean broadcastChanges()(Code)(Java Doc)
public boolean checkAddTmpField(String field)(Code)(Java Doc)
public int clearBlobCache(int nodeNumber)(Code)(Java Doc)
public boolean commit(MMObjectNode node)(Code)(Java Doc)
public boolean create()(Code)(Java Doc)
public boolean createAlias(int number, String alias, String owner)(Code)(Java Doc)
public boolean createAlias(int number, String alias)(Code)(Java Doc)
public void delete()(Code)(Java Doc)
final public boolean equals(Object o)(Code)(Java Doc)
public boolean equals(MMObjectNode o1, MMObjectNode o2)(Code)(Java Doc)
protected Object executeFunction(MMObjectNode node, String function, List arguments)(Code)(Java Doc)
protected Object executeFunction(MMObjectNode node, String function, String field)(Code)(Java Doc)
public boolean fieldLocalChanged(String number, String builder, String field, String value)(Code)(Java Doc)
public List<MMObjectBuilder> getAncestors()(Code)(Java Doc)
protected BlobCache getBlobCache(String fieldName)(Code)(Java Doc)
public String getClassName()(Code)(Java Doc)
public File getConfigFile()(Code)(Java Doc)
public String getConfigResource()(Code)(Java Doc)
public int getDBState(String fieldName)(Code)(Java Doc)
public int getDBType(String fieldName)(Code)(Java Doc)
public DataTypeCollector getDataTypeCollector()(Code)(Java Doc)
public MMObjectNode getDefaultTeaser(MMObjectNode node, MMObjectNode tnode)(Code)(Java Doc)
public String getDefaultUrl(int src)(Code)(Java Doc)
public List<MMObjectBuilder> getDescendants()(Code)(Java Doc)
public String getDescription()(Code)(Java Doc)
public String getDescription(String lang)(Code)(Java Doc)
public Hashtable<String, String> getDescriptions()(Code)(Java Doc)
public MMObjectNode getEmptyNode(String owner)(Code)(Java Doc)
public FieldDefs getField(String fieldName)(Code)(Java Doc)
public Set<String> getFieldNames()(Code)(Java Doc)
public Collection<CoreField> getFields()(Code)(Java Doc)
public List<CoreField> getFields(int sortOrder)(Code)(Java Doc)
protected Function getFunction(MMObjectNode node, String functionName)(Code)(Java Doc)
protected Vector<String> getFunctionParameters(String fields)(Code)(Java Doc)
protected Collection<Function<?>> getFunctions(MMObjectNode node)(Code)(Java Doc)
public String getGUIIndicator(MMObjectNode node, Parameters pars)(Code)(Java Doc)
public String getGUIIndicator(MMObjectNode node)(Code)(Java Doc)
public String getGUIIndicator(String fieldName, MMObjectNode node)(Code)(Java Doc)
protected String getHTML(String body)(Code)(Java Doc)
public String getInitParameter(String name)(Code)(Java Doc)
public Map<String, String> getInitParameters()(Code)(Java Doc)
public Map getInitParameters(String contextPath)(Code)(Java Doc)
public long getInternalVersion()(Code)(Java Doc)
public Vector<String> getList(PageInfo sp, StringTagger tagger, StringTokenizer tok)(Code)(Java Doc)
protected String getLocaleGUIIndicator(Locale locale, String field, MMObjectNode node)(Code)(Java Doc)
protected String getLocaleGUIIndicator(Locale locale, MMObjectNode node)(Code)(Java Doc)
public String getMachineName()(Code)(Java Doc)
public String getMaintainer()(Code)(Java Doc)
public MMObjectNode getNewNode(String owner)(Code)(Java Doc)
protected MMObjectNode getNewTmpNode(String owner, String key)(Code)(Java Doc)
public FieldDefs getNextField(String currentfield, int sortorder)(Code)(Java Doc)
public FieldDefs getNextField(String currentfield)(Code)(Java Doc)
public MMObjectNode getNode(String key, boolean useCache)(Code)(Java Doc)
public MMObjectNode getNode(String key)(Code)(Java Doc)
public MMObjectNode getNode(int number)(Code)(Java Doc)
public MMObjectNode getNodeFromCache(Integer number)(Code)(Java Doc)
protected String getNodeGUIIndicator(MMObjectNode node, Parameters params)(Code)(Java Doc)
public int getNumber()(Code)(Java Doc)
public int getObjectType()(Code)(Java Doc)
protected Object getObjectValue(MMObjectNode node, String field)(Code)(Java Doc)
public MMObjectBuilder getParentBuilder()(Code)(Java Doc)
public String getPluralName(String lang)(Code)(Java Doc)
public String getPluralName()(Code)(Java Doc)
public Hashtable<String, String> getPluralNames()(Code)(Java Doc)
public Vector<MMObjectNode> getRelations_main(int src)(Code)(Java Doc)
public String getSearchAge()(Code)(Java Doc)
public String getShort(String str, int len)(Code)(Java Doc)
protected byte[] getShortedByte(String fieldName, MMObjectNode node)(Code)(Java Doc)
protected String getShortedText(String fieldName, MMObjectNode node)(Code)(Java Doc)
public String getSingularName(String lang)(Code)(Java Doc)
public String getSingularName()(Code)(Java Doc)
public Hashtable<String, String> getSingularNames()(Code)(Java Doc)
public String getSmartPath(String documentRoot, String path, String nodeNumber, String version)(Code)(Java Doc)
protected static MMObjectNode getTmpNode(String key)(Code)(Java Doc)
protected static String getURLEncode(String body)(Code)(Java Doc)
public Object getValue(MMObjectNode node, String field)(Code)(Java Doc)
public int getVersion()(Code)(Java Doc)
protected static String getWAP(String body)(Code)(Java Doc)
public String getXMLPath()(Code)(Java Doc)
public boolean hasField(String fieldName)(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public int hashCode(MMObjectNode o)(Code)(Java Doc)
public static String hostname_function(String url)(Code)(Java Doc)
public boolean init()(Code)(Java Doc)
public int insert(int oType, String owner)(Code)(Java Doc)
public int insert(String owner, MMObjectNode node)(Code)(Java Doc)
public boolean isExtensionOf(MMObjectBuilder o)(Code)(Java Doc)
public boolean isNodeCached(Integer number)(Code)(Java Doc)
public boolean isVirtual()(Code)(Java Doc)
public void loadInitParameters()(Code)(Java Doc)
protected Function newFunctionInstance(String name, Parameter[] parameters, ReturnType returnType)(Code)(Java Doc)
public boolean nodeLocalChanged(String machine, String number, String builder, String ctype)(Code)(Java Doc)
public boolean nodeRemoteChanged(String machine, String number, String builder, String ctype)(Code)(Java Doc)
public void notify(NodeEvent event)(Code)(Java Doc)
public void notify(RelationEvent event)(Code)(Java Doc)
public MMObjectNode preCommit(MMObjectNode node)(Code)(Java Doc)
public boolean process(PageInfo sp, StringTokenizer command, Hashtable cmds, Hashtable vars)(Code)(Java Doc)
public void removeEventListener(org.mmbase.core.event.EventListener listener)(Code)(Java Doc)
public void removeField(String fieldName)(Code)(Java Doc)
public boolean removeLocalObserver(MMBaseObserver obs)(Code)(Java Doc)
public void removeNode(MMObjectNode node)(Code)(Java Doc)
public void removeRelations(MMObjectNode node)(Code)(Java Doc)
public boolean removeRemoteObserver(MMBaseObserver obs)(Code)(Java Doc)
protected void removeSyncNodes(MMObjectNode node)(Code)(Java Doc)
public String replace(PageInfo sp, StringTokenizer tok)(Code)(Java Doc)
public MMObjectNode safeCache(Integer n, MMObjectNode node)(Code)(Java Doc)
public boolean sendFieldChangeSignal(MMObjectNode node, String fieldName)(Code)(Java Doc)
public void setDefaults(MMObjectNode node)(Code)(Java Doc)
public void setDescription(String e)(Code)(Java Doc)
public void setDescriptions(Hashtable<String, String> e)(Code)(Java Doc)
public void setFields(List<CoreField> f)(Code)(Java Doc)
public void setInitParameter(String name, String value)(Code)(Java Doc)
public void setMaintainer(String m)(Code)(Java Doc)
public void setParentBuilder(MMObjectBuilder parent)(Code)(Java Doc)
public void setPluralNames(Hashtable<String, String> names)(Code)(Java Doc)
public void setSearchAge(String age)(Code)(Java Doc)
public void setSingularNames(Hashtable<String, String> names)(Code)(Java Doc)
protected String setUniqueValue(MMObjectNode node, String field, String baseValue)(Code)(Java Doc)
protected int setUniqueValue(MMObjectNode node, String field, int offset)(Code)(Java Doc)
public boolean setValue(MMObjectNode node, String fieldName, Object originalValue)(Code)(Java Doc)
public boolean setValue(MMObjectNode node, String fieldName)(Code)(Java Doc)
public void setVersion(int i)(Code)(Java Doc)
public void setXMLPath(String m)(Code)(Java Doc)
public void testValidData(MMObjectNode node) throws InvalidDataException(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public String toString(MMObjectNode n)(Code)(Java Doc)
protected void update()(Code)(Java Doc)
protected void updateFields()(Code)(Java Doc)
public static String wrap(String text, int width)(Code)(Java Doc)

Fields inherited from org.mmbase.module.core.MMTable
protected int maxNodesFromQuery(Code)(Java Doc)
protected MMBase mmb(Code)(Java Doc)
protected StorageConnector storageConnector(Code)(Java Doc)
protected String tableName(Code)(Java Doc)

Methods inherited from org.mmbase.module.core.MMTable
public int count(String where)(Code)(Java Doc)
public int count(NodeSearchQuery query) throws SearchQueryException(Code)(Java Doc)
public boolean created()(Code)(Java Doc)
public String getFullTableName()(Code)(Java Doc)
public MMBase getMMBase()(Code)(Java Doc)
public MMObjectNode getNode(int number, boolean useCache)(Code)(Java Doc)
public int getNodeType(int number)(Code)(Java Doc)
protected List<MMObjectNode> getNodes(Collection<MMObjectNode> virtuals)(Code)(Java Doc)
public List<MMObjectNode> getNodes(NodeSearchQuery query) throws SearchQueryException(Code)(Java Doc)
public List<MMObjectNode> getNodes()(Code)(Java Doc)
public StorageConnector getStorageConnector()(Code)(Java Doc)
public String getTableName()(Code)(Java Doc)
public Enumeration<MMObjectNode> search(String where)(Code)(Java Doc)
public Vector<MMObjectNode> searchVector(String where)(Code)(Java Doc)
public void setMMBase(MMBase m)(Code)(Java Doc)
public void setTableName(String tableName)(Code)(Java Doc)
public int size()(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.