1 package org.simantics.db;
3 import java.util.TreeMap;
5 import org.simantics.db.exception.ServiceException;
7 public interface MetadataI {
9 * Sets given meta data to be used with next commit.
12 * @throws ServiceException
14 <T> void addMetadata(Metadata metadata) throws ServiceException;
17 * Returns asked class from the meta data of next commit.
19 * @param clazz asked class
20 * @return instance of asked class
21 * @throws ServiceException
23 <T extends Metadata> T getMetadata(Class<T> clazz) throws ServiceException;
25 * Returns meta data serialized for next commit.
29 TreeMap<String, byte[]> getMetadata();