Java Doc for OrderedSubnodeList.java in  » Web-Framework » helma » helma » objectmodel » db » 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 » Web Framework » helma » helma.objectmodel.db 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


helma.objectmodel.db.SubnodeList
   helma.objectmodel.db.OrderedSubnodeList

All known Subclasses:   helma.objectmodel.db.UpdateableSubnodeList,
OrderedSubnodeList
public class OrderedSubnodeList extends SubnodeList (Code)

author:
   manfred andres
author:
   This subnode-collection may be used to add nodes in an ordered way depending on
author:
   the given order. It is also possible to retrieve views of this list in a different
author:
   order. These views will be cached and automatically updated if this List's add-
author:
   or remove-methods are called.



Constructor Summary
public  OrderedSubnodeList(WrappedNodeManager nmgr, Relation rel)
     Construct a new OrderedSubnodeList.
public  OrderedSubnodeList(WrappedNodeManager nmgr, Relation rel, SubnodeList origin, String expr)
     This constructor is used to create a view for the OrderedSubnodeList origin.

Method Summary
public  booleanadd(Object obj)
    
public  voidadd(int idx, Object obj)
    
 booleanadd(Object obj, boolean sort)
    
public  booleanaddAll(Collection col)
    
public  booleanaddSorted(Object obj)
     Adds the specified object to this list without performing custom ordering.
public static  intcompareNumericString(String a, String b)
     Compare two strings containing numbers depending on their numeric values instead of doing a lexicographical comparison.
public  ListgetOrderedView(String order)
    
public  booleanremoveAll(Collection c)
    
public  booleanretainAll(Collection c)
    
public  booleansortIn(Object obj)
    
public  intsortIn(Collection col, boolean colHasDefaultOrder)
     Add all nodes contained inside the specified Collection to this UpdateableSubnodeList.


Constructor Detail
OrderedSubnodeList
public OrderedSubnodeList(WrappedNodeManager nmgr, Relation rel)(Code)
Construct a new OrderedSubnodeList. The Relation is needed to get the information about the ORDERING



OrderedSubnodeList
public OrderedSubnodeList(WrappedNodeManager nmgr, Relation rel, SubnodeList origin, String expr)(Code)
This constructor is used to create a view for the OrderedSubnodeList origin.
Parameters:
  origin - the origin-list which holds the elements
Parameters:
  expr - the new order for this view
Parameters:
  rel - the relation given for the origin-list




Method Detail
add
public boolean add(Object obj)(Code)
Adds the specified object to this list performing custom ordering
Parameters:
  obj - element to be inserted.



add
public void add(int idx, Object obj)(Code)
Adds the specified object to the list at the given position
Parameters:
  idx - the index to insert the element at
Parameters:
  obj - the object t add



add
boolean add(Object obj, boolean sort)(Code)



addAll
public boolean addAll(Collection col)(Code)



addSorted
public boolean addSorted(Object obj)(Code)
Adds the specified object to this list without performing custom ordering.
Parameters:
  obj - element to be inserted.



compareNumericString
public static int compareNumericString(String a, String b)(Code)
Compare two strings containing numbers depending on their numeric values instead of doing a lexicographical comparison.
Parameters:
  a - the first String
Parameters:
  b - the second String



getOrderedView
public List getOrderedView(String order)(Code)



removeAll
public boolean removeAll(Collection c)(Code)
remove all elements contained inside the specified collection from this List
Parameters:
  c - the Collection containing all Objects to remove from this List true if the List has been modified



retainAll
public boolean retainAll(Collection c)(Code)
remove all elements from this List, which are NOT specified inside the specified Collecion
Parameters:
  c - the Collection containing all Objects to keep on the List true if the List has been modified



sortIn
public boolean sortIn(Object obj)(Code)
add a new node honoring the Nodes SQL-Order
Parameters:
  obj - the object to add



sortIn
public int sortIn(Collection col, boolean colHasDefaultOrder)(Code)
Add all nodes contained inside the specified Collection to this UpdateableSubnodeList. The order of the added Nodes is assumed to be ordered according to the SQL-Order-Clause given for this Subnode collection but doesn't prevent adding of unordered Collections. Ordered Collections will be sorted in more efficiently than unordered ones.
Parameters:
  col - the collection containing all elements to add in the order returned by the select-statement
Parameters:
  colHasDefaultOrder - true if the given collection does have the default-order defined by the relation



Fields inherited from helma.objectmodel.db.SubnodeList
transient WrappedNodeManager nmgr(Code)(Java Doc)
transient Relation rel(Code)(Java Doc)
transient HashMap views(Code)(Java Doc)

Methods inherited from helma.objectmodel.db.SubnodeList
public boolean add(Object obj)(Code)(Java Doc)
public void add(int idx, Object obj)(Code)(Java Doc)
public boolean addSorted(Object obj)(Code)(Java Doc)
protected void addToViews(Object obj)(Code)(Java Doc)
public List getOrderedView(String order)(Code)(Java Doc)
public Object remove(int idx)(Code)(Java Doc)
public boolean remove(Object obj)(Code)(Java Doc)
protected void removeFromViews(Object obj)(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.