Methods Summary |
---|
public ConversionHelper | createConversionHelper()
return new EjbConversionHelper(getNameMapperInternal());
|
public AbstractNameMapper | createUniqueNameMapper()
return new NameMapper(bundleDescriptor);
|
public java.util.Collection | getAvailableSchemaNames()Gets a collection of names of schemas defined in this
ejb jar. This implementation simply returns the list passed in
the constructor or null if there was none supplied.
return availableSchemaNames;
|
private EjbBundleDescriptor | getBundleDescriptor()Gets the EjbBundleDescriptor which defines the universe of
names for this application.
return bundleDescriptor;
|
public java.lang.ClassLoader | getClassLoader()Gets the class loader which corresponds to this ejb bundle.
return bundleDescriptor.getClassLoader();
|
public java.lang.String | getEjbJarDisplayName()
return bundleDescriptor.getName();
|
public java.util.Collection | getEjbNames()
Iterator iterator = getBundleDescriptor().getEjbs().iterator();
ArrayList returnList = new ArrayList();
while (iterator.hasNext()) {
EjbDescriptor ejb = (EjbDescriptor)iterator.next();
if (ejb instanceof EjbCMPEntityDescriptor)
returnList.add(ejb.getName());
}
return returnList;
|
public java.util.Collection | getFieldsForEjb(java.lang.String ejbName)
Iterator iterator = getModel().getFields(ejbName).iterator();
ArrayList returnList = new ArrayList();
while (iterator.hasNext())
returnList.add(iterator.next());
return returnList;
|
public com.sun.jdo.api.persistence.model.Model | getModel()
if (model == null) {
model = new DeploymentDescriptorModel(getNameMapperInternal(),
getClassLoader());
}
return model;
|
public AbstractNameMapper | getNameMapper()
return getNameMapperInternal();
|
private NameMapper | getNameMapperInternal()
if (nameMapper == null)
nameMapper = new NameMapper(bundleDescriptor, false);
return nameMapper;
|
public java.util.Collection | getRelationshipsForEjb(java.lang.String ejbName)
Iterator iterator = getBundleDescriptor().getRelationships().iterator();
ArrayList returnList = new ArrayList();
// TODO: issue of usage of this - several iterations of this if
// iterating all the bean - but, I think it can change, so can't
// cache it in a map (same comment applies to getEjbNames and
// getFieldsForEjb)
while (iterator.hasNext()) {
RelationshipDescriptor relD =
(RelationshipDescriptor)iterator.next();
RelationRoleDescriptor testRole = relD.getSource();
String cmrField = null;
if (ejbName.equals(testRole.getOwner().getName())) {
cmrField = testRole.getCMRField();
if (cmrField != null)
returnList.add(cmrField);
}
testRole = relD.getSink();
if (ejbName.equals(testRole.getOwner().getName())) {
cmrField = testRole.getCMRField();
if (cmrField != null)
returnList.add(cmrField);
}
}
return returnList;
|
public org.netbeans.modules.dbschema.SchemaElement | getSchema(java.lang.String schemaName)Gets the schema with the specified name, loading it if necessary.
This implementation uses the class loader as the extra context
information used to load.
return SchemaElement.forName(schemaName, getClassLoader());
|
public java.lang.String | getSchemaNameToGenerate()Gets the name to use for schema generation. This implementation
uses a combo of app name, module name, etc.
// make sure there is no '.' in schema name
return DeploymentHelper.getDDLNamePrefix(
getBundleDescriptor()).replace(DOT, UNDERLINE);
|