|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OriginalCMPMapping
This interface provides an abstraction for the original relational database information used to generate an Entity container managed persistence bean. Changes to cmp or cmr fields made after generation will not be reflected in this interface and may invalidation the original mappings. Thus, this information is intended to serve only as a hint for application server mapping.
Method Summary | |
---|---|
String |
getEjbName()
|
String |
getFieldColumn(String cmpFieldName)
|
String[] |
getRelationshipColumn(String cmrFieldName)
Obtain the foreign key columns used to express a 1:N relationship. |
String |
getRelationshipJoinTable(String cmrFieldName)
Obtain the name of the join table a cmr field is based on. |
org.openide.filesystems.FileObject |
getSchema()
|
String |
getTableName()
|
Method Detail |
---|
org.openide.filesystems.FileObject getSchema()
String getEjbName()
String getTableName()
String getFieldColumn(String cmpFieldName)
cmpFieldName
- to use for locating column mapping.
String[] getRelationshipColumn(String cmrFieldName)
getRelationshipColumn("lineItems")
on
Order would return null; however, the same invocation on LineItem would
return the foreign keys which reference Order. Mapping information for
M:N relationships is obtain via the #getRelationshipTable(java.lang.String)
method.
cmrFieldName
- to use for locating column mapping.
String getRelationshipJoinTable(String cmrFieldName)
cmrFieldName
- to use in decision.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |