if (! (enterpriseBean instanceof EntityBean)) {
continue;
}
EntityBean entityBean = (EntityBean) enterpriseBean;
String beanClass = entityBean.getEjbClass();
String home = entityBean.getHome();
if (home == null || home.length() == 0) {
home = entityBean.getLocalHome();
}
List<String[]> createSignatures = facade.getSignatures(home, "create");
for (String[] createSignature : createSignatures) {
facade.convertMethodToConstructor(beanClass, "ejbCreate", createSignature);
facade.changeInvocationsToConstructor(home, "create", createSignature, beanClass);
}
List<Query> queries = entityBean.getQuery();
for (Query query : queries) {
String ejbQl = query.getEjbQl();
String methodName = query.getQueryMethod().getMethodName();
List<String> paramList = query.getQueryMethod().getMethodParams().getMethodParam();
String[] signature = paramList.toArray(new String[paramList.size()]);