01: package net.sourceforge.jaxor.parser;
02:
03: import java.util.ArrayList;
04: import java.util.List;
05:
06: /*
07: * User: Mike
08: * Date: Oct 22, 2002
09: * Time: 1:03:49 AM
10: */
11:
12: public class PrimaryKey {
13: private final List _all = new ArrayList();
14: private boolean autoAssign = false;
15:
16: public void setAutoAssign(boolean val) {
17: autoAssign = val;
18: }
19:
20: public void addAttribute(Attribute att) {
21: att.setAutoAssign(autoAssign);
22: att.setIsPrimaryKey(true);
23: _all.add(att);
24: }
25:
26: public boolean isAutoAssign() {
27: return autoAssign;
28: }
29:
30: public List getKeys() {
31: return _all;
32: }
33: }
|