|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Field Summary | |
static int |
CANDIDATE_KEY
candidate key - unique index constraint |
static int |
COLUMN
column |
static int |
FOREIGN_KEY
foreign key |
static int |
INDEX
index |
static int |
PRIMARY_KEY
primary key |
static int |
REFERENCE
identifier for reference (interface/Object) fields |
static int |
TABLE
identifier for table names |
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. |
Field Detail |
public static final int CANDIDATE_KEY
public static final int COLUMN
public static final int FOREIGN_KEY
public static final int INDEX
public static final int REFERENCE
public static final int PRIMARY_KEY
public static final int TABLE
Method Detail |
public DatastoreIdentifier newIdentifier(int identifierType, java.lang.String sqlIdentifier)
identifierType
- the type of identifier to be createdsqlIdentifier
- The SQL identifier name
public DatastoreIdentifier newColumnIdentifier(java.lang.String javaName, java.lang.String sqlIdentifier)
javaName
- The java name of the fieldsqlIdentifier
- The identifier (this is optional)
public DatastoreIdentifier newTableIdentifier(java.lang.String javaName, java.lang.String sqlIdentifier)
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)
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)
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)
identifierType
- the type of identifier to be createdtable
- the tableseq
- the sequential number
public DatastoreIdentifier newIdentifier(int identifierType, DatastoreContainerObject table, boolean isUnique, int seq)
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)
identifierType
- the type of identifier to be createdrefMetaData
- the AbstractPropertyMetaData for the reference fieldimplMetaData
- the AbstractClassMetaData
public DatastoreIdentifier newIdentifier(int identifierType, DatastoreContainerObject table)
identifierType
- the type of identifier to be createdtable
- the table
public DatastoreIdentifier newTableIdentifierForMetaData(ClassLoaderResolver clr, ExtendableMetaData md)
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 |