return null;
}
JavaField field;
JavaMethod method;
JavaClass retVal = createDynamicJavaClass(getDestinationClassname(metadata), getDestinationPackage(metadata), null, getMetadataProvider());
retVal.setInterface(true);
retVal.setModifiers(new String[]{"public"});
String[] extendz = getExtends(metadata);
Type[] extendzTypes = new Type[extendz.length];
for (int j = 0; j < extendz.length; j++) {
extendzTypes[j] = new Type(extendz[j]);
}
retVal.setImplementz(extendzTypes);
field = new JavaField(new Type("java.lang.String"), ejbHomeUtils.getCompleteNameConst());
field.setModifiers(new String[]{"public","static","final"});
retVal.addField(field);
field = new JavaField(new Type("java.lang.String"), ejbHomeUtils.getJndiNameConst());
field.setModifiers(new String[]{"public","static","final"});
retVal.addField(field);
Collection methods = getCreateMethods(metadata);
for (Iterator iter = methods.iterator(); iter.hasNext();) {
method = new DuplicatedJavaMethod((JavaMethod)iter.next());
method.setModifiers(new String[0]);
retVal.addMethod(method);
}
if (ejbUtils.isEntityBean(metadata)) {
methods = getFinderMethods(metadata);
for (Iterator iter = methods.iterator(); iter.hasNext();) {
method = new DuplicatedJavaMethod((JavaMethod)iter.next());
method.setModifiers(new String[0]);
retVal.addMethod(method);
}
}
methods = getHomeMethods(metadata);
for (Iterator iter = methods.iterator(); iter.hasNext();) {
method = new DuplicatedJavaMethod((JavaMethod)iter.next());
method.setModifiers(new String[0]);
retVal.addMethod(method);
}
return new JavaClass[]{retVal};
}