+/*
+ * Copyright (C) 2007-2012 Argeo GmbH
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.argeo.server.jxl.dao;
import java.io.InputStream;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.argeo.server.ArgeoServerException;
+import org.argeo.ArgeoException;
import org.argeo.server.dao.AbstractTabularDaoSupport;
import org.argeo.server.dao.LightDaoSupport;
import org.springframework.beans.BeanWrapper;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.ApplicationContextAware;
-import org.springframework.core.io.Resource;
import org.springframework.util.StringUtils;
public class JxlDaoSupport extends AbstractTabularDaoSupport implements
loadSheet(sheet, references);
}
} catch (Exception e) {
- throw new ArgeoServerException("Cannot load workbook", e);
+ throw new ArgeoException("Cannot load workbook", e);
}
}
if (keyProperty == null)
keyProperty = fieldName;
if (!espSt.hasMoreTokens())
- throw new ArgeoServerException("Badly formatted sheetname "
+ throw new ArgeoException("Badly formatted sheetname "
+ sheetName);
String fieldValue = espSt.nextToken();
bw.setPropertyValue(fieldName, fieldValue);
String formula = ((FormulaCell) cell).getFormula();
int index = formula.indexOf('!');
if (index < 0)
- throw new ArgeoServerException("Cannot interpret formula "
+ throw new ArgeoException("Cannot interpret formula "
+ formula);
;
String targetSheet = formula.substring(0, index);