|
What this is
Other links
The source code
/*
* Sun Public License Notice
*
* The contents of this file are subject to the Sun Public License
* Version 1.0 (the "License"). You may not use this file except in
* compliance with the License. A copy of the License is available at
* http://www.sun.com/
*
* The Original Code is NetBeans. The Initial Developer of the Original
* Code is Sun Microsystems, Inc. Portions Copyright 1997-2003 Sun
* Microsystems, Inc. All Rights Reserved.
*/
package org.netbeans.modules.j2ee.deployment.common.api;
import org.openide.filesystems.FileObject;
/**
* 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.
* @author Chris Webster
*/
public interface OriginalCMPMapping {
/**
* @return file reference to dbschema where table and column references
* refer.
*/
FileObject getSchema();
/**
* @return table name containing all column references.
*/
String getTableName();
/**
* @param cmpFieldName to use for locating column mapping.
* @return name of column which represents the cmp field in #getTable() or
* null if this cmp field does not have a mapping (this could happen because
* of a change to the set of cmp fields or changes to the specific cmp field).
*/
String getFieldColumn(String cmpFieldName);
/**
* Obtain the foreign key columns used to express a 1:N relationship. This
* method will return the mapping only from the dependant EJB. Consider a
* an Order to LineItem relationship (Order contains many line items)
* where Order has a cmr field called lineItems and LineItem has a cmr field
* named order. Invoking
|
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.