001: /*
002: * $Header: /export/home/cvsroot/MyPersonalizerRepository/MyPersonalizer/Subsystems/Kernel/Sources/es/udc/mypersonalizer/kernel/config/PersistenceTypeConfig.java,v 1.1.1.1 2004/03/25 12:08:38 fbellas Exp $
003: * $Revision: 1.1.1.1 $
004: * $Date: 2004/03/25 12:08:38 $
005: *
006: * =============================================================================
007: *
008: * Copyright (c) 2003, The MyPersonalizer Development Group
009: * (http://www.tic.udc.es/~fbellas/mypersonalizer/index.html) at
010: * University Of A Coruna
011: * All rights reserved.
012: *
013: * Redistribution and use in source and binary forms, with or without
014: * modification, are permitted provided that the following conditions are met:
015: *
016: * - Redistributions of source code must retain the above copyright notice,
017: * this list of conditions and the following disclaimer.
018: *
019: * - Redistributions in binary form must reproduce the above copyright notice,
020: * this list of conditions and the following disclaimer in the documentation
021: * and/or other materials provided with the distribution.
022: *
023: * - Neither the name of the University Of A Coruna nor the names of its
024: * contributors may be used to endorse or promote products derived from
025: * this software without specific prior written permission.
026: *
027: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
028: * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
029: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
030: * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
031: * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
032: * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
033: * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
034: * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
035: * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
036: * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
037: * POSSIBILITY OF SUCH DAMAGE.
038: *
039: */
040:
041: package es.udc.mypersonalizer.kernel.config;
042:
043: /**
044: * Configuration java bean for each persistence type.
045: *
046: * @author Abel Muinho
047: * @since 1.0
048: */
049: public class PersistenceTypeConfig {
050:
051: private String id = null;
052: private String storageStrategyClassName = null;
053: private String scriptGeneratorClassName = null;
054: private String persistenceAnnotatorClassName = null;
055: private String queryExecutorDelegateClassName = null;
056:
057: /**
058: * Obtains the name of the persistence method.
059: * @return the name of the persistence method.
060: */
061: public String getId() {
062: return id;
063: }
064:
065: /**
066: * Sets the name of the persistence method.
067: * @param string the name of the persistence method.
068: */
069: public void setId(String string) {
070: id = string;
071: }
072:
073: /**
074: * Obtains the name of the class implementing the storage strategy for this
075: * persistence method.
076: * @return the class name.
077: */
078: public String getStorageStrategyClassName() {
079: return storageStrategyClassName;
080: }
081:
082: /**
083: * Sets the name of the class implementing the storage strategy for this
084: * persistence method.
085: * @param string the class name.
086: */
087: public void setStorageStrategyClassName(String string) {
088: storageStrategyClassName = string;
089: }
090:
091: /**
092: * Obtains the name of the class implementing the script generator for this
093: * persistence method.
094: * @return the class name.
095: */
096: public String getScriptGeneratorClassName() {
097: return scriptGeneratorClassName;
098: }
099:
100: /**
101: * Obtains the name of the class implementing the script generator for this
102: * persistence method.
103: * @param string the class name.
104: */
105: public void setScriptGeneratorClassName(String string) {
106: scriptGeneratorClassName = string;
107: }
108:
109: /**
110: * Obtains the name of the class providing persistence annotations for
111: * MetaProperties using this persistence method.
112: * @return the class name.
113: */
114: public String getPersistenceAnnotatorClassName() {
115: return persistenceAnnotatorClassName;
116: }
117:
118: /**
119: * Sets the name of the class providing persistence annotations for
120: * MetaProperties using this persistence method.
121: * @param string the class name.
122: */
123: public void setPersistenceAnnotatorClassName(String string) {
124: persistenceAnnotatorClassName = string;
125: }
126:
127: /**
128: * Obtains the name of the class to which query execution should be
129: * delegated to perform a query on a property using this persistence
130: * method.
131: * @return the class name.
132: */
133: public String getQueryExecutorDelegateClassName() {
134: return queryExecutorDelegateClassName;
135: }
136:
137: /**
138: * Sets the name of the class to which query execution should be
139: * delegated to perform a query on a property using this persistence
140: * method.
141: * @param string the class name.
142: */
143: public void setQueryExecutorDelegateClassName(String string) {
144: queryExecutorDelegateClassName = string;
145: }
146:
147: }
|