X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.db%2Fsrc%2Forg%2Fsimantics%2Fdb%2FResource.java;h=18ad6b737500d22869b4c5336e34c40855b30437;hp=4a38f1b064e79b3b41d3d5fa3e605ff857ca85b8;hb=e19c37f84fd1ce2d946578f7c05f3e45444ba67a;hpb=969bd23cab98a79ca9101af33334000879fb60c5 diff --git a/bundles/org.simantics.db/src/org/simantics/db/Resource.java b/bundles/org.simantics.db/src/org/simantics/db/Resource.java index 4a38f1b06..18ad6b737 100644 --- a/bundles/org.simantics.db/src/org/simantics/db/Resource.java +++ b/bundles/org.simantics.db/src/org/simantics/db/Resource.java @@ -1,49 +1,49 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * 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: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.db; - -import org.simantics.utils.Container; - -/** - * A Graph independent reference to a resource. These can be stored between - * transactions and later used with any {@link RequestProcessor} or - * {@link AsyncRequestProcessor} that originates from a Session with the same - * database. - * - *

- * Resources are considered implementation dependent. Therefore - * Resource instances from different implementations of this - * database connection API should not be used together. - *

- * - *

- * This interface should not be implemented by clients. - *

- * - * @author Tuukka Lehtonen - * @see AsyncReadGraph - * @see ReadGraph - * @see WriteGraph - */ -public interface Resource extends Container, Comparable { - - Resource[] NONE = new Resource[0]; - - long getResourceId(); - - int getThreadHash(); - - boolean isPersistent(); - - boolean equalsResource(Resource other); - -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * 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: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.db; + +import org.simantics.utils.Container; + +/** + * A Graph independent reference to a resource. These can be stored between + * transactions and later used with any {@link RequestProcessor} or + * {@link AsyncRequestProcessor} that originates from a Session with the same + * database. + * + *

+ * Resources are considered implementation dependent. Therefore + * Resource instances from different implementations of this + * database connection API should not be used together. + *

+ * + *

+ * This interface should not be implemented by clients. + *

+ * + * @author Tuukka Lehtonen + * @see AsyncReadGraph + * @see ReadGraph + * @see WriteGraph + */ +public interface Resource extends Container, Comparable { + + Resource[] NONE = new Resource[0]; + + long getResourceId(); + + int getThreadHash(); + + boolean isPersistent(); + + boolean equalsResource(Resource other); + +}