]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/Siman-Common/src/org/splat/dal/bo/som/Entity.java
Salome HOME
Siman codebase is refactored. Spring beans are introduced in the context.
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / dal / bo / som / Entity.java
1 package org.splat.dal.bo.som;
2 /**
3  * Class whose only purpose is to represent the kernel's Entity class for propagating to this package the visibility of relations
4  * and attributes editing functions.
5  * 
6  * @author    Daniel Brunier-Coulin
7  * @copyright OPEN CASCADE 2012
8  */
9
10 import java.util.Set;
11
12 import org.splat.dal.bo.kernel.Persistent;
13 import org.splat.dal.bo.kernel.Relation;
14 import org.splat.kernel.ObjectProperties;
15 import org.splat.kernel.InvalidPropertyException;
16 import org.splat.kernel.MissedPropertyException;
17 import org.splat.kernel.MultiplyDefinedException;
18
19
20 public abstract class Entity extends org.splat.dal.bo.kernel.Entity {
21
22 //  ==============================================================================================================================
23 //  Constructors
24 //  ==============================================================================================================================
25
26 //  Database fetch constructor
27     protected Entity () {
28     }
29 //  Initialization constructor
30     protected Entity (ObjectProperties prop) throws MissedPropertyException, InvalidPropertyException, MultiplyDefinedException {
31 //  ----------------------------------------
32       super(prop);
33     }
34
35 //  ==============================================================================================================================
36 //  Protected services
37 //  ==============================================================================================================================
38
39     public Relation addRelation (Relation link) {
40 //  ----------------------------------------------
41       return super.addRelation(link);
42     }
43
44     public Set<Relation> getAllRelations () {
45 //  ------------------------------------------
46       return super.getAllRelations();
47     }
48
49     public void removeRelation (Class<? extends Relation> type, Persistent to) {
50 //  -----------------------------------------------------------------------------
51       super.removeRelation(type, to);
52     }
53 }