Author: aadamchik
Date: Fri Sep 1 04:45:03 2006
New Revision: 439277
URL: http://svn.apache.org/viewvc?rev=439277&view=rev
Log:
exposing group config settings
Modified:
incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/main/java/org/apache/cayenne/cache/OSQueryCache.java
Modified:
incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/main/java/org/apache/cayenne/cache/OSQueryCache.java
URL:
http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/main/java/org/apache/cayenne/cache/OSQueryCache.java?rev=439277&r1=439276&r2=439277&view=diff
==============================================================================
---
incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/main/java/org/apache/cayenne/cache/OSQueryCache.java
(original)
+++
incubator/cayenne/main/trunk/core/cayenne-jdk1.4/src/main/java/org/apache/cayenne/cache/OSQueryCache.java
Fri Sep 1 04:45:03 2006
@@ -109,6 +109,36 @@
?
Collections.unmodifiableCollection(refreshSpecifications.keySet())
: Collections.EMPTY_SET;
}
+
+ public String getCronExpression(String groupName) {
+
+ RefreshSpecification spec = null;
+
+ if (refreshSpecifications != null) {
+ spec = (RefreshSpecification) refreshSpecifications.get(groupName);
+ }
+
+ if (spec == null) {
+ spec = defaultRefreshSpecification;
+ }
+
+ return spec.cronExpression;
+ }
+
+ public int getRrefreshPeriod(String groupName) {
+
+ RefreshSpecification spec = null;
+
+ if (refreshSpecifications != null) {
+ spec = (RefreshSpecification) refreshSpecifications.get(groupName);
+ }
+
+ if (spec == null) {
+ spec = defaultRefreshSpecification;
+ }
+
+ return spec.refreshPeriod;
+ }
/**
* Returns the underlying OSCache manager object.