|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.store.rdbms.sqlidentifier.RDBMSIdentifierFactory
Factory that creates immutable instances of DatastoreIdentifier for RDBMS datastores
Field Summary |
Fields inherited from interface org.jpox.store.IdentifierFactory |
CANDIDATE_KEY, COLUMN, FOREIGN_KEY, INDEX, PRIMARY_KEY, REFERENCE, TABLE |
Constructor Summary | |
RDBMSIdentifierFactory(StoreManager storeMgr)
Constructor. |
Method Summary | |
DatastoreIdentifier |
newColumnIdentifier(java.lang.String javaName,
java.lang.String sqlIdentifier)
Method to generate an identifier for a COLUMN. |
DatastoreIdentifier |
newIdentifier(int identifierType,
AbstractPropertyMetaData refMetaData,
AbstractClassMetaData implMetaData,
DatastoreIdentifier implIdentifier)
Method to generate an identifier name based on the FieldMetaData and ClassMetaData for reference fields. |
DatastoreIdentifier |
newIdentifier(int identifierType,
DatastoreContainerObject table)
To be called when we want an identifier name creating based on the table. |
DatastoreIdentifier |
newIdentifier(int identifierType,
DatastoreContainerObject table,
boolean isUnique,
int seq)
To be called when we want an identifier name. |
DatastoreIdentifier |
newIdentifier(int identifierType,
DatastoreContainerObject table,
int seq)
To be called when we want an identifier name. |
DatastoreIdentifier |
newIdentifier(int identifierType,
DatastoreIdentifier baseSQLID,
boolean embedded,
DatastoreFieldRole role)
To be called when you already have an existing identifier and want to use it as a base for the new one, applying a particular "role". |
DatastoreIdentifier |
newIdentifier(int identifierType,
java.lang.String sqlIdentifier)
To be called when we want an identifier name creating based on the identifier. |
DatastoreIdentifier |
newIdentifier(int identifierType,
java.lang.String javaName,
boolean embedded,
DatastoreFieldRole role)
To be called when we want an identifier name creating based on the java field name, and a particular "role". |
DatastoreIdentifier |
newTableIdentifier(java.lang.String javaName,
java.lang.String sqlIdentifier)
Method to generate an identifier for a TABLE. |
DatastoreIdentifier |
newTableIdentifierForMetaData(ClassLoaderResolver clr,
ExtendableMetaData md)
Method to return a Table identifier for the specified class or field. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RDBMSIdentifierFactory(StoreManager storeMgr)
storeMgr
- Manager for the storeMethod Detail |
public DatastoreIdentifier newIdentifier(int identifierType, java.lang.String sqlIdentifier)
newIdentifier
in interface IdentifierFactory
identifierType
- the type of identifier to be createdsqlIdentifier
- The SQL identifier name
public DatastoreIdentifier newColumnIdentifier(java.lang.String javaName, java.lang.String sqlIdentifier)
newColumnIdentifier
in interface IdentifierFactory
javaName
- The java name of the fieldsqlIdentifier
- The identifier (this is optional)
public DatastoreIdentifier newTableIdentifier(java.lang.String javaName, java.lang.String sqlIdentifier)
newTableIdentifier
in interface IdentifierFactory
javaName
- The java name of the class (used for auto-generation if no sqlIdentifier)sqlIdentifier
- The identifier (this is optional)
public DatastoreIdentifier newIdentifier(int identifierType, java.lang.String javaName, boolean embedded, DatastoreFieldRole role)
newIdentifier
in interface IdentifierFactory
identifierType
- the type of identifier to be createdjavaName
- The java field nameembedded
- Whether the identifier is for a field embeddedrole
- The role to be performed by this column e.g FK, Index ?
public DatastoreIdentifier newIdentifier(int identifierType, DatastoreIdentifier baseSQLID, boolean embedded, DatastoreFieldRole role)
newIdentifier
in interface IdentifierFactory
identifierType
- the type of identifier to be createdbaseSQLID
- The base identifierembedded
- Whether the identifier is for a field embeddedrole
- The role to use
public DatastoreIdentifier newIdentifier(int identifierType, DatastoreContainerObject table, int seq)
newIdentifier
in interface IdentifierFactory
identifierType
- the type of identifier to be createdtable
- the tableseq
- the sequential number
public DatastoreIdentifier newIdentifier(int identifierType, DatastoreContainerObject table, boolean isUnique, int seq)
newIdentifier
in interface IdentifierFactory
identifierType
- the type of identifier to be createdtable
- the tableisUnique
- if the index is uniqueseq
- the sequential number
public DatastoreIdentifier newIdentifier(int identifierType, AbstractPropertyMetaData refMetaData, AbstractClassMetaData implMetaData, DatastoreIdentifier implIdentifier)
newIdentifier
in interface IdentifierFactory
identifierType
- the type of identifier to be createdrefMetaData
- the AbstractPropertyMetaData for the reference fieldimplMetaData
- the AbstractClassMetaData
public DatastoreIdentifier newIdentifier(int identifierType, DatastoreContainerObject table)
newIdentifier
in interface IdentifierFactory
identifierType
- the type of identifier to be createdtable
- the table
public DatastoreIdentifier newTableIdentifierForMetaData(ClassLoaderResolver clr, ExtendableMetaData md)
newTableIdentifierForMetaData
in interface IdentifierFactory
clr
- the ClassLoaderResolvermd
- Meta data for the class/field
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |