btw, this is what I am doing for now:
PersistenceBroker broker=PersistenceBrokerFactory.defaultPersistenceBroker();
Connection C=broker.serviceConnectionManager().getConnection();
PreparedStatement stmt=C.prepareStatement("SELECT min(tsin) FROM timeclock WHERE
ref_employee= ? AND tsout=0;");
stmt.setInt(1,emp.getId());
ResultSet rs=stmt.executeQuery();
min=rs.getDate(1);
rs.close();
stmt.close();
C.close();
broker.close();
On Sat, 22 Nov 2003, Jason Pyeron wrote:
>
> I have a prepared statement like so:
>
> "SELECT min(tsin) FROM timeclock WHERE ref_employee= ? AND tsout=0;"
>
>
> I use this to decide what to query next, it sounds like I should use the
> "report" feature in OJB but I have no idea how.
>
> I looked at
>
> ReportQueryByCriteria(java.lang.Class targetClass, java.lang.String[] columns,
> Criteria criteria)
>
> what is this targetClass?
>
> Sincerely,
>
> Jason Pyeron
>
>
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- -
- Jason Pyeron http://www.pyerotechnics.com -
- Partner & Sr. Manager Pyerotechnics Development, Inc. -
- +1 (443) 451-2697 500 West University Parkway #1S -
- +1 (410) 808-6646 (c) Baltimore, Maryland 21210-3253 -
- -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and
notify the sender immediately. Any other use of the email by you
is prohibited.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]