summaryrefslogtreecommitdiff
path: root/source/com/c2kernel/entity/C2KLocalObject.java
diff options
context:
space:
mode:
Diffstat (limited to 'source/com/c2kernel/entity/C2KLocalObject.java')
-rwxr-xr-xsource/com/c2kernel/entity/C2KLocalObject.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/source/com/c2kernel/entity/C2KLocalObject.java b/source/com/c2kernel/entity/C2KLocalObject.java
new file mode 100755
index 0000000..06bf867
--- /dev/null
+++ b/source/com/c2kernel/entity/C2KLocalObject.java
@@ -0,0 +1,32 @@
+package com.c2kernel.entity;
+
+import java.io.Serializable;
+
+/**
+ * Objects that are to be stored by Cristal Entities must implement this interface and be (un)marshallable by Castor
+ * i.e. have a map file properly registered in the kernel. Domain implementors should not create new C2KLocalObjects
+ * <p>Each object will be stored as the path /clustertype/name in most cases. Exceptions are:
+ * <ul>
+ * <li>Outcomes - /Outcome/SchemaType/SchemaVersion/EventId
+ * <li>Viewpoints - /ViewPoint/SchemaType/Name
+ * </ul>
+ *
+ * @see com.c2kernel.persistency.ClusterStorage
+ * @see com.c2kernel.persistency.ClusterStorageManager
+ *
+ * @author Andrew Branson
+ *
+ * $Revision: 1.5 $
+ * $Date: 2004/01/22 11:10:41 $
+ *
+ * Copyright (C) 2003 CERN - European Organization for Nuclear Research
+ * All rights reserved.
+ */
+
+public interface C2KLocalObject extends Serializable {
+
+ public void setName(String name);
+ public String getName();
+
+ public String getClusterType();
+}