Package org.hawaiiframework.sql
Class AbstractCachingSqlQueryResolver.QueryHolder
- java.lang.Object
-
- org.hawaiiframework.sql.AbstractCachingSqlQueryResolver.QueryHolder
-
- Enclosing class:
- AbstractCachingSqlQueryResolver
protected static class AbstractCachingSqlQueryResolver.QueryHolder extends Object
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
Constructors Modifier Constructor Description protected
QueryHolder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getQueryTimestamp()
long
getRefreshTimestamp()
String
getSqlQuery()
void
setQueryTimestamp(long queryTimestamp)
void
setRefreshTimestamp(long refreshTimestamp)
void
setSqlQuery(String sqlQuery)
-
-
-
Method Detail
-
getSqlQuery
public String getSqlQuery()
-
setSqlQuery
public void setSqlQuery(String sqlQuery)
-
getRefreshTimestamp
public long getRefreshTimestamp()
-
setRefreshTimestamp
public void setRefreshTimestamp(long refreshTimestamp)
-
getQueryTimestamp
public long getQueryTimestamp()
-
setQueryTimestamp
public void setQueryTimestamp(long queryTimestamp)
-
-