Package org.hawaiiframework.sql
Class AbstractCachingSqlQueryResolver.QueryHolder
java.lang.Object
org.hawaiiframework.sql.AbstractCachingSqlQueryResolver.QueryHolder
- Enclosing class:
- AbstractCachingSqlQueryResolver
QueryHolder for caching. Stores the timestamp of the last refresh (updated every time the query
is refreshed) as well as the query timestamp. Whether or not the latter is only meaningful
depends on the way the query is loaded. For example, loading a query as a resource from the
classpath will not result in any meaningful timestamp, whereas loading it from the file system
will.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
long
void
setQueryTimestamp
(long queryTimestamp) void
setRefreshTimestamp
(long refreshTimestamp) void
setSqlQuery
(String sqlQuery)
-
Constructor Details
-
QueryHolder
protected QueryHolder()
-
-
Method Details
-
getSqlQuery
-
setSqlQuery
-
getRefreshTimestamp
public long getRefreshTimestamp() -
setRefreshTimestamp
public void setRefreshTimestamp(long refreshTimestamp) -
getQueryTimestamp
public long getQueryTimestamp() -
setQueryTimestamp
public void setQueryTimestamp(long queryTimestamp)
-