01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com> and
03: * JR Boyens <gnu-jrb[remove] at gmx dot net>
04: * Distributed under the terms of either:
05: * - the common development and distribution license (CDDL), v1.0; or
06: * - the GNU Lesser General Public License, v2.1 or later
07: * $Id: SparseBean.java 3634 2007-01-08 21:42:24Z gbevin $
08: */
09: package com.uwyn.rife.database.querymanagers.generic.beans;
10:
11: import com.uwyn.rife.site.ConstrainedProperty;
12: import com.uwyn.rife.site.MetaData;
13:
14: public class SparseBean extends MetaData {
15: private int mId = -1;
16: private String mTestString = null;
17:
18: public void activateMetaData() {
19: addConstraint(new ConstrainedProperty("id").identifier(true)
20: .sparse(true));
21: }
22:
23: public void setId(int id) {
24: mId = id;
25: }
26:
27: public int getId() {
28: return mId;
29: }
30:
31: public void setTestString(String testString) {
32: this .mTestString = testString;
33: }
34:
35: public String getTestString() {
36: return mTestString;
37: }
38: }
|