diff --git a/spring-datastore-document-core/src/main/java/org/springframework/datastore/document/analytics/ControllerCounter.java b/spring-datastore-document-core/src/main/java/org/springframework/datastore/document/analytics/ControllerCounter.java new file mode 100644 index 000000000..56706e089 --- /dev/null +++ b/spring-datastore-document-core/src/main/java/org/springframework/datastore/document/analytics/ControllerCounter.java @@ -0,0 +1,41 @@ +package org.springframework.datastore.document.analytics; + +import java.util.Date; +import java.util.Map; + +public class ControllerCounter { + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getCount() { + return count; + } + + public void setCount(int count) { + this.count = count; + } + + public Map getMethods() { + return methods; + } + + + + public void setMethods(Map methods) { + this.methods = methods; + } + + private String name; + + private int count; + + private Map methods; + + +} diff --git a/spring-datastore-mongodb/src/main/java/org/springframework/datastore/document/mongodb/DBCallback.java b/spring-datastore-mongodb/src/main/java/org/springframework/datastore/document/mongodb/DBCallback.java new file mode 100644 index 000000000..99478106c --- /dev/null +++ b/spring-datastore-mongodb/src/main/java/org/springframework/datastore/document/mongodb/DBCallback.java @@ -0,0 +1,28 @@ +/* + * Copyright 2010 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.springframework.datastore.document.mongodb; + +import org.springframework.dao.DataAccessException; + +import com.mongodb.DB; +import com.mongodb.DBCollection; +import com.mongodb.MongoException; + +public interface DBCallback { + + T doInDB(DB db) throws MongoException, DataAccessException; + +}