1 | package de.uka.ipd.sdq.sensorframework.dao.file.entities; |
2 | |
3 | import de.uka.ipd.sdq.sensorframework.dao.file.FileDAOFactory; |
4 | import de.uka.ipd.sdq.sensorframework.entities.dao.IDAOFactory; |
5 | |
6 | /** Abstract superclass of all entities persistable by File DAOs |
7 | * @author Steffen Becker |
8 | * |
9 | */ |
10 | public abstract class AbstractFileEntity implements SerializableEntity { |
11 | |
12 | /** |
13 | * |
14 | */ |
15 | private static final long serialVersionUID = 1L; |
16 | |
17 | /** |
18 | * File DAO which controls this entity. Used to create child objects of this object by subclasses |
19 | */ |
20 | protected transient IDAOFactory factory; |
21 | |
22 | public AbstractFileEntity(IDAOFactory factory) { |
23 | this.factory = factory; |
24 | } |
25 | |
26 | /* (non-Javadoc) |
27 | * @see de.uka.ipd.sdq.sensorframework.dao.file.entities.NamedSerializable#setFactory(de.uka.ipd.sdq.sensorframework.dao.file.FileDAOFactory) |
28 | * |
29 | * Called by the deserialisation method to provide the factory after deserialisation |
30 | */ |
31 | public void setFactory(FileDAOFactory factory) { |
32 | this.factory = factory; |
33 | } |
34 | |
35 | } |