| /** |
| * |
| * 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 License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation |
| */ |
| package org.eclipse.osbp.ui.api.datamart; |
| |
| import java.util.ArrayList; |
| import java.util.HashMap; |
| |
| import org.eclipse.osbp.ui.api.user.IUser; |
| |
| public interface IDataMart { |
| enum EType { |
| BOOLEAN, DATE, FLOAT, DOUBLE, BYTE, SHORT, INTEGER, LONG, STRING, TIME, BLOPMAPPING, LENUM, NONE |
| } |
| |
| static final String DATAMART_CLASS_POSTFIX = "Datamart"; |
| static final String DATAMART_SERVICE_POSTFIX = "DatamartService"; |
| static final String DATAMART_CONTAINER_POSTFIX = "DatamartContainer"; |
| static final String DATAMART_ID_COLUMN_PREFIX = "__"; |
| static final String DATAMART_ID_COLUMN_POSTFIX = "__ID__"; |
| static final String SQLFILTERNOTHING = "'*'"; |
| void setUser(IUser user); |
| IUser getUser(); |
| ArrayList<DatamartFilter> getFilters(); |
| void renderFilters(); |
| HashMap<String, EType> getIdMap(); |
| HashMap<String, EType> getTypesMap(); |
| ArrayList<DatamartPrimary<?>> getPrimaryList(); |
| void computeConditions(); |
| void clearCache(); |
| String getResultAttribute(String attributeName); |
| } |