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: ManyToManyDeclaration.java 3670 2007-02-26 23:31:23Z gbevin $
08: */
09: package com.uwyn.rife.database.querymanagers.generic;
10:
11: public class ManyToManyDeclaration {
12: private Class mAssociationType;
13: private Class mCollectionType;
14: private boolean mReversed;
15:
16: public void setAssociationType(Class type) {
17: mAssociationType = type;
18: }
19:
20: public ManyToManyDeclaration associationType(Class type) {
21: setAssociationType(type);
22:
23: return this ;
24: }
25:
26: public Class getAssociationType() {
27: return mAssociationType;
28: }
29:
30: public void setCollectionType(Class type) {
31: mCollectionType = type;
32: }
33:
34: public ManyToManyDeclaration collectionType(Class type) {
35: setCollectionType(type);
36:
37: return this ;
38: }
39:
40: public Class getCollectionType() {
41: return mCollectionType;
42: }
43:
44: public void setReversed(boolean reversed) {
45: mReversed = reversed;
46: }
47:
48: public ManyToManyDeclaration reversed(boolean reversed) {
49: setReversed(reversed);
50:
51: return this ;
52: }
53:
54: public boolean isReversed() {
55: return mReversed;
56: }
57: }
|