blob: 16c500ea5f31ebe948f1acf00628850ec0cc1572 [file] [log] [blame]
/**
*
* Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation
*/
package org.eclipse.osbp.xtext.datamart.common;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.List;
import java.util.Map;
import org.eclipse.osbp.dsl.common.datatypes.IDto;
import org.eclipse.osbp.xtext.datamart.common.olap.DerivedCellSet;
import org.eclipse.osbp.xtext.entitymock.common.filler.FillerTextProvider;
@SuppressWarnings("all")
public abstract class AEntityDatamart extends ADatamart<Connection> {
public abstract DerivedCellSet getResults(Class operativeDtoClass, List<IDto> operativeDtos);
protected boolean fFillerTextEnabled = false;
/**
* @param enableFillerText enable using filler text for following calls to {@link #getResults(Map)}
*/
public void enableFillerText(boolean enableFillerText) {
fFillerTextEnabled = enableFillerText;
}
/**
* @return the generated filler text result set. Has be generated for each datamart class
*/
protected ResultSet generateFillerTextResultSet() {
return null;
}
/**
* @param provider the filler text provider in use
* @return the generated filler text row. Has be generated for each datamart class
*/
public Map<String, Object> generateFillerTextRow(FillerTextProvider provider) {
return null;
}
}