Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/DatabaseCleaner.java @ 93:e27cf9c84eb8
Unified imports.
artifacts/trunk@849 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 28 Mar 2010 15:57:40 +0000 |
parents | 730ff077a58c |
children | 933bbc9fc11f |
comparison
equal
deleted
inserted
replaced
92:73d0ebae81d7 | 93:e27cf9c84eb8 |
---|---|
1 package de.intevation.artifactdatabase; | 1 package de.intevation.artifactdatabase; |
2 | 2 |
3 import de.intevation.artifacts.Artifact; | 3 import de.intevation.artifacts.Artifact; |
4 | 4 |
5 import java.sql.Connection; | 5 import java.sql.Connection; |
6 import java.sql.SQLException; | |
7 import java.sql.PreparedStatement; | 6 import java.sql.PreparedStatement; |
8 import java.sql.ResultSet; | 7 import java.sql.ResultSet; |
9 | 8 import java.sql.SQLException; |
10 import javax.sql.DataSource; | |
11 | |
12 import org.apache.log4j.Logger; | |
13 | 9 |
14 import java.util.ArrayList; | 10 import java.util.ArrayList; |
15 import java.util.List; | 11 import java.util.List; |
12 | |
13 import javax.sql.DataSource; | |
14 | |
15 import org.apache.log4j.Logger; | |
16 | 16 |
17 /** | 17 /** |
18 * The database cleaner runs in background. It sleep for a configurable | 18 * The database cleaner runs in background. It sleep for a configurable |
19 * while and when it wakes up it removes outdated artifacts from the | 19 * while and when it wakes up it removes outdated artifacts from the |
20 * database. Outdated means that the the last access to the artifact | 20 * database. Outdated means that the the last access to the artifact |