[EoDsql-users] Unsupported operation
Status: Beta
Brought to you by:
lemnik
|
From: Ricardo P. <rpm...@ya...> - 2008-10-17 20:45:47
|
Hi,
I've switched to EoD-SQL 2.0beta to solve a problem with 1.1,
following recommendations by Jason (BTW, Jason, I don't know if you
did it on purpose, but your answers were directed straight to my
e-mail address, bypassing the list).
All I have had to touch due to the upgrade has been changing a
@SelectPrimitive annotation to @Select. That's good. :-)
But now I get an exception in a code point that was working before,
with EoD SQL 1.1:
Caused by: java.lang.UnsupportedOperationException: Not supported yet.
at
net.lemnik.eodsql.spi.util.MutableProperty.set(MutableProperty.java:39)
at
net.lemnik.eodsql.spi.util.DefaultDataObjectBinding.unmarshall(DefaultDataObjectBinding.java:231)
at
net.lemnik.eodsql.spi.util.DataObjectBinding.unmarshall(DataObjectBinding.java:158)
at
net.lemnik.eodsql.spi.util.DisconnectedDataSet.<init>(DisconnectedDataSet.java:33)
at
net.lemnik.eodsql.spi.util.DataSetWrapper.wrap(DataSetWrapper.java:128)
at
net.lemnik.eodsql.spi.util.DataSetWrapper.wrap(DataSetWrapper.java:33)
at
net.lemnik.eodsql.impl.SelectMethodImplementation.invoke(SelectMethodImplementation.java:84)
at
net.lemnik.eodsql.impl.BaseQueryImpl$MethodImpl.invoke(BaseQueryImpl.java:172)
at
net.lemnik.eodsql.impl.BaseQueryImpl.invoke(BaseQueryImpl.java:118)
at $Proxy6.getAllL10ns(Unknown Source)
The definition of getAllL10ns is this one:
public interface L10nQuery extends BaseQuery {
// Tried also with value="..." instead of sql="..."
@Select(sql="SELECT * FROM l10n ORDER BY l10ncode",
disconnected=true)
public DataSet<L10n> getAllL10ns();
@Select("SELECT count(*) FROM l10n")
public int getCountL10ns();
...
}
and it's called in a code like this:
public class L10nList {
private final L10n.L10nQuery pst;
public L10nList() {
super();
pst =
QueryTool.getQuery(Statics.getInstance().getDbEnv().getDataSource(),
L10n.L10nQuery.class);
this.refreshList();
}
public final void refreshList() {
if (pst.getCountL10ns() > 0) { // This works
l10nCol = pst.getAllL10ns(); // This throws the exception
l10nCol.disconnect();
}
}
I guess I've managed to reach a "work in progress" part of the EoD SQL
code? :-)
TIA
--
Whatever hits the fan will not be evenly distributed. (T@g)
* TagZilla 0.066 *
|