001/**
002 * Copyright 2014 The Sculptor Project Team, including the original
003 * author or authors.
004 * 
005 * Licensed under the Apache License, Version 2.0 (the "License");
006 * you may not use this file except in compliance with the License.
007 * You may obtain a copy of the License at
008 * 
009 *      http://www.apache.org/licenses/LICENSE-2.0
010 * 
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017package org.sculptor.generator.cartridge.mongodb;
018
019import org.sculptor.generator.cartridge.mongodb.MongoDbServiceTestTmpl;
020import sculptormetamodel.Service;
021
022/**
023 * Method dispatch class for MongoDbServiceTestTmpl, used for dispatching to overrideable methods
024 */
025@SuppressWarnings("all")
026public class MongoDbServiceTestTmplMethodDispatch extends MongoDbServiceTestTmpl {
027  public MongoDbServiceTestTmplMethodDispatch(final MongoDbServiceTestTmpl[] methodsDispatchTable) {
028    super(null);
029    this.methodsDispatchTable = methodsDispatchTable; 
030  }
031  
032  public MongoDbServiceTestTmplMethodDispatch(final MongoDbServiceTestTmpl next, final MongoDbServiceTestTmpl[] methodsDispatchTable) {
033    super(next);
034    this.methodsDispatchTable = methodsDispatchTable; 
035  }
036  
037  private final MongoDbServiceTestTmpl[] methodsDispatchTable;
038  
039  public final MongoDbServiceTestTmpl[] getMethodsDispatchTable() {
040    return(methodsDispatchTable);
041  }
042  
043  public String serviceJUnitSubclassMongoDb(final Service it) {
044    MongoDbServiceTestTmpl nextObj = methodsDispatchTable[org.sculptor.generator.cartridge.mongodb.MongoDbServiceTestTmplMethodIndexes.SERVICEJUNITSUBCLASSMONGODB_SERVICE];
045    return nextObj._chained_serviceJUnitSubclassMongoDb(it);
046  }
047  
048  public String dependencyInjection(final Service it) {
049    MongoDbServiceTestTmpl nextObj = methodsDispatchTable[org.sculptor.generator.cartridge.mongodb.MongoDbServiceTestTmplMethodIndexes.DEPENDENCYINJECTION_SERVICE];
050    return nextObj._chained_dependencyInjection(it);
051  }
052  
053  public String initTestData(final Service it) {
054    MongoDbServiceTestTmpl nextObj = methodsDispatchTable[org.sculptor.generator.cartridge.mongodb.MongoDbServiceTestTmplMethodIndexes.INITTESTDATA_SERVICE];
055    return nextObj._chained_initTestData(it);
056  }
057  
058  public String initDbManagerThreadInstance(final Service it) {
059    MongoDbServiceTestTmpl nextObj = methodsDispatchTable[org.sculptor.generator.cartridge.mongodb.MongoDbServiceTestTmplMethodIndexes.INITDBMANAGERTHREADINSTANCE_SERVICE];
060    return nextObj._chained_initDbManagerThreadInstance(it);
061  }
062  
063  public String dropDatabase(final Service it) {
064    MongoDbServiceTestTmpl nextObj = methodsDispatchTable[org.sculptor.generator.cartridge.mongodb.MongoDbServiceTestTmplMethodIndexes.DROPDATABASE_SERVICE];
065    return nextObj._chained_dropDatabase(it);
066  }
067  
068  public String countRows(final Service it) {
069    MongoDbServiceTestTmpl nextObj = methodsDispatchTable[org.sculptor.generator.cartridge.mongodb.MongoDbServiceTestTmplMethodIndexes.COUNTROWS_SERVICE];
070    return nextObj._chained_countRows(it);
071  }
072}