Java Doc for DSetImpl.java in  » Database-ORM » db-ojb » org » apache » ojb » odmg » collections » 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 » db ojb » org.apache.ojb.odmg.collections 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.util.AbstractSet
   org.apache.ojb.odmg.collections.DSetImpl

DSetImpl
public class DSetImpl extends AbstractSet implements DSet,Serializable,PersistenceBrokerAware,ManageableCollection(Code)



Constructor Summary
public  DSetImpl()
    
public  DSetImpl(PBKey pbKey)
     DSetImpl constructor comment.

Method Summary
public  booleanadd(Object o)
    
public  voidafterDelete(PersistenceBroker broker)
    
public  voidafterInsert(PersistenceBroker broker)
    
public  voidafterLookup(PersistenceBroker broker)
    
public  voidafterStore(PersistenceBroker broker)
    
public  voidafterUpdate(PersistenceBroker broker)
    
public  voidbeforeDelete(PersistenceBroker broker)
    
public  voidbeforeInsert(PersistenceBroker broker)
     prepare itself for persistence.
public  voidbeforeUpdate(PersistenceBroker broker)
    
protected  booleancheckForOpenTransaction(TransactionImpl tx)
    
public  DSetdifference(DSet otherSet)
     Create a new DSet object that contains the elements of this collection minus the elements in otherSet.
public  booleanexistsElement(String predicate)
     Determines whether there is an element of the collection that evaluates to true for the predicate.
public  ListgetElements()
    
public  IntegergetId()
    
protected  LoggergetLog()
    
public  PBKeygetPBKey()
    
protected  TransactionImplgetTransaction()
    
public  DSetintersection(DSet otherSet)
     Create a new DSet object that is the set intersection of this DSet object and the set referenced by otherSet.
public  Iteratoriterator()
     Returns an iterator over the elements in this collection.
public  voidojbAdd(Object anObject)
     add a single Object to the Collection.
public  voidojbAddAll(ManageableCollection otherCollection)
     adds a Collection to this collection.
public  IteratorojbIterator()
     returns an Iterator over all elements in the collection.
public  booleanproperSubsetOf(org.odmg.DSet otherSet)
     Determine whether this set is a proper subset of the set referenced by otherSet.
Parameters:
  otherSet - Another set.
public  booleanproperSupersetOf(org.odmg.DSet otherSet)
     Determine whether this set is a proper superset of the set referenced by otherSet.
Parameters:
  otherSet - Another set.
public  DCollectionquery(String predicate)
     Evaluate the boolean query predicate for each element of the collection and return a new collection that contains each element that evaluated to true.
public  booleanremove(Object o)
    
public  booleanremoveAll(Collection c)
    
public  Iteratorselect(String predicate)
     Access all of the elements of the collection that evaluate to true for the provided query predicate.
public  ObjectselectElement(String predicate)
     Selects the single element of the collection for which the provided OQL query predicate is true.
Parameters:
  predicate - An OQL boolean query predicate.
public  voidsetElements(List elements)
    
public  voidsetElements(Vector elements)
     Sets the elements.
public  voidsetId(Integer id)
     Sets the id.
public  voidsetPBKey(PBKey pbKey)
    
public  intsize()
     Returns the number of elements in this collection.
public  booleansubsetOf(DSet otherSet)
     Determine whether this set is a subset of the set referenced by otherSet.
Parameters:
  otherSet - Another set.
public  booleansupersetOf(DSet otherSet)
     Determine whether this set is a superset of the set referenced by otherSet.
Parameters:
  otherSet - Another set.
public  DSetunion(DSet otherSet)
     Create a new DSet object that is the set union of this DSet object and the set referenced by otherSet.


Constructor Detail
DSetImpl
public DSetImpl()(Code)
Used by PB-Kernel to instantiate ManageableCollections FOR INTERNAL USE ONLY



DSetImpl
public DSetImpl(PBKey pbKey)(Code)
DSetImpl constructor comment.




Method Detail
add
public boolean add(Object o)(Code)



afterDelete
public void afterDelete(PersistenceBroker broker) throws PersistenceBrokerException(Code)
noop



afterInsert
public void afterInsert(PersistenceBroker broker) throws PersistenceBrokerException(Code)
noop



afterLookup
public void afterLookup(PersistenceBroker broker) throws PersistenceBrokerException(Code)
noop



afterStore
public void afterStore(PersistenceBroker broker) throws PersistenceBrokerException(Code)



afterUpdate
public void afterUpdate(PersistenceBroker broker) throws PersistenceBrokerException(Code)
noop



beforeDelete
public void beforeDelete(PersistenceBroker broker) throws PersistenceBrokerException(Code)
noop



beforeInsert
public void beforeInsert(PersistenceBroker broker) throws PersistenceBrokerException(Code)
prepare itself for persistence. Each DList entry generates an org.apache.ojb.broker.Identity for the wrapped persistent object.



beforeUpdate
public void beforeUpdate(PersistenceBroker broker) throws PersistenceBrokerException(Code)
noop



checkForOpenTransaction
protected boolean checkForOpenTransaction(TransactionImpl tx)(Code)



difference
public DSet difference(DSet otherSet)(Code)
Create a new DSet object that contains the elements of this collection minus the elements in otherSet.
Parameters:
  otherSet - A set containing elements that should not be in the result set. A newly created DSet instance that contains the elementsof this set minus those elements in otherSet.



existsElement
public boolean existsElement(String predicate) throws org.odmg.QueryInvalidException(Code)
Determines whether there is an element of the collection that evaluates to true for the predicate.
Parameters:
  predicate - An OQL boolean query predicate. True if there is an element of the collection that evaluates to truefor the predicate, otherwise false.
exception:
  org.odmg.QueryInvalidException - The query predicate is invalid.



getElements
public List getElements()(Code)



getId
public Integer getId()(Code)



getLog
protected Logger getLog()(Code)



getPBKey
public PBKey getPBKey()(Code)



getTransaction
protected TransactionImpl getTransaction()(Code)



intersection
public DSet intersection(DSet otherSet)(Code)
Create a new DSet object that is the set intersection of this DSet object and the set referenced by otherSet.
Parameters:
  otherSet - The other set to be used in the intersection operation. A newly created DSet instance that contains theintersection of the two sets.



iterator
public Iterator iterator()(Code)
Returns an iterator over the elements in this collection. There are no guarantees concerning the order in which the elements are returned (unless this collection is an instance of some class that provides a guarantee). an Iterator over the elements in this collection



ojbAdd
public void ojbAdd(Object anObject)(Code)
add a single Object to the Collection. This method is used during reading Collection elements from the database. Thus it is is save to cast anObject to the underlying element type of the collection.



ojbAddAll
public void ojbAddAll(ManageableCollection otherCollection)(Code)
adds a Collection to this collection. Used in reading Extents from the Database. Thus it is save to cast otherCollection to this.getClass().



ojbIterator
public Iterator ojbIterator()(Code)
returns an Iterator over all elements in the collection. Used during store and delete Operations. If the implementor does not return an iterator over ALL elements, OJB cannot store and delete all elements properly.



properSubsetOf
public boolean properSubsetOf(org.odmg.DSet otherSet)(Code)
Determine whether this set is a proper subset of the set referenced by otherSet.
Parameters:
  otherSet - Another set. True if this set is a proper subset of the set referenced byotherSet, otherwise false.



properSupersetOf
public boolean properSupersetOf(org.odmg.DSet otherSet)(Code)
Determine whether this set is a proper superset of the set referenced by otherSet.
Parameters:
  otherSet - Another set. True if this set is a proper superset of the set referenced byotherSet, otherwise false.



query
public DCollection query(String predicate) throws org.odmg.QueryInvalidException(Code)
Evaluate the boolean query predicate for each element of the collection and return a new collection that contains each element that evaluated to true.
Parameters:
  predicate - An OQL boolean query predicate. A new collection containing the elements that evaluated true for the predicate.
exception:
  org.odmg.QueryInvalidException - The query predicate is invalid.



remove
public boolean remove(Object o)(Code)



removeAll
public boolean removeAll(Collection c)(Code)



select
public Iterator select(String predicate) throws org.odmg.QueryInvalidException(Code)
Access all of the elements of the collection that evaluate to true for the provided query predicate.
Parameters:
  predicate - An OQL boolean query predicate. An iterator used to iterate over the elements that evaluated true for the predicate.
exception:
  org.odmg.QueryInvalidException - The query predicate is invalid.



selectElement
public Object selectElement(String predicate) throws org.odmg.QueryInvalidException(Code)
Selects the single element of the collection for which the provided OQL query predicate is true.
Parameters:
  predicate - An OQL boolean query predicate. The element that evaluates to true for the predicate. If no elementevaluates to true, null is returned.
exception:
  org.odmg.QueryInvalidException - The query predicate is invalid.



setElements
public void setElements(List elements)(Code)



setElements
public void setElements(Vector elements)(Code)
Sets the elements.
Parameters:
  elements - The elements to set



setId
public void setId(Integer id)(Code)
Sets the id.
Parameters:
  id - The id to set



setPBKey
public void setPBKey(PBKey pbKey)(Code)



size
public int size()(Code)
Returns the number of elements in this collection. If this collection contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE. the number of elements in this collection



subsetOf
public boolean subsetOf(DSet otherSet)(Code)
Determine whether this set is a subset of the set referenced by otherSet.
Parameters:
  otherSet - Another set. True if this set is a subset of the set referenced by otherSet,otherwise false.



supersetOf
public boolean supersetOf(DSet otherSet)(Code)
Determine whether this set is a superset of the set referenced by otherSet.
Parameters:
  otherSet - Another set. True if this set is a superset of the set referenced by otherSet,otherwise false.



union
public DSet union(DSet otherSet)(Code)
Create a new DSet object that is the set union of this DSet object and the set referenced by otherSet.
Parameters:
  otherSet - The other set to be used in the union operation. A newly created DSet instance that contains the union of the two sets.



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.