X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.db%2Fsrc%2Forg%2Fsimantics%2Fdb%2FMetadataI.java;h=f13a8687563509c5332f750907e183d1b3283458;hb=9f0fd59be54719b1fe9322d8fd37e4950857308c;hp=b1e3cf843b31189f2b57a535ab1c9ec9aba69ce9;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.db/src/org/simantics/db/MetadataI.java b/bundles/org.simantics.db/src/org/simantics/db/MetadataI.java index b1e3cf843..f13a86875 100644 --- a/bundles/org.simantics.db/src/org/simantics/db/MetadataI.java +++ b/bundles/org.simantics.db/src/org/simantics/db/MetadataI.java @@ -1,30 +1,30 @@ -package org.simantics.db; - -import java.util.TreeMap; - -import org.simantics.db.exception.ServiceException; - -public interface MetadataI { - /** - * Sets given meta data to be used with next commit. - * - * @param metadata - * @throws ServiceException - */ - void addMetadata(Metadata metadata) throws ServiceException; - - /** - * Returns asked class from the meta data of next commit. - * - * @param clazz asked class - * @return instance of asked class - * @throws ServiceException - */ - T getMetadata(Class clazz) throws ServiceException; - /** - * Returns meta data serialized for next commit. - * - * @return meta data - */ - TreeMap getMetadata(); -} +package org.simantics.db; + +import java.util.TreeMap; + +import org.simantics.db.exception.ServiceException; + +public interface MetadataI { + /** + * Sets given meta data to be used with next commit. + * + * @param metadata + * @throws ServiceException + */ + void addMetadata(Metadata metadata) throws ServiceException; + + /** + * Returns asked class from the meta data of next commit. + * + * @param clazz asked class + * @return instance of asked class + * @throws ServiceException + */ + T getMetadata(Class clazz) throws ServiceException; + /** + * Returns meta data serialized for next commit. + * + * @return meta data + */ + TreeMap getMetadata(); +}