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

All known Subclasses:   org.jpox.store.AbstractIdentifierFactory,
IdentifierFactory
public interface IdentifierFactory (Code)
Factory that creates immutable instances of DatastoreIdentifier. Identifiers are of a particular type. Each datastore could invent its own particular types as required, just that the ones here should be the principal types required.
version:
   $Revision: 1.16 $


Field Summary
final public static  intCANDIDATE_KEY
    
final public static  intCOLUMN
    
final public static  intFOREIGN_KEY
    
final public static  intIDENTIFIER_LOWER_CASE
     Representation of an identifier specified in lower case.
final public static  intIDENTIFIER_LOWER_CASE_QUOTED
    
final public static  intIDENTIFIER_MIXED_CASE
     Representation of an identifier specified in Mixed Case.
final public static  intIDENTIFIER_MIXED_CASE_QUOTED
     Representation of an identifier specified in "Mixed Case".
final public static  intIDENTIFIER_UPPER_CASE
    
final public static  intIDENTIFIER_UPPER_CASE_QUOTED
    
final public static  intINDEX
    
final public static  intPRIMARY_KEY
    
final public static  intSEQUENCE
     identifier for datastore sequence.
final public static  intTABLE
    


Method Summary
 DatastoreAdaptergetDatastoreAdapter()
     Accessor for the datastore adapter that we are creating identifiers for.
 intgetIdentifierCase()
     Accessor for the identifier case being used.
 StringgetIdentifierInAdapterCase(String identifier)
    
 StringgetNameOfIdentifierCase()
     Convenience method to return the name for the identifier case.
 DatastoreIdentifiernewDatastoreContainerIdentifier(String identifierName)
     Method to use to generate an identifier for a datastore field with the supplied name.
 DatastoreIdentifiernewDatastoreContainerIdentifier(ClassLoaderResolver clr, AbstractClassMetaData md)
     Method to return a Table identifier for the specified class.
 DatastoreIdentifiernewDatastoreContainerIdentifier(ClassLoaderResolver clr, AbstractMemberMetaData fmd)
     Method to return a Table identifier for the specified field.
 DatastoreIdentifiernewDatastoreFieldIdentifier(String identifierName)
     Method to use to generate an identifier for a datastore field with the supplied name.
 DatastoreIdentifiernewDatastoreFieldIdentifier(String javaName, boolean embedded, int fieldRole)
     Method to create an identifier for a datastore field where we want the name based on the supplied java name, and the field has a particular role (and so could have its naming set according to the role).
 DatastoreIdentifiernewDiscriminatorFieldIdentifier()
     Method to return an identifier for a discriminator datastore field.
 DatastoreIdentifiernewIdentifier(int identifierType, String sqlIdentifier)
     To be called when we want an identifier name creating based on the identifier.
 DatastoreIdentifiernewIdentifier(DatastoreIdentifier identifier, String suffix)
    
 DatastoreIdentifiernewReferenceFieldIdentifier(AbstractMemberMetaData refMetaData, AbstractClassMetaData implMetaData, DatastoreIdentifier implIdentifier, boolean embedded, int fieldRole)
     Method to generate an identifier name for reference field, based on the metadata for the field, and the ClassMetaData for the implementation.
 DatastoreIdentifiernewVersionFieldIdentifier()
     Method to return an identifier for a version datastore field.

Field Detail
CANDIDATE_KEY
final public static int CANDIDATE_KEY(Code)
candidate key - unique index constraint *



COLUMN
final public static int COLUMN(Code)
column *



FOREIGN_KEY
final public static int FOREIGN_KEY(Code)
foreign key *



IDENTIFIER_LOWER_CASE
final public static int IDENTIFIER_LOWER_CASE(Code)
Representation of an identifier specified in lower case.



IDENTIFIER_LOWER_CASE_QUOTED
final public static int IDENTIFIER_LOWER_CASE_QUOTED(Code)
Representation of an identifier specified in "lower case"



IDENTIFIER_MIXED_CASE
final public static int IDENTIFIER_MIXED_CASE(Code)
Representation of an identifier specified in Mixed Case.



IDENTIFIER_MIXED_CASE_QUOTED
final public static int IDENTIFIER_MIXED_CASE_QUOTED(Code)
Representation of an identifier specified in "Mixed Case".



IDENTIFIER_UPPER_CASE
final public static int IDENTIFIER_UPPER_CASE(Code)
Representation of an identifier specified in UPPER CASE



IDENTIFIER_UPPER_CASE_QUOTED
final public static int IDENTIFIER_UPPER_CASE_QUOTED(Code)
Representation of an identifier specified in "UPPER CASE"



INDEX
final public static int INDEX(Code)
index *



PRIMARY_KEY
final public static int PRIMARY_KEY(Code)
primary key *



SEQUENCE
final public static int SEQUENCE(Code)
identifier for datastore sequence.



TABLE
final public static int TABLE(Code)
identifier for table names *





Method Detail
getDatastoreAdapter
DatastoreAdapter getDatastoreAdapter()(Code)
Accessor for the datastore adapter that we are creating identifiers for. The datastore adapter



getIdentifierCase
int getIdentifierCase()(Code)
Accessor for the identifier case being used. The identifier case



getIdentifierInAdapterCase
String getIdentifierInAdapterCase(String identifier)(Code)
Accessor for an identifier for use in the datastore adapter
Parameters:
  identifier - The identifier name Identifier name for use with the datastore adapter



getNameOfIdentifierCase
String getNameOfIdentifierCase()(Code)
Convenience method to return the name for the identifier case. Identifier case name



newDatastoreContainerIdentifier
DatastoreIdentifier newDatastoreContainerIdentifier(String identifierName)(Code)
Method to use to generate an identifier for a datastore field with the supplied name. The passed name will not be changed (other than in its case) although it may be truncated to fit the maximum length permitted for a datastore field identifier.
Parameters:
  identifierName - The identifier name The DatastoreIdentifier for the table



newDatastoreContainerIdentifier
DatastoreIdentifier newDatastoreContainerIdentifier(ClassLoaderResolver clr, AbstractClassMetaData md)(Code)
Method to return a Table identifier for the specified class.
Parameters:
  clr - the ClassLoaderResolver
Parameters:
  md - Meta data for the class The identifier for the table



newDatastoreContainerIdentifier
DatastoreIdentifier newDatastoreContainerIdentifier(ClassLoaderResolver clr, AbstractMemberMetaData fmd)(Code)
Method to return a Table identifier for the specified field.
Parameters:
  clr - the ClassLoaderResolver
Parameters:
  fmd - Meta data for the field The identifier for the table



newDatastoreFieldIdentifier
DatastoreIdentifier newDatastoreFieldIdentifier(String identifierName)(Code)
Method to use to generate an identifier for a datastore field with the supplied name. The passed name will not be changed (other than in its case) although it may be truncated to fit the maximum length permitted for a datastore field identifier.
Parameters:
  identifierName - The identifier name The DatastoreIdentifier



newDatastoreFieldIdentifier
DatastoreIdentifier newDatastoreFieldIdentifier(String javaName, boolean embedded, int fieldRole)(Code)
Method to create an identifier for a datastore field where we want the name based on the supplied java name, and the field has a particular role (and so could have its naming set according to the role).
Parameters:
  javaName - The java field name
Parameters:
  embedded - Whether the identifier is for a field embedded
Parameters:
  fieldRole - The role to be performed by this column e.g FK, Index ? The DatastoreIdentifier



newDiscriminatorFieldIdentifier
DatastoreIdentifier newDiscriminatorFieldIdentifier()(Code)
Method to return an identifier for a discriminator datastore field. The discriminator datastore field identifier



newIdentifier
DatastoreIdentifier newIdentifier(int identifierType, String sqlIdentifier)(Code)
To be called when we want an identifier name creating based on the identifier. Creates identifier for COLUMN, FOREIGN KEY, INDEX and TABLE
Parameters:
  identifierType - the type of identifier to be created
Parameters:
  sqlIdentifier - The SQL identifier name The DatastoreIdentifier



newIdentifier
DatastoreIdentifier newIdentifier(DatastoreIdentifier identifier, String suffix)(Code)
Method to return a new Identifier based on the passed identifier, but adding on the passed suffix
Parameters:
  identifier - The current identifier
Parameters:
  suffix - The suffix The new identifier



newReferenceFieldIdentifier
DatastoreIdentifier newReferenceFieldIdentifier(AbstractMemberMetaData refMetaData, AbstractClassMetaData implMetaData, DatastoreIdentifier implIdentifier, boolean embedded, int fieldRole)(Code)
Method to generate an identifier name for reference field, based on the metadata for the field, and the ClassMetaData for the implementation.
Parameters:
  refMetaData - the MetaData for the reference field
Parameters:
  implMetaData - the AbstractClassMetaData for this implementation
Parameters:
  implIdentifier - PK identifier for the implementation
Parameters:
  embedded - Whether the identifier is for a field embedded
Parameters:
  fieldRole - The role to be performed by this column e.g FK, collection element ? The DatastoreIdentifier



newVersionFieldIdentifier
DatastoreIdentifier newVersionFieldIdentifier()(Code)
Method to return an identifier for a version datastore field. The version datastore field identifier



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