Java Doc for SortedSet.java in  » Database-ORM » JPOX » org » jpox » sco » simple » 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 » JPOX » org.jpox.sco.simple 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.util.AbstractSet
   org.jpox.sco.simple.SortedSet

SortedSet
public class SortedSet extends java.util.AbstractSet implements java.util.SortedSet,SCOCollection,SCOMtoN,Cloneable(Code)
A mutable second-class SortedSet object. This is the simplified form that intercepts mutators and marks the field as dirty.
version:
   $Revision: 1.3 $


Field Summary
final protected static  LocaliserLOCALISER
    
protected transient  booleanallowNulls
    
protected  java.util.TreeSetdelegate
     The internal "delegate".
protected transient  StringfieldName
    
protected transient  intfieldNumber
    
protected transient  Objectowner
    
protected transient  StateManagerownerSM
    

Constructor Summary
public  SortedSet(StateManager ownerSM, String fieldName)
     Constructor, using the StateManager of the "owner" and the field name.

Method Summary
public  booleanadd(Object element)
     Method to add an element to the SortedSet.
public  booleanaddAll(Collection elements)
     Method to add a collection to the SortedSet.
public  voidattachCopy(Object value)
     Method to return an attached copy of the passed (detached) value.
public  voidclear()
    
public  Objectclone()
     Creates and returns a copy of this object.
public  Comparatorcomparator()
     Accessor for the comparator.
public  booleancontains(Object element)
     Accessor for whether an element is contained in this Set.
public synchronized  booleancontainsAll(java.util.Collection c)
     Accessor for whether a collection is contained in this Set.
public  ObjectdetachCopy(FetchPlanState state)
     Method to return a detached copy of the container.
public synchronized  booleanequals(Object o)
     Equality operator.
Parameters:
  o - The object to compare against.
public  Objectfirst()
     Accessor for the first element in the sorted set.
public  voidflush()
     Method to flush the changes to the datastore when operating in queued mode.
public  StringgetFieldName()
     Accessor for the field name.
public  ObjectgetOwner()
     Accessor for the owner object.
public  ObjectgetValue()
     Accessor for the unwrapped value that we are wrapping.
public synchronized  inthashCode()
     Hashcode operator.
public  java.util.SortedSetheadSet(Object toElement)
     Method to retrieve the head elements up to the specified element.
Parameters:
  toElement - the element to return up to.
public  voidinitialise(Object o, boolean forInsert, boolean forUpdate)
     Method to initialise the SCO from an existing value.
public  voidinitialise()
     Method to initialise the SCO for use.
protected  voidinitialiseDelegate()
     Convenience method to set up the delegate respecting any comparator specified in MetaData.
public  booleanisEmpty()
     Accessor for whether the SortedSet is empty.
public  Iteratoriterator()
     Accessor for an iterator for the Set.
public  Objectlast()
     Accessor for the last element in the sorted set.
public  voidload()
     Method to effect the load of the data in the SCO.
public  voidmakeDirty()
    
public synchronized  booleanremove(Object element)
    
public synchronized  booleanremove(Object element, boolean allowCascadeDelete)
    
public  booleanremoveAll(java.util.Collection elements)
     Method to remove all elements from the collection from the SortedSet.
public synchronized  booleanretainAll(java.util.Collection c)
     Method to retain a Collection of elements (and remove all others).
public  intsize()
     Accessor for the size of the SortedSet.
public  java.util.SortedSetsubSet(Object fromElement, Object toElement)
     Method to retrieve the subset of elements between the specified elements.
public  java.util.SortedSettailSet(Object fromElement)
     Method to retrieve the set of elements after the specified element.
public  Object[]toArray()
     Method to return the list as an array.
public  Object[]toArray(Object a)
     Method to return the list as an array.
public synchronized  voidunsetOwner()
     Method to unset the owner and field information.
public  voidupdateEmbeddedElement(Object element, int fieldNumber, Object value)
     Method to update an embedded element in this collection.
protected  ObjectwriteReplace()
     The writeReplace method is called when ObjectOutputStream is preparing to write the object to the stream.

Field Detail
LOCALISER
final protected static Localiser LOCALISER(Code)



allowNulls
protected transient boolean allowNulls(Code)



delegate
protected java.util.TreeSet delegate(Code)
The internal "delegate".



fieldName
protected transient String fieldName(Code)



fieldNumber
protected transient int fieldNumber(Code)



owner
protected transient Object owner(Code)



ownerSM
protected transient StateManager ownerSM(Code)




Constructor Detail
SortedSet
public SortedSet(StateManager ownerSM, String fieldName)(Code)
Constructor, using the StateManager of the "owner" and the field name.
Parameters:
  ownerSM - The owner StateManager
Parameters:
  fieldName - The name of the field of the SCO.




Method Detail
add
public boolean add(Object element)(Code)
Method to add an element to the SortedSet.
Parameters:
  element - The new element Whether it was added ok.



addAll
public boolean addAll(Collection elements)(Code)
Method to add a collection to the SortedSet.
Parameters:
  elements - The collection Whether it was added ok.



attachCopy
public void attachCopy(Object value)(Code)
Method to return an attached copy of the passed (detached) value. The returned attached copy is a SCO wrapper. Goes through the existing elements in the store for this owner field and removes ones no longer present, and adds new elements. All elements in the (detached) value are attached.
Parameters:
  value - The new (collection) value



clear
public void clear()(Code)
Method to clear the SortedSet



clone
public Object clone()(Code)
Creates and returns a copy of this object. The cloned object



comparator
public Comparator comparator()(Code)
Accessor for the comparator. The comparator



contains
public boolean contains(Object element)(Code)
Accessor for whether an element is contained in this Set.
Parameters:
  element - The element Whether it is contained.



containsAll
public synchronized boolean containsAll(java.util.Collection c)(Code)
Accessor for whether a collection is contained in this Set.
Parameters:
  c - The collection Whether it is contained.



detachCopy
public Object detachCopy(FetchPlanState state)(Code)
Method to return a detached copy of the container. Recurse sthrough the elements so that they are likewise detached.
Parameters:
  state - State for detachment process The detached container



equals
public synchronized boolean equals(Object o)(Code)
Equality operator.
Parameters:
  o - The object to compare against. Whether this object is the same.



first
public Object first()(Code)
Accessor for the first element in the sorted set. The first element



flush
public void flush()(Code)
Method to flush the changes to the datastore when operating in queued mode. Does nothing in "direct" mode.



getFieldName
public String getFieldName()(Code)
Accessor for the field name. The field name



getOwner
public Object getOwner()(Code)
Accessor for the owner object. The owner object



getValue
public Object getValue()(Code)
Accessor for the unwrapped value that we are wrapping. The unwrapped value



hashCode
public synchronized int hashCode()(Code)
Hashcode operator. The Hash code.



headSet
public java.util.SortedSet headSet(Object toElement)(Code)
Method to retrieve the head elements up to the specified element.
Parameters:
  toElement - the element to return up to. The set of elements meeting the input



initialise
public void initialise(Object o, boolean forInsert, boolean forUpdate)(Code)
Method to initialise the SCO from an existing value.
Parameters:
  o - The object to set from
Parameters:
  forInsert - Whether the object needs inserting in the datastore with this value
Parameters:
  forUpdate - Whether to update the datastore with this value



initialise
public void initialise()(Code)
Method to initialise the SCO for use.



initialiseDelegate
protected void initialiseDelegate()(Code)
Convenience method to set up the delegate respecting any comparator specified in MetaData.



isEmpty
public boolean isEmpty()(Code)
Accessor for whether the SortedSet is empty. Whether it is empty.



iterator
public Iterator iterator()(Code)
Accessor for an iterator for the Set. The iterator



last
public Object last()(Code)
Accessor for the last element in the sorted set. The last element



load
public void load()(Code)
Method to effect the load of the data in the SCO. Used when the SCO supports lazy-loading to tell it to load all now.



makeDirty
public void makeDirty()(Code)
Utility to mark the object as dirty



remove
public synchronized boolean remove(Object element)(Code)
Method to remove an element from the List
Parameters:
  element - The Element to remove Whether it was removed successfully.



remove
public synchronized boolean remove(Object element, boolean allowCascadeDelete)(Code)
Method to remove an element from the List
Parameters:
  element - The Element to remove Whether it was removed successfully.



removeAll
public boolean removeAll(java.util.Collection elements)(Code)
Method to remove all elements from the collection from the SortedSet.
Parameters:
  elements - The collection of elements to remove Whether it was removed ok.



retainAll
public synchronized boolean retainAll(java.util.Collection c)(Code)
Method to retain a Collection of elements (and remove all others).
Parameters:
  c - The collection to retain Whether they were retained successfully.



size
public int size()(Code)
Accessor for the size of the SortedSet. The size.



subSet
public java.util.SortedSet subSet(Object fromElement, Object toElement)(Code)
Method to retrieve the subset of elements between the specified elements.
Parameters:
  fromElement - The start element
Parameters:
  toElement - The end element The set of elements meeting the input



tailSet
public java.util.SortedSet tailSet(Object fromElement)(Code)
Method to retrieve the set of elements after the specified element.
Parameters:
  fromElement - The start element The set of elements meeting the input



toArray
public Object[] toArray()(Code)
Method to return the list as an array. The array



toArray
public Object[] toArray(Object a)(Code)
Method to return the list as an array.
Parameters:
  a - The runtime types of the array being defined by this param The array



unsetOwner
public synchronized void unsetOwner()(Code)
Method to unset the owner and field information.



updateEmbeddedElement
public void updateEmbeddedElement(Object element, int fieldNumber, Object value)(Code)
Method to update an embedded element in this collection.
Parameters:
  element - The element
Parameters:
  fieldNumber - Number of field in the element
Parameters:
  value - New value for this field



writeReplace
protected Object writeReplace() throws ObjectStreamException(Code)
The writeReplace method is called when ObjectOutputStream is preparing to write the object to the stream. The ObjectOutputStream checks whether the class defines the writeReplace method. If the method is defined, the writeReplace method is called to allow the object to designate its replacement in the stream. The object returned should be either of the same type as the object passed in or an object that when read and resolved will result in an object of a type that is compatible with all references to the object. the replaced object
throws:
  ObjectStreamException -



Methods inherited from java.util.AbstractSet
public boolean equals(Object o)(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public boolean removeAll(Collection c)(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.