2 * This is a common dao with basic CRUD operations and is not limited to any
3 * persistent layer implementation
5 * Copyright (C) 2008 Imran M Yousuf (imyousuf@smartitengineering.com)
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 3 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 package com
.smartitengineering
.exim
.impl
;
21 import com
.smartitengineering
.exim
.AssociationConfig
;
24 * Default implementation of {@link AssociationConfig} for representing an
25 * association's configuraiton
29 public class AssociationConfigImpl
implements AssociationConfig
{
30 private AssociationType associationType
;
31 private boolean itToBeExportedAsUri
;
32 private boolean transientAssociation
;
33 private boolean eagerSet
;
34 private boolean stringProviderImplemented
;
37 public void setAssociationType(AssociationType associationType
) {
38 this.associationType
= associationType
;
41 public void setEagerSet(boolean eagerSet
) {
42 this.eagerSet
= eagerSet
;
45 public void setItToBeExportedAsUri(boolean itToBeExportedAsUri
) {
46 this.itToBeExportedAsUri
= itToBeExportedAsUri
;
49 public void setName(String name
) {
53 public void setStringProviderImplemented(boolean stringProviderImplemented
) {
54 this.stringProviderImplemented
= stringProviderImplemented
;
57 public void setTransient(boolean transientAssociation
) {
58 this.transientAssociation
= transientAssociation
;
61 public boolean isItToBeExportedAsUri() {
62 return itToBeExportedAsUri
;
65 public boolean isTransient() {
66 return transientAssociation
;
69 public AssociationType
getAssociationType() {
70 return associationType
;
73 public String
getName() {
77 public boolean isEagerSet() {
81 public boolean isStringProviderImplemented() {
82 return isStringProviderImplemented();