2013年9月28日星期六

May I ask how to use java at a certain time ( time uncertain ) to modify the database , thank

I am doing a project that requires the end of the training course marks the end of the course is set to the end of the state , how should I do ? ? ? ?
end of time is in the database table .
This is the first post, please enlighten heroes , thank you ! !
------ Solution ---------------------------------------- ----
with timed tasks inside the table to find the end time and now time to compare, I do not know this program does not meet your requirements
------ Solution -------- ------------------------------------
trigger it . Listening time
------ For reference only ------------------------------------ ---
I want to be able to obtain it from a database trigger , but nothing a good idea . From the program would solve nothing good ideas
------ For reference only ----------------------------- ----------

timed so there should be no way to timely update the status bar, which I also thought , however , the need to update the project requirements
------ For reference only ---------------------------------------
this demand there are ways to use the database triggers to solve it, knees and begged the god pointing !
------ For reference only -------------------------------------- -
with Timer words will not be very resource intensive , because a course has a thread Timer instance , if there are 1000 courses , then there will be 1000 , does this implementation fly it ?
------ For reference only -------------------------------------- -
check the relevant information , you can use quartz and Timer, therefore because of this relatively simple , with the Timer it. But Quartz for repetitive operation is relatively fast hardware ! Thank you ! ! !

没有评论:

发表评论