Use get() in our convenience methods.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1757 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -101,7 +101,7 @@ public abstract class JORARepository extends SimpleRepository
|
|||||||
public Object invoke (Connection conn, DatabaseLiaison liaison)
|
public Object invoke (Connection conn, DatabaseLiaison liaison)
|
||||||
throws SQLException, PersistenceException
|
throws SQLException, PersistenceException
|
||||||
{
|
{
|
||||||
return table.select(query).next();
|
return table.select(query).get();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -118,7 +118,7 @@ public abstract class JORARepository extends SimpleRepository
|
|||||||
public Object invoke (Connection conn, DatabaseLiaison liaison)
|
public Object invoke (Connection conn, DatabaseLiaison liaison)
|
||||||
throws SQLException, PersistenceException
|
throws SQLException, PersistenceException
|
||||||
{
|
{
|
||||||
return table.queryByExample(example).next();
|
return table.queryByExample(example).get();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -136,7 +136,7 @@ public abstract class JORARepository extends SimpleRepository
|
|||||||
public Object invoke (Connection conn, DatabaseLiaison liaison)
|
public Object invoke (Connection conn, DatabaseLiaison liaison)
|
||||||
throws SQLException, PersistenceException
|
throws SQLException, PersistenceException
|
||||||
{
|
{
|
||||||
return table.queryByExample(example, mask).next();
|
return table.queryByExample(example, mask).get();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user