1 /*******************************************************************************
2 * Copyright (c) 2016 Association for Decentralized Information Management
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Semantum Oy - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.db.function;
14 import org.simantics.db.exception.DatabaseException;
17 * Represents a supplier of results for database operations.
19 * <p>There is no requirement that a new or distinct result be returned each
20 * time the supplier is invoked.
22 * @param <T> the type of results supplied by this supplier
24 * @author Tuukka Lehtonen
25 * @since 1.22.1 & 1.24.0
28 public interface DbSupplier<T> {
31 * Performs this operation on the given argument.
33 * @param t the input argument
35 T get() throws DatabaseException;