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


org.jpox.store.DatastoreAdapter

All known Subclasses:   org.jpox.store.AbstractDatastoreAdapter,
DatastoreAdapter
public interface DatastoreAdapter extends ExpressionConversionAdapter,ExpressionOperatorAdapter,ExpressionMethodAdapter,ExpressionSupportedFeaturesAdapter,ExpressionPatternAdapter,ExpressionLogicSetAdapter(Code)
Definition of a datastore adapter.
version:
   $Revision: 1.35 $




Method Summary
abstract public  longgetAdapterTime(Timestamp time)
     Utility to return the adapter time in case there are rounding issues with millisecs etc.
abstract public  intgetDatastoreMajorVersion()
     Accessor for the datastore major version number.
abstract public  intgetDatastoreMinorVersion()
     Accessor for the datastore minor version number.
abstract public  StringgetIdentifierQuoteString()
     Accessor for the quote string to use when quoting identifiers.
abstract public  JavaTypeMappinggetMapping(Class c, StoreManager storeMgr)
     Accessor for the mapping for the specified class assuming that the type is not serialised and not embedded.
abstract public  JavaTypeMappinggetMapping(Class c, StoreManager storeMgr, boolean serialised, boolean embedded, String fieldName)
     Accessor for the mapping for the specified class.
abstract public  JavaTypeMappinggetMapping(Class c, StoreManager storeMgr, ClassLoaderResolver clr)
     Accessor for the mapping for the specified class assuming that the type is not serialised and not embedded.
abstract public  JavaTypeMappinggetMapping(Class c, StoreManager storeMgr, ClassLoaderResolver clr, boolean serialised, boolean embedded)
     Accessor for the mapping for the specified class.
abstract public  MappingManagergetMappingManager()
     Accessor for the Mapping Manager for field mapping management.
abstract public  StringgetVendorID()
     Accessor for the Vendor ID for this datastore.
abstract public  voidinitialiseDatastore(Object conn)
    
 booleanisBitReallyBoolean()
     Accessor for whether bit is really mapped in the datastore to boolean.
 booleanisIdentityFieldDataType(String columnDef)
     Verifies if the given columnDef is an identity field type for the datastore.
abstract public  booleanisReservedKeyword(String word)
     Method to check if a word is reserved for this datastore.
public  booleanisStoresLowerCaseIdentifiers()
     Accessor for whether this adapter stores lower case identifiers.
public  booleanisStoresLowerCaseQuotedIdentifiers()
     Accessor for whether this adapter stores "lowercase" identifiers.
public  booleanisStoresMixedCaseIdentifiers()
     Accessor for whether this adapter stores MixedCase identifiers.
public  booleanisStoresMixedCaseQuotedIdentifiers()
     Accessor for whether this adapter "MixedCase" identifiers.
public  booleanisStoresUpperCaseIdentifiers()
     Accessor for whether this adapter stores UPPERCASE identifiers.
public  booleanisStoresUpperCaseQuotedIdentifiers()
     Accessor for whether this adapter stores "UPPERCASE" identifiers.
public  voidloadDatastoreMapping(PluginManager mgr, ClassLoaderResolver clr)
    
abstract public  NumericExpressionmodOperator(ScalarExpression operand1, ScalarExpression operand2)
     Method to generate a modulus expression.
abstract public  QueryExpressionnewQueryStatement(DatastoreContainerObject container, ClassLoaderResolver clr)
     Accessor for a new query statement.
abstract public  QueryExpressionnewQueryStatement(DatastoreContainerObject container, DatastoreIdentifier rangeVar, ClassLoaderResolver clr)
     Accessor for a new query statement.
abstract public  booleansupportsIdentityFields()
     Whether this datastore adapter support identity fields.
 booleansupportsQueryFetchSize(int size)
     Whether the datastore will support setting the query fetch size to the supplied value.
abstract public  booleansupportsSequences()
     Whether this datastore adapter supports sequences.
abstract public  StringtoString()
     Method to return this object as a string.



Method Detail
getAdapterTime
abstract public long getAdapterTime(Timestamp time)(Code)
Utility to return the adapter time in case there are rounding issues with millisecs etc.
Parameters:
  time - The timestamp The time in millisecs



getDatastoreMajorVersion
abstract public int getDatastoreMajorVersion()(Code)
Accessor for the datastore major version number. Major version number



getDatastoreMinorVersion
abstract public int getDatastoreMinorVersion()(Code)
Accessor for the datastore minor version number. Minor version number



getIdentifierQuoteString
abstract public String getIdentifierQuoteString()(Code)
Accessor for the quote string to use when quoting identifiers. The quote string for the identifier



getMapping
abstract public JavaTypeMapping getMapping(Class c, StoreManager storeMgr)(Code)
Accessor for the mapping for the specified class assuming that the type is not serialised and not embedded.
Parameters:
  c - Java type
Parameters:
  storeMgr - the StoreManager The mapping for the class.



getMapping
abstract public JavaTypeMapping getMapping(Class c, StoreManager storeMgr, boolean serialised, boolean embedded, String fieldName)(Code)
Accessor for the mapping for the specified class. TODO Why use this and not the one with ClassLoaderResolver ?
Parameters:
  c - Java type
Parameters:
  storeMgr - the StoreManager
Parameters:
  serialised - Whether the type is serialised
Parameters:
  embedded - Whether the type is embedded
Parameters:
  fieldName - Name of field (for logging only) The mapping for the class.



getMapping
abstract public JavaTypeMapping getMapping(Class c, StoreManager storeMgr, ClassLoaderResolver clr)(Code)
Accessor for the mapping for the specified class assuming that the type is not serialised and not embedded.
Parameters:
  c - Class to query
Parameters:
  storeMgr - The Store Manager
Parameters:
  clr - The ClassLoaderResolver The mapping for the class.



getMapping
abstract public JavaTypeMapping getMapping(Class c, StoreManager storeMgr, ClassLoaderResolver clr, boolean serialised, boolean embedded)(Code)
Accessor for the mapping for the specified class. TODO Why use this and not the one without ClassLoaderResolver ?
Parameters:
  c - Class to query
Parameters:
  storeMgr - The Store Manager
Parameters:
  clr - The ClassLoaderResolver
Parameters:
  serialised - Whether the type is serialised
Parameters:
  embedded - Whether the type is embedded The mapping for the class.



getMappingManager
abstract public MappingManager getMappingManager()(Code)
Accessor for the Mapping Manager for field mapping management. The Mapping Manager.



getVendorID
abstract public String getVendorID()(Code)
Accessor for the Vendor ID for this datastore. Vendor id for this datastore



initialiseDatastore
abstract public void initialiseDatastore(Object conn)(Code)
Creates the auxiliary functions/procedures in the datastore
Parameters:
  conn - the connection to the datastore



isBitReallyBoolean
boolean isBitReallyBoolean()(Code)
Accessor for whether bit is really mapped in the datastore to boolean. TODO Abstract this out to RDBMS Whether bit is really stored as a boolean



isIdentityFieldDataType
boolean isIdentityFieldDataType(String columnDef)(Code)
Verifies if the given columnDef is an identity field type for the datastore.
Parameters:
  columnDef - the datastore type name true when the columnDef has values for identity generation in the datastore



isReservedKeyword
abstract public boolean isReservedKeyword(String word)(Code)
Method to check if a word is reserved for this datastore.
Parameters:
  word - The word Whether it is reserved



isStoresLowerCaseIdentifiers
public boolean isStoresLowerCaseIdentifiers()(Code)
Accessor for whether this adapter stores lower case identifiers. Whether lowercase identifiers are stored



isStoresLowerCaseQuotedIdentifiers
public boolean isStoresLowerCaseQuotedIdentifiers()(Code)
Accessor for whether this adapter stores "lowercase" identifiers. Whether "lowercase" identifiers are stored



isStoresMixedCaseIdentifiers
public boolean isStoresMixedCaseIdentifiers()(Code)
Accessor for whether this adapter stores MixedCase identifiers. Whether MixedCase identifiers are stored



isStoresMixedCaseQuotedIdentifiers
public boolean isStoresMixedCaseQuotedIdentifiers()(Code)
Accessor for whether this adapter "MixedCase" identifiers. Whether "MixedCase" identifiers are stored



isStoresUpperCaseIdentifiers
public boolean isStoresUpperCaseIdentifiers()(Code)
Accessor for whether this adapter stores UPPERCASE identifiers. Whether UPPERCASE identifiers are stored



isStoresUpperCaseQuotedIdentifiers
public boolean isStoresUpperCaseQuotedIdentifiers()(Code)
Accessor for whether this adapter stores "UPPERCASE" identifiers. Whether "UPPERCASE" identifiers are stored



loadDatastoreMapping
public void loadDatastoreMapping(PluginManager mgr, ClassLoaderResolver clr)(Code)
Load the datastore mappings declared as Plug-in
Parameters:
  mgr - the PluginManager
Parameters:
  clr - the ClassLoaderResolver



modOperator
abstract public NumericExpression modOperator(ScalarExpression operand1, ScalarExpression operand2)(Code)
Method to generate a modulus expression. The binary % operator is said to yield the remainder of its operands from an implied division; the left-hand operand is the dividend and the right-hand operand is the divisor.
Parameters:
  operand1 - the left expression
Parameters:
  operand2 - the right expression The Expression for modulus



newQueryStatement
abstract public QueryExpression newQueryStatement(DatastoreContainerObject container, ClassLoaderResolver clr)(Code)
Accessor for a new query statement.
Parameters:
  container - The table to query
Parameters:
  clr - the ClassLoaderResolver The Query Statement



newQueryStatement
abstract public QueryExpression newQueryStatement(DatastoreContainerObject container, DatastoreIdentifier rangeVar, ClassLoaderResolver clr)(Code)
Accessor for a new query statement.
Parameters:
  container - The table to query
Parameters:
  rangeVar - A range variable for the query
Parameters:
  clr - the ClassLoaderResolver The Query Statement



supportsIdentityFields
abstract public boolean supportsIdentityFields()(Code)
Whether this datastore adapter support identity fields. The column could be things like "AUTOINCREMENT", "IDENTITY", "SERIAL" in SQL. whether identity fields are supported.



supportsQueryFetchSize
boolean supportsQueryFetchSize(int size)(Code)
Whether the datastore will support setting the query fetch size to the supplied value.
Parameters:
  size - The value to set to Whether it is supported.



supportsSequences
abstract public boolean supportsSequences()(Code)
Whether this datastore adapter supports sequences. whether sequences are supported.



toString
abstract public String toString()(Code)
Method to return this object as a string. String version of this object.



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