| /** |
| * |
| * 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 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 { |
| public enum EType { |
| BOOLEAN, DATE, FLOAT, DOUBLE, BYTE, SHORT, INTEGER, LONG, STRING, TIME, BLOPMAPPING, LENUM, none |
| } |
| |
| public final static String DATAMART_CLASS_POSTFIX = "Datamart"; |
| public final static String DATAMART_ID_COLUMN_PREFIX = "__"; |
| public final static String DATAMART_ID_COLUMN_POSTFIX = "__ID__"; |
| |
| public static final String singleSelectDecorator = "$"; |
| public static final String multiSelectDecorator = "ยง"; |
| public static final String exceptDecorator = "%"; |
| public static final String slicerSingleSelectDecorator = "?"; |
| public static final String slicerMultiSelectDecorator = "!"; |
| public static final String sqlFilterNothing = "'*'"; |
| public static final String filterIdPlaceholder = "&"; |
| |
| public static String decorate(String decorator, String input) {return decorator+input+decorator;} |
| |
| public abstract HashMap<String, ArrayList<IDualData>> getFilters(IUser user); |
| public abstract HashMap<String, EType> getIdMap(); |
| public abstract HashMap<String, EType> getTypesMap(IUser user); |
| } |