Java Doc for MapStore.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.MapStore

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




Method Summary
 voidclear(StateManager ownerSM)
     Method to clear the collection.
Parameters:
  ownerSM - State Manager for the collection.
 booleancontainsKey(StateManager ownerSM, Object key)
     Accessor for whether the Map contains this key.
 booleancontainsValue(StateManager ownerSM, Object value)
     Accessor for whether the Map contains this value.
 SetStoreentrySetStore()
     Accessor for the entry set for the Map.
 Objectget(StateManager ownerSM, Object key)
     Accessor for a value from the Map.
Parameters:
  ownerSM - State Manager for the Map.
 QueryExpressiongetExistsSubquery(QueryExpression stmt, JavaTypeMapping ownerMapping, LogicSetExpression ownerTe, DatastoreIdentifier mapRangeVar)
     Create a subquery for the given query that joins a MapStore value table to the owner table. This subquery can subsequently be used in an EXISTS expression to determine whether a Map is empty or not.
 StringgetKeyType()
     Accessor for the key type in the collection.
 QueryExpressiongetSizeSubquery(QueryExpression stmt, JavaTypeMapping ownerMapping, LogicSetExpression ownerTe, DatastoreIdentifier mapRangeVar)
     Create a subquery for the size of the map.
 StringgetValueType()
     Accessor for the value type in the collection.
 ScalarExpressionjoinKeysTo(QueryExpression stmt, QueryExpression parentStmt, JavaTypeMapping ownerMapping, LogicSetExpression te, DatastoreIdentifier mapRangeVar, Class filteredKeyType, ScalarExpression keyExpr, DatastoreIdentifier keyRangeVar)
     Utility to create a join for keys to be used in a containsKey() query.
Parameters:
  stmt - The Query Statement
Parameters:
  parentStmt - the parent Query Statement.
 ScalarExpression[]joinKeysToGet(QueryExpression stmt, QueryExpression parentStmt, JavaTypeMapping ownerMapping, LogicSetExpression ownerTe, DatastoreIdentifier mapRangeVar, Class filteredKeyType, DatastoreIdentifier keyRangeVar, DatastoreIdentifier valueRangeVar)
     Used as part of the Querying of Maps where a get(Key) is used.
Parameters:
  stmt - The Query Statement to apply the join
Parameters:
  parentStmt - the parent Query Statement.
 ScalarExpression[]joinKeysValuesTo(QueryExpression stmt, QueryExpression parentStmt, JavaTypeMapping ownerMapping, LogicSetExpression te, DatastoreIdentifier mapRangeVar, Class filteredKeyType, Class filteredValueType, ScalarExpression keyExpr, ScalarExpression valExpr, DatastoreIdentifier keyRangeVar, DatastoreIdentifier valueRangeVar)
     Utility to create a join for keys and values to be used in ai containsEntry() query.
Parameters:
  stmt - The Query Statement to apply the join
Parameters:
  parentStmt - the parent Query Statement.
 ScalarExpressionjoinValuesTo(QueryExpression stmt, QueryExpression parentStmt, JavaTypeMapping ownerMapping, LogicSetExpression ownerTe, DatastoreIdentifier mapRangeVar, Class filteredValueType, ScalarExpression valExpr, DatastoreIdentifier valueRangeVar)
     Used as part of the Querying of Maps where a containsValue() is used.
Parameters:
  stmt - The Query Statement
Parameters:
  parentStmt - the parent Query Statement.
 SetStorekeySetStore(ClassLoaderResolver clr)
     Accessor for the keys in the Map.
 booleankeysAreEmbedded()
    
 booleankeysAreSerialised()
    
 QueryExpressionnewQueryStatement(StateManager ownerSM, String candidateClass, DatastoreIdentifier candidateAlias)
     Method to create a query statement for a Map with values of the supplied candidate class.
 ResultObjectFactorynewResultObjectFactory(StateManager ownerSM, QueryExpression stmt, boolean ignoreCache, boolean useFetchPlan)
     Utility to create a Result Object Factory to process the results of selects returning values.
 Objectput(StateManager ownerSM, Object key, Object value)
     Method to add a value to the Map against this key.
Parameters:
  ownerSM - State Manager for the Map.
 voidputAll(StateManager ownerSM, Map m)
     Method to add a map of values to the Map.
Parameters:
  ownerSM - State Manager for the Map.
 Objectremove(StateManager ownerSM, Object key)
     Method to remove a value from the Map.
Parameters:
  ownerSM - State Manager for the Map.
 booleanupdateEmbeddedKey(StateManager sm, Object key, int fieldNumber, Object newValue)
     Method to update en embedded key in the collection.
 booleanupdateEmbeddedValue(StateManager sm, Object value, int fieldNumber, Object newValue)
     Method to update en embedded value in the collection.
 SetStorevalueSetStore(ClassLoaderResolver clr)
     Accessor for the values in the Map.
 booleanvaluesAreEmbedded()
    
 booleanvaluesAreSerialised()
    



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



containsKey
boolean containsKey(StateManager ownerSM, Object key)(Code)
Accessor for whether the Map contains this key.
Parameters:
  ownerSM - State Manager for the Map.
Parameters:
  key - The key to check Whether it is contained.



containsValue
boolean containsValue(StateManager ownerSM, Object value)(Code)
Accessor for whether the Map contains this value.
Parameters:
  ownerSM - State Manager for the Map.
Parameters:
  value - The value to check Whether it is contained.



entrySetStore
SetStore entrySetStore()(Code)
Accessor for the entry set for the Map. Entry set for the Map.



get
Object get(StateManager ownerSM, Object key)(Code)
Accessor for a value from the Map.
Parameters:
  ownerSM - State Manager for the Map.
Parameters:
  key - Key for the value. Value for this key.



getExistsSubquery
QueryExpression getExistsSubquery(QueryExpression stmt, JavaTypeMapping ownerMapping, LogicSetExpression ownerTe, DatastoreIdentifier mapRangeVar)(Code)
Create a subquery for the given query that joins a MapStore value table to the owner table. This subquery can subsequently be used in an EXISTS expression to determine whether a Map is empty or not.
Parameters:
  stmt - The parent query statement that will use this as a subquery
Parameters:
  ownerMapping - the mapping for the owner
Parameters:
  ownerTe - Table Expression for the owner that the subquery joins to
Parameters:
  mapRangeVar - The range variable for the "Map" table. A subquery for the given query that joins a MapStore valuetable to the owner table.



getKeyType
String getKeyType()(Code)
Accessor for the key type in the collection. The key type.



getSizeSubquery
QueryExpression getSizeSubquery(QueryExpression stmt, JavaTypeMapping ownerMapping, LogicSetExpression ownerTe, DatastoreIdentifier mapRangeVar)(Code)
Create a subquery for the size of the map.
Parameters:
  stmt - The parent query statement that will use this as a subquery
Parameters:
  ownerMapping - the mapping for the owner
Parameters:
  ownerTe - Table Expression for the owner that the subquery joins to
Parameters:
  mapRangeVar - Range variable for this subquery main table A subquery for the size.



getValueType
String getValueType()(Code)
Accessor for the value type in the collection. The value type.



joinKeysTo
ScalarExpression joinKeysTo(QueryExpression stmt, QueryExpression parentStmt, JavaTypeMapping ownerMapping, LogicSetExpression te, DatastoreIdentifier mapRangeVar, Class filteredKeyType, ScalarExpression keyExpr, DatastoreIdentifier keyRangeVar)(Code)
Utility to create a join for keys to be used in a containsKey() query.
Parameters:
  stmt - The Query Statement
Parameters:
  parentStmt - the parent Query Statement. If there is no parent, parentStmt must be equals to stmt
Parameters:
  ownerMapping - Mapping for the owner
Parameters:
  te - Table Expression for the owner
Parameters:
  mapRangeVar - The range variable for the "Map" table.
Parameters:
  filteredKeyType - The Class Type for the filtered key
Parameters:
  keyExpr - the expression to the key field. if not provided, obtain the expression of the ID of the table where filteredKeyType is stored
Parameters:
  keyRangeVar - The SQL alias, or "range variable", to assign to theexpression or to the key table. QueryColumnList with the columns from the key mapping



joinKeysToGet
ScalarExpression[] joinKeysToGet(QueryExpression stmt, QueryExpression parentStmt, JavaTypeMapping ownerMapping, LogicSetExpression ownerTe, DatastoreIdentifier mapRangeVar, Class filteredKeyType, DatastoreIdentifier keyRangeVar, DatastoreIdentifier valueRangeVar)(Code)
Used as part of the Querying of Maps where a get(Key) is used.
Parameters:
  stmt - The Query Statement to apply the join
Parameters:
  parentStmt - the parent Query Statement. If there is no parent, parentStmt must be equals to stmt
Parameters:
  ownerMapping - Mapping for the owner
Parameters:
  ownerTe - Table Expression for the owner
Parameters:
  mapRangeVar - The SQL alias, or "range variable", to assign to theexpression or to the main table.
Parameters:
  filteredKeyType - The Class Type for the filtered key
Parameters:
  keyRangeVar - The SQL alias, or "range variable", to assign to theexpression or to the key table.
Parameters:
  valueRangeVar - The SQL alias, or "range variable", to assign to theexpression or to the value table. an array with 2 elements of QueryColumnList. The first elementcontains the columns from the key mapping and the second element thecolumns from the value mapping



joinKeysValuesTo
ScalarExpression[] joinKeysValuesTo(QueryExpression stmt, QueryExpression parentStmt, JavaTypeMapping ownerMapping, LogicSetExpression te, DatastoreIdentifier mapRangeVar, Class filteredKeyType, Class filteredValueType, ScalarExpression keyExpr, ScalarExpression valExpr, DatastoreIdentifier keyRangeVar, DatastoreIdentifier valueRangeVar)(Code)
Utility to create a join for keys and values to be used in ai containsEntry() query.
Parameters:
  stmt - The Query Statement to apply the join
Parameters:
  parentStmt - the parent Query Statement. If there is no parent, parentStmt must be equals to stmt
Parameters:
  ownerMapping - Mapping for the owner
Parameters:
  te - Table Expression for the owner
Parameters:
  mapRangeVar - The SQL alias, or "range variable", to assign to theexpression or to the main table.
Parameters:
  filteredKeyType - The Class Type for the filtered key
Parameters:
  filteredValueType - The Class Type for the filtered value
Parameters:
  keyExpr - the expression to the key field
Parameters:
  valExpr - Table Expression for the value
Parameters:
  keyRangeVar - The SQL alias, or "range variable", to assign to theexpression or to the key table.
Parameters:
  valueRangeVar - The SQL alias, or "range variable", to assign to theexpression or to the value table. an array with 2 elements of QueryColumnList. The first elementcontains the columns from the key mapping and the second element thecolumns from the value mapping



joinValuesTo
ScalarExpression joinValuesTo(QueryExpression stmt, QueryExpression parentStmt, JavaTypeMapping ownerMapping, LogicSetExpression ownerTe, DatastoreIdentifier mapRangeVar, Class filteredValueType, ScalarExpression valExpr, DatastoreIdentifier valueRangeVar)(Code)
Used as part of the Querying of Maps where a containsValue() is used.
Parameters:
  stmt - The Query Statement
Parameters:
  parentStmt - the parent Query Statement. If there is no parent, parentStmt must be equals to stmt
Parameters:
  ownerMapping - Mapping for the owner
Parameters:
  ownerTe - Table Expression for the owner
Parameters:
  mapRangeVar - The range variable for the "Map" table.
Parameters:
  filteredValueType - The Class Type for the filtered value
Parameters:
  valExpr - the expression to the value field. if not provided, obtain the expression of the ID of the table where filteredValueType is stored
Parameters:
  valueRangeVar - The SQL alias, or "range variable", to assign to theexpression or to the value table. QueryColumnList with the columns from the value mapping



keySetStore
SetStore keySetStore(ClassLoaderResolver clr)(Code)
Accessor for the keys in the Map.
Parameters:
  clr - The ClassLoaderResolver Keys for the Map.



keysAreEmbedded
boolean keysAreEmbedded()(Code)
Accessor for whether the keys are embedded Whether we have embedded keys



keysAreSerialised
boolean keysAreSerialised()(Code)
Accessor for whether the keys are serialised Whether we have serialised keys



newQueryStatement
QueryExpression newQueryStatement(StateManager ownerSM, String candidateClass, DatastoreIdentifier candidateAlias)(Code)
Method to create a query statement for a Map with values of the supplied candidate class.
Parameters:
  ownerSM - StateManager for the Map
Parameters:
  candidateClass - The class for the values
Parameters:
  candidateAlias - Alias for the candidate The Query Statement.



newResultObjectFactory
ResultObjectFactory newResultObjectFactory(StateManager ownerSM, QueryExpression stmt, boolean ignoreCache, boolean useFetchPlan)(Code)
Utility to create a Result Object Factory to process the results of selects returning values.
Parameters:
  ownerSM - State Manager for the Map.
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 result object factory.



put
Object put(StateManager ownerSM, Object key, Object value)(Code)
Method to add a value to the Map against this key.
Parameters:
  ownerSM - State Manager for the Map.
Parameters:
  key - The key.
Parameters:
  value - The value. Value that was previously against this key.



putAll
void putAll(StateManager ownerSM, Map m)(Code)
Method to add a map of values to the Map.
Parameters:
  ownerSM - State Manager for the Map.
Parameters:
  m - The map to add.



remove
Object remove(StateManager ownerSM, Object key)(Code)
Method to remove a value from the Map.
Parameters:
  ownerSM - State Manager for the Map.
Parameters:
  key - Key whose value is to be removed. Value that was removed.



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



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



valueSetStore
SetStore valueSetStore(ClassLoaderResolver clr)(Code)
Accessor for the values in the Map.
Parameters:
  clr - The ClassLoaderResolver Values for the Map.



valuesAreEmbedded
boolean valuesAreEmbedded()(Code)
Accessor for whether the values are embedded Whether we have embedded values



valuesAreSerialised
boolean valuesAreSerialised()(Code)
Accessor for whether the values are serialised Whether we have serialised values



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