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


org.jpox.store.scostore.CollectionStore

CollectionStore
public interface CollectionStore extends Store(Code)
Interface representation of the backing store for a Collection.
version:
   $Revision: 1.17 $




Method Summary
 booleanadd(StateManager sm, Object element, int size)
     Method to add an element to the collection.
Parameters:
  sm - State Manager for the collection.
 booleanaddAll(StateManager sm, Collection elements, int size)
     Method to add a collection of elements to the collection.
Parameters:
  sm - State Manager for the collection.
 voidclear(StateManager sm)
     Method to clear the collection.
Parameters:
  sm - State Manager for the collection.
 booleancontains(StateManager sm, Object element)
     Method to check if an element exists in the collection.
Parameters:
  sm - State Manager for the collection.
 StringgetElementType()
     Accessor for the element type in the collection.
 QueryExpressiongetExistsSubquery(QueryExpression parentStmt, JavaTypeMapping ownerMapping, LogicSetExpression ownerTableExpr, DatastoreIdentifier existsTableAlias)
     Create a subquery for the given query that selects elements, joining to the owner table.
 QueryExpressiongetSizeSubquery(QueryExpression parentStmt, JavaTypeMapping ownerMapping, LogicSetExpression ownerTableExpr, DatastoreIdentifier sizeTableAlias)
     Create a subquery for the size of the collection.
 booleanhasOrderMapping()
     Accessor for whether the store utilises an order mapping.
 Iteratoriterator(StateManager sm)
     Accessor for an iterator for the collection.
Parameters:
  sm - State Manager for the collection.
 ScalarExpressionjoinElementsTo(QueryExpression stmt, QueryExpression parentStmt, JavaTypeMapping ownerMapping, LogicSetExpression ownerTableExpr, DatastoreIdentifier collectionTableAlias, Class filteredElementType, ScalarExpression elementExpr, DatastoreIdentifier elementTableAlias, boolean existsQuery)
     Method used in queries when contains() has been invoked.
Parameters:
  stmt - The Query Statement
Parameters:
  parentStmt - the parent Query Statement.
 QueryExpressionnewQueryStatement(StateManager sm, String candidateClass, DatastoreIdentifier candidateAlias)
     Method to return a new Query Statement containing the candidate class.
 ResultObjectFactorynewResultObjectFactory(StateManager sm, QueryExpression stmt, boolean ignoreCache, boolean useFetchPlan)
     Method to return an object factory for processing query statements.
 booleanremove(StateManager sm, Object element, int size, boolean allowDependentField)
     Method to remove an element from the collection.
Parameters:
  sm - State Manager for the collection.
 booleanremoveAll(StateManager sm, Collection elements, int size)
     Method to remove a collection of elements from the collection.
Parameters:
  sm - State Manager for the collection.
 intsize(StateManager sm)
     Accessor for the size of the collection.
Parameters:
  sm - State Manager for the collection.
 booleanupdateEmbeddedElement(StateManager sm, Object element, int fieldNumber, Object value)
     Method to update en embedded element in the collection.



Method Detail
add
boolean add(StateManager sm, Object element, int size)(Code)
Method to add an element to the collection.
Parameters:
  sm - State Manager for the collection.
Parameters:
  element - Element to add
Parameters:
  size - Current size of the collection if known. -1 if not known Whether the element was added ok



addAll
boolean addAll(StateManager sm, Collection elements, int size)(Code)
Method to add a collection of elements to the collection.
Parameters:
  sm - State Manager for the collection.
Parameters:
  elements - Elements to add
Parameters:
  size - Current size of collection (if known). -1 if not known Whether the elements were added ok



clear
void clear(StateManager sm)(Code)
Method to clear the collection.
Parameters:
  sm - State Manager for the collection.



contains
boolean contains(StateManager sm, Object element)(Code)
Method to check if an element exists in the collection.
Parameters:
  sm - State Manager for the collection.
Parameters:
  element - Element to check Whether the element exists in the collection.



getElementType
String getElementType()(Code)
Accessor for the element type in the collection. The element type.



getExistsSubquery
QueryExpression getExistsSubquery(QueryExpression parentStmt, JavaTypeMapping ownerMapping, LogicSetExpression ownerTableExpr, DatastoreIdentifier existsTableAlias)(Code)
Create a subquery for the given query that selects elements, joining to the owner table. This subquery can subsequently be used in an EXISTS expression to determine whether a Collection is empty.
Parameters:
  parentStmt - Parent query statement for this subquery
Parameters:
  ownerMapping - Id mapping for the owner
Parameters:
  ownerTableExpr - Table Expression for the owner that the subquery joins to
Parameters:
  existsTableAlias - Alias for this subquery main table Subquery returning the existence of elements



getSizeSubquery
QueryExpression getSizeSubquery(QueryExpression parentStmt, JavaTypeMapping ownerMapping, LogicSetExpression ownerTableExpr, DatastoreIdentifier sizeTableAlias)(Code)
Create a subquery for the size of the collection.
Parameters:
  parentStmt - Parent query statement for this subquery
Parameters:
  ownerMapping - Id mapping for the owner
Parameters:
  ownerTableExpr - Table Expression for the owner in the parent statement that the subquery joins to
Parameters:
  sizeTableAlias - Alias for this subquery main table Subquery returning the size



hasOrderMapping
boolean hasOrderMapping()(Code)
Accessor for whether the store utilises an order mapping. An order mapping is used to allow for ordering of elements or to allow duplicates. Whether it uses an order mapping.



iterator
Iterator iterator(StateManager sm)(Code)
Accessor for an iterator for the collection.
Parameters:
  sm - State Manager for the collection. Iterator for the collection.



joinElementsTo
ScalarExpression joinElementsTo(QueryExpression stmt, QueryExpression parentStmt, JavaTypeMapping ownerMapping, LogicSetExpression ownerTableExpr, DatastoreIdentifier collectionTableAlias, Class filteredElementType, ScalarExpression elementExpr, DatastoreIdentifier elementTableAlias, boolean existsQuery)(Code)
Method used in queries when contains() has been invoked.
Parameters:
  stmt - The Query Statement
Parameters:
  parentStmt - the parent Query Statement. If there is no parent, "parentStmt" must be equals to "stmt".
Parameters:
  ownerMapping - the mapping for the owner
Parameters:
  ownerTableExpr - Table Expression for the owner
Parameters:
  collectionTableAlias - Alias for the "Collection" table.
Parameters:
  filteredElementType - The Class Type for the filtered element
Parameters:
  elementExpr - The Expression for the element
Parameters:
  elementTableAlias - The SQL alias to assign to the element table expression
Parameters:
  existsQuery - Whether this is joining for an EXISTS query expression to the join



newQueryStatement
QueryExpression newQueryStatement(StateManager sm, String candidateClass, DatastoreIdentifier candidateAlias)(Code)
Method to return a new Query Statement containing the candidate class.
Parameters:
  sm - State Manager for the collection.
Parameters:
  candidateClass - Class of the elements.
Parameters:
  candidateAlias - Alias for the candidate The Query Statement.



newResultObjectFactory
ResultObjectFactory newResultObjectFactory(StateManager sm, QueryExpression stmt, boolean ignoreCache, boolean useFetchPlan)(Code)
Method to return an object factory for processing query statements.
Parameters:
  sm - State Manager for the collection.
Parameters:
  stmt - The Query Statement.
Parameters:
  ignoreCache - Whether to ignore the cache.
Parameters:
  useFetchPlan - whether to use the fetch plan to retrieve fields in the same query The Persistent object factory.



remove
boolean remove(StateManager sm, Object element, int size, boolean allowDependentField)(Code)
Method to remove an element from the collection.
Parameters:
  sm - State Manager for the collection.
Parameters:
  element - Element to remove
Parameters:
  size - Current size of collection if known. -1 if not known
Parameters:
  allowDependentField - Whether to allow any cascading delete actions to be fired from this removal Whether the element was removed ok



removeAll
boolean removeAll(StateManager sm, Collection elements, int size)(Code)
Method to remove a collection of elements from the collection.
Parameters:
  sm - State Manager for the collection.
Parameters:
  elements - Element to remove
Parameters:
  size - Current size of collection if known. -1 if not known Whether the elements were removed ok



size
int size(StateManager sm)(Code)
Accessor for the size of the collection.
Parameters:
  sm - State Manager for the collection. The size of the collection.



updateEmbeddedElement
boolean updateEmbeddedElement(StateManager sm, Object element, int fieldNumber, Object value)(Code)
Method to update en embedded element in the collection.
Parameters:
  sm - State Manager of the owner
Parameters:
  element - The element
Parameters:
  fieldNumber - Field to update in the element
Parameters:
  value - The new value for the field Whether the element was modified



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.