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