01: package org.osbl.persistence;
02:
03: import java.io.Serializable;
04:
05: public abstract class LoadCommand<T> implements Command {
06: protected Class<T> type;
07: protected Serializable id;
08:
09: public LoadCommand<T> setType(Class<T> type) {
10: this .type = type;
11: return this ;
12: }
13:
14: public LoadCommand<T> setId(Serializable id) {
15: this .id = id;
16: return this ;
17: }
18:
19: public abstract T execute();
20: }
|