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


java.lang.Object
   org.jpox.store.AbstractDatastoreAdapter

AbstractDatastoreAdapter
abstract public class AbstractDatastoreAdapter implements DatastoreAdapter(Code)
Generalised datastore representation. Each datastore is assumed to have a "name", and a "version" (of the form major.minor.revision) and will store "identifiers". In addition, each field will have a Mapping to the datastore

This will typically be extended to provide e.g RDBMS connection using JDBC, or XML file connection using a DOM parser.


version:
   $Revision: 1.31 $


Field Summary
final protected static  LocaliserLOCALISER_BASE
    
protected  intdatastoreMajorVersion
     The major version number of the underlying datastore.
protected  intdatastoreMinorVersion
     The minor version number of the underlying datastore.
protected  StringdatastoreProductName
     The product name of the underlying datastore.
protected  StringdatastoreProductVersion
     The version number of the underlying datastore as a string.
protected  intdatastoreRevisionVersion
     The revision version number of the underlying datastore.
protected  StringidentifierQuoteString
     The String used to quote identifiers.
protected  MappingManagermappingManager
     Manager for the mapping between Java and datastore types.
final protected  HashSetreservedKeywords
     The set of reserved keywords for this datastore.

Constructor Summary
public  AbstractDatastoreAdapter()
     Constructor.

Method Summary
public  longgetAdapterTime(Timestamp time)
    
public  intgetDatastoreMajorVersion()
    
public  intgetDatastoreMinorVersion()
    
public  StringgetIdentifierQuoteString()
     Accessor for an identifier quote string.
public  JavaTypeMappinggetMapping(Class c, StoreManager storeMgr)
     Convenience accessor for the mapping for the specified class when not serialised and not embedded.
public  JavaTypeMappinggetMapping(Class c, StoreManager storeMgr, boolean serialised, boolean embedded, String fieldName)
     Convenience accessor for the mapping for the specified class.
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).
public  JavaTypeMappinggetMapping(Class c, StoreManager storeMgr, ClassLoaderResolver clr)
     Accessor for the mapping for the specified class when not serialised and not embedded.
public  JavaTypeMappinggetMapping(Class c, StoreManager storeMgr, ClassLoaderResolver clr, boolean serialised, boolean embedded)
     Convenience accessor for the mapping for the specified class.
final protected  JavaTypeMappinggetMapping(Class c, ScalarExpression expr)
     Convenience accessor for the mapping for the specified class.
public  MappingManagergetMappingManager()
    
protected  intgetMiliseconds(long nanos)
    
abstract protected  MappingManagergetNewMappingManager()
     Accessor for a new mapping manager.
protected  longgetTime(long time, long nanos)
    
public  StringgetVendorID()
    
public  booleanisBitReallyBoolean()
     Accessor for whether a bit is really mapped in the datastore to boolean.
public  booleanisReservedKeyword(String word)
    
public  voidloadDatastoreMapping(PluginManager mgr, ClassLoaderResolver clr)
    
public  NumericExpressionmodOperator(ScalarExpression operand1, ScalarExpression operand2)
    
abstract public  QueryExpressionnewQueryStatement(DatastoreContainerObject container, ClassLoaderResolver clr)
    
abstract public  QueryExpressionnewQueryStatement(DatastoreContainerObject container, DatastoreIdentifier rangeVar, ClassLoaderResolver clr)
    
public  booleansupportsIdentityFields()
     Accessor for whether autoincrementing fields are supported.
public  booleansupportsQueryFetchSize(int size)
     Whether the datastore will support setting the query fetch size to the supplied value.
public  booleansupportsSequences()
     Accessor for whether sequences are supported.

Field Detail
LOCALISER_BASE
final protected static Localiser LOCALISER_BASE(Code)



datastoreMajorVersion
protected int datastoreMajorVersion(Code)
The major version number of the underlying datastore.



datastoreMinorVersion
protected int datastoreMinorVersion(Code)
The minor version number of the underlying datastore.



datastoreProductName
protected String datastoreProductName(Code)
The product name of the underlying datastore.



datastoreProductVersion
protected String datastoreProductVersion(Code)
The version number of the underlying datastore as a string.



datastoreRevisionVersion
protected int datastoreRevisionVersion(Code)
The revision version number of the underlying datastore.



identifierQuoteString
protected String identifierQuoteString(Code)
The String used to quote identifiers.



mappingManager
protected MappingManager mappingManager(Code)
Manager for the mapping between Java and datastore types.



reservedKeywords
final protected HashSet reservedKeywords(Code)
The set of reserved keywords for this datastore.




Constructor Detail
AbstractDatastoreAdapter
public AbstractDatastoreAdapter()(Code)
Constructor.




Method Detail
getAdapterTime
public long getAdapterTime(Timestamp time)(Code)



getDatastoreMajorVersion
public int getDatastoreMajorVersion()(Code)



getDatastoreMinorVersion
public int getDatastoreMinorVersion()(Code)



getIdentifierQuoteString
public String getIdentifierQuoteString()(Code)
Accessor for an identifier quote string. Identifier quote string.



getMapping
public JavaTypeMapping getMapping(Class c, StoreManager storeMgr)(Code)
Convenience accessor for the mapping for the specified class when not serialised and not embedded.
Parameters:
  c - Java type
Parameters:
  storeMgr - the StoreManager The mapping for the class.



getMapping
public JavaTypeMapping getMapping(Class c, StoreManager storeMgr, boolean serialised, boolean embedded, String fieldName)(Code)
Convenience accessor for the mapping for the specified class.
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
public JavaTypeMapping getMapping(Class c, StoreManager storeMgr, ClassLoaderResolver clr)(Code)
Accessor for the mapping for the specified class when not serialised and not embedded.
Parameters:
  c - Java type
Parameters:
  storeMgr - The Store manager
Parameters:
  clr - ClassLoader resolver The mapping for the class.



getMapping
public JavaTypeMapping getMapping(Class c, StoreManager storeMgr, ClassLoaderResolver clr, boolean serialised, boolean embedded)(Code)
Convenience accessor for the mapping for the specified class.
Parameters:
  c - Java type
Parameters:
  storeMgr - The Store manager
Parameters:
  clr - ClassLoader resolver
Parameters:
  serialised - Whether the type is serialised
Parameters:
  embedded - Whether the type is embedded The mapping for the class.



getMapping
final protected JavaTypeMapping getMapping(Class c, ScalarExpression expr)(Code)
Convenience accessor for the mapping for the specified class. Provides a wrapper to the method on the MappingManager.
Parameters:
  c - Java type
Parameters:
  expr - the ScalarExpression The mapping for the class.



getMappingManager
public MappingManager getMappingManager()(Code)
Acessor for the MappingManager the MappingManager



getMiliseconds
protected int getMiliseconds(long nanos)(Code)



getNewMappingManager
abstract protected MappingManager getNewMappingManager()(Code)
Accessor for a new mapping manager. Must be implemented by subclasses. The new mapping manager



getTime
protected long getTime(long time, long nanos)(Code)



getVendorID
public String getVendorID()(Code)



isBitReallyBoolean
public boolean isBitReallyBoolean()(Code)
Accessor for whether a bit is really mapped in the datastore to boolean. Whether bit is really stored as a boolean



isReservedKeyword
public boolean isReservedKeyword(String word)(Code)



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



modOperator
public NumericExpression modOperator(ScalarExpression operand1, ScalarExpression operand2)(Code)



newQueryStatement
abstract public QueryExpression newQueryStatement(DatastoreContainerObject container, ClassLoaderResolver clr)(Code)



newQueryStatement
abstract public QueryExpression newQueryStatement(DatastoreContainerObject container, DatastoreIdentifier rangeVar, ClassLoaderResolver clr)(Code)



supportsIdentityFields
public boolean supportsIdentityFields()(Code)
Accessor for whether autoincrementing fields are supported. Whether we support autoincrementing fields



supportsQueryFetchSize
public 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
public boolean supportsSequences()(Code)
Accessor for whether sequences are supported. whether we support sequences.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.