0001: /**
0002: * <copyright>
0003: * </copyright>
0004: *
0005: * $Id$
0006: */package com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl;
0007:
0008: import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.DestinationStyleType;
0009: import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.JMSConfig;
0010: import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.JMSProvider;
0011: import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.ReadStyleType;
0012: import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.componentflowPackage;
0013:
0014: import org.eclipse.emf.common.notify.Notification;
0015: import org.eclipse.emf.common.notify.NotificationChain;
0016:
0017: import org.eclipse.emf.ecore.EClass;
0018: import org.eclipse.emf.ecore.InternalEObject;
0019:
0020: import org.eclipse.emf.ecore.impl.ENotificationImpl;
0021:
0022: /**
0023: * <!-- begin-user-doc -->
0024: * An implementation of the model object '<em><b>JMS Provider</b></em>'.
0025: * <!-- end-user-doc -->
0026: * <p>
0027: * The following features are implemented:
0028: * <ul>
0029: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSProviderImpl#getJndiInitialContextFactory <em>Jndi Initial Context Factory</em>}</li>
0030: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSProviderImpl#getJndiProviderUrl <em>Jndi Provider Url</em>}</li>
0031: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSProviderImpl#getDestinationStyle <em>Destination Style</em>}</li>
0032: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSProviderImpl#getTargetDestinationName <em>Target Destination Name</em>}</li>
0033: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSProviderImpl#getReadStyle <em>Read Style</em>}</li>
0034: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSProviderImpl#getRecordsPerMessage <em>Records Per Message</em>}</li>
0035: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSProviderImpl#getReplyDestinationName <em>Reply Destination Name</em>}</li>
0036: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSProviderImpl#getWriteStyle <em>Write Style</em>}</li>
0037: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSProviderImpl#getJndiConnectionFactoryName <em>Jndi Connection Factory Name</em>}</li>
0038: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSProviderImpl#getReplyTimeout <em>Reply Timeout</em>}</li>
0039: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSProviderImpl#getServiceName <em>Service Name</em>}</li>
0040: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSProviderImpl#isEnableQuery <em>Enable Query</em>}</li>
0041: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSProviderImpl#getQueryExpression <em>Query Expression</em>}</li>
0042: * <li>{@link com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.impl.JMSProviderImpl#isSaveMetaData <em>Save Meta Data</em>}</li>
0043: * </ul>
0044: * </p>
0045: *
0046: * @generated
0047: */
0048: public class JMSProviderImpl extends ProviderImpl implements
0049: JMSProvider {
0050: /**
0051: * <!-- begin-user-doc -->
0052: * <!-- end-user-doc -->
0053: * @generated
0054: */
0055: public static final String copyright = "Copyright, Bostech Corp.";
0056:
0057: /**
0058: * The default value of the '{@link #getJndiInitialContextFactory() <em>Jndi Initial Context Factory</em>}' attribute.
0059: * <!-- begin-user-doc -->
0060: * <!-- end-user-doc -->
0061: * @see #getJndiInitialContextFactory()
0062: * @generated
0063: * @ordered
0064: */
0065: protected static final String JNDI_INITIAL_CONTEXT_FACTORY_EDEFAULT = "com.sun.jndi.fscontext.RefFSContextFactory";
0066:
0067: /**
0068: * The cached value of the '{@link #getJndiInitialContextFactory() <em>Jndi Initial Context Factory</em>}' attribute.
0069: * <!-- begin-user-doc -->
0070: * <!-- end-user-doc -->
0071: * @see #getJndiInitialContextFactory()
0072: * @generated
0073: * @ordered
0074: */
0075: protected String jndiInitialContextFactory = JNDI_INITIAL_CONTEXT_FACTORY_EDEFAULT;
0076:
0077: /**
0078: * The default value of the '{@link #getJndiProviderUrl() <em>Jndi Provider Url</em>}' attribute.
0079: * <!-- begin-user-doc -->
0080: * <!-- end-user-doc -->
0081: * @see #getJndiProviderUrl()
0082: * @generated
0083: * @ordered
0084: */
0085: protected static final String JNDI_PROVIDER_URL_EDEFAULT = "file:/C:/CBESB/jndiDir";
0086:
0087: /**
0088: * The cached value of the '{@link #getJndiProviderUrl() <em>Jndi Provider Url</em>}' attribute.
0089: * <!-- begin-user-doc -->
0090: * <!-- end-user-doc -->
0091: * @see #getJndiProviderUrl()
0092: * @generated
0093: * @ordered
0094: */
0095: protected String jndiProviderUrl = JNDI_PROVIDER_URL_EDEFAULT;
0096:
0097: /**
0098: * The default value of the '{@link #getDestinationStyle() <em>Destination Style</em>}' attribute.
0099: * <!-- begin-user-doc -->
0100: * <!-- end-user-doc -->
0101: * @see #getDestinationStyle()
0102: * @generated
0103: * @ordered
0104: */
0105: protected static final DestinationStyleType DESTINATION_STYLE_EDEFAULT = DestinationStyleType.QUEUE_LITERAL;
0106:
0107: /**
0108: * The cached value of the '{@link #getDestinationStyle() <em>Destination Style</em>}' attribute.
0109: * <!-- begin-user-doc -->
0110: * <!-- end-user-doc -->
0111: * @see #getDestinationStyle()
0112: * @generated
0113: * @ordered
0114: */
0115: protected DestinationStyleType destinationStyle = DESTINATION_STYLE_EDEFAULT;
0116:
0117: /**
0118: * The default value of the '{@link #getTargetDestinationName() <em>Target Destination Name</em>}' attribute.
0119: * <!-- begin-user-doc -->
0120: * <!-- end-user-doc -->
0121: * @see #getTargetDestinationName()
0122: * @generated
0123: * @ordered
0124: */
0125: protected static final String TARGET_DESTINATION_NAME_EDEFAULT = null;
0126:
0127: /**
0128: * The cached value of the '{@link #getTargetDestinationName() <em>Target Destination Name</em>}' attribute.
0129: * <!-- begin-user-doc -->
0130: * <!-- end-user-doc -->
0131: * @see #getTargetDestinationName()
0132: * @generated
0133: * @ordered
0134: */
0135: protected String targetDestinationName = TARGET_DESTINATION_NAME_EDEFAULT;
0136:
0137: /**
0138: * The default value of the '{@link #getReadStyle() <em>Read Style</em>}' attribute.
0139: * <!-- begin-user-doc -->
0140: * <!-- end-user-doc -->
0141: * @see #getReadStyle()
0142: * @generated
0143: * @ordered
0144: */
0145: protected static final ReadStyleType READ_STYLE_EDEFAULT = ReadStyleType.RAW_LITERAL;
0146:
0147: /**
0148: * The cached value of the '{@link #getReadStyle() <em>Read Style</em>}' attribute.
0149: * <!-- begin-user-doc -->
0150: * <!-- end-user-doc -->
0151: * @see #getReadStyle()
0152: * @generated
0153: * @ordered
0154: */
0155: protected ReadStyleType readStyle = READ_STYLE_EDEFAULT;
0156:
0157: /**
0158: * The default value of the '{@link #getRecordsPerMessage() <em>Records Per Message</em>}' attribute.
0159: * <!-- begin-user-doc -->
0160: * <!-- end-user-doc -->
0161: * @see #getRecordsPerMessage()
0162: * @generated
0163: * @ordered
0164: */
0165: protected static final String RECORDS_PER_MESSAGE_EDEFAULT = "0";
0166:
0167: /**
0168: * The cached value of the '{@link #getRecordsPerMessage() <em>Records Per Message</em>}' attribute.
0169: * <!-- begin-user-doc -->
0170: * <!-- end-user-doc -->
0171: * @see #getRecordsPerMessage()
0172: * @generated
0173: * @ordered
0174: */
0175: protected String recordsPerMessage = RECORDS_PER_MESSAGE_EDEFAULT;
0176:
0177: /**
0178: * The default value of the '{@link #getReplyDestinationName() <em>Reply Destination Name</em>}' attribute.
0179: * <!-- begin-user-doc -->
0180: * <!-- end-user-doc -->
0181: * @see #getReplyDestinationName()
0182: * @generated
0183: * @ordered
0184: */
0185: protected static final String REPLY_DESTINATION_NAME_EDEFAULT = null;
0186:
0187: /**
0188: * The cached value of the '{@link #getReplyDestinationName() <em>Reply Destination Name</em>}' attribute.
0189: * <!-- begin-user-doc -->
0190: * <!-- end-user-doc -->
0191: * @see #getReplyDestinationName()
0192: * @generated
0193: * @ordered
0194: */
0195: protected String replyDestinationName = REPLY_DESTINATION_NAME_EDEFAULT;
0196:
0197: /**
0198: * The default value of the '{@link #getWriteStyle() <em>Write Style</em>}' attribute.
0199: * <!-- begin-user-doc -->
0200: * <!-- end-user-doc -->
0201: * @see #getWriteStyle()
0202: * @generated
0203: * @ordered
0204: */
0205: protected static final ReadStyleType WRITE_STYLE_EDEFAULT = ReadStyleType.RAW_LITERAL;
0206:
0207: /**
0208: * The cached value of the '{@link #getWriteStyle() <em>Write Style</em>}' attribute.
0209: * <!-- begin-user-doc -->
0210: * <!-- end-user-doc -->
0211: * @see #getWriteStyle()
0212: * @generated
0213: * @ordered
0214: */
0215: protected ReadStyleType writeStyle = WRITE_STYLE_EDEFAULT;
0216:
0217: /**
0218: * The default value of the '{@link #getJndiConnectionFactoryName() <em>Jndi Connection Factory Name</em>}' attribute.
0219: * <!-- begin-user-doc -->
0220: * <!-- end-user-doc -->
0221: * @see #getJndiConnectionFactoryName()
0222: * @generated
0223: * @ordered
0224: */
0225: protected static final String JNDI_CONNECTION_FACTORY_NAME_EDEFAULT = null;
0226:
0227: /**
0228: * The cached value of the '{@link #getJndiConnectionFactoryName() <em>Jndi Connection Factory Name</em>}' attribute.
0229: * <!-- begin-user-doc -->
0230: * <!-- end-user-doc -->
0231: * @see #getJndiConnectionFactoryName()
0232: * @generated
0233: * @ordered
0234: */
0235: protected String jndiConnectionFactoryName = JNDI_CONNECTION_FACTORY_NAME_EDEFAULT;
0236:
0237: /**
0238: * The default value of the '{@link #getReplyTimeout() <em>Reply Timeout</em>}' attribute.
0239: * <!-- begin-user-doc -->
0240: * <!-- end-user-doc -->
0241: * @see #getReplyTimeout()
0242: * @generated
0243: * @ordered
0244: */
0245: protected static final String REPLY_TIMEOUT_EDEFAULT = "0";
0246:
0247: /**
0248: * The cached value of the '{@link #getReplyTimeout() <em>Reply Timeout</em>}' attribute.
0249: * <!-- begin-user-doc -->
0250: * <!-- end-user-doc -->
0251: * @see #getReplyTimeout()
0252: * @generated
0253: * @ordered
0254: */
0255: protected String replyTimeout = REPLY_TIMEOUT_EDEFAULT;
0256:
0257: /**
0258: * The default value of the '{@link #getServiceName() <em>Service Name</em>}' attribute.
0259: * <!-- begin-user-doc -->
0260: * <!-- end-user-doc -->
0261: * @see #getServiceName()
0262: * @generated
0263: * @ordered
0264: */
0265: protected static final String SERVICE_NAME_EDEFAULT = null;
0266:
0267: /**
0268: * The cached value of the '{@link #getServiceName() <em>Service Name</em>}' attribute.
0269: * <!-- begin-user-doc -->
0270: * <!-- end-user-doc -->
0271: * @see #getServiceName()
0272: * @generated
0273: * @ordered
0274: */
0275: protected String serviceName = SERVICE_NAME_EDEFAULT;
0276:
0277: /**
0278: * The default value of the '{@link #isEnableQuery() <em>Enable Query</em>}' attribute.
0279: * <!-- begin-user-doc -->
0280: * <!-- end-user-doc -->
0281: * @see #isEnableQuery()
0282: * @generated
0283: * @ordered
0284: */
0285: protected static final boolean ENABLE_QUERY_EDEFAULT = false;
0286:
0287: /**
0288: * The cached value of the '{@link #isEnableQuery() <em>Enable Query</em>}' attribute.
0289: * <!-- begin-user-doc -->
0290: * <!-- end-user-doc -->
0291: * @see #isEnableQuery()
0292: * @generated
0293: * @ordered
0294: */
0295: protected boolean enableQuery = ENABLE_QUERY_EDEFAULT;
0296:
0297: /**
0298: * The default value of the '{@link #getQueryExpression() <em>Query Expression</em>}' attribute.
0299: * <!-- begin-user-doc -->
0300: * <!-- end-user-doc -->
0301: * @see #getQueryExpression()
0302: * @generated
0303: * @ordered
0304: */
0305: protected static final String QUERY_EXPRESSION_EDEFAULT = "";
0306:
0307: /**
0308: * The cached value of the '{@link #getQueryExpression() <em>Query Expression</em>}' attribute.
0309: * <!-- begin-user-doc -->
0310: * <!-- end-user-doc -->
0311: * @see #getQueryExpression()
0312: * @generated
0313: * @ordered
0314: */
0315: protected String queryExpression = QUERY_EXPRESSION_EDEFAULT;
0316:
0317: /**
0318: * The default value of the '{@link #isSaveMetaData() <em>Save Meta Data</em>}' attribute.
0319: * <!-- begin-user-doc -->
0320: * <!-- end-user-doc -->
0321: * @see #isSaveMetaData()
0322: * @generated
0323: * @ordered
0324: */
0325: protected static final boolean SAVE_META_DATA_EDEFAULT = false;
0326:
0327: /**
0328: * The cached value of the '{@link #isSaveMetaData() <em>Save Meta Data</em>}' attribute.
0329: * <!-- begin-user-doc -->
0330: * <!-- end-user-doc -->
0331: * @see #isSaveMetaData()
0332: * @generated
0333: * @ordered
0334: */
0335: protected boolean saveMetaData = SAVE_META_DATA_EDEFAULT;
0336:
0337: /**
0338: * <!-- begin-user-doc -->
0339: * <!-- end-user-doc -->
0340: * @generated
0341: */
0342: protected JMSProviderImpl() {
0343: super ();
0344: }
0345:
0346: /**
0347: * <!-- begin-user-doc -->
0348: * <!-- end-user-doc -->
0349: * @generated
0350: */
0351: protected EClass eStaticClass() {
0352: return componentflowPackage.Literals.JMS_PROVIDER;
0353: }
0354:
0355: /**
0356: * <!-- begin-user-doc -->
0357: * <!-- end-user-doc -->
0358: * @generated
0359: */
0360: public String getJndiInitialContextFactory() {
0361: return jndiInitialContextFactory;
0362: }
0363:
0364: /**
0365: * <!-- begin-user-doc -->
0366: * <!-- end-user-doc -->
0367: * @generated
0368: */
0369: public void setJndiInitialContextFactory(
0370: String newJndiInitialContextFactory) {
0371: String oldJndiInitialContextFactory = jndiInitialContextFactory;
0372: jndiInitialContextFactory = newJndiInitialContextFactory;
0373: if (eNotificationRequired())
0374: eNotify(new ENotificationImpl(
0375: this ,
0376: Notification.SET,
0377: componentflowPackage.JMS_PROVIDER__JNDI_INITIAL_CONTEXT_FACTORY,
0378: oldJndiInitialContextFactory,
0379: jndiInitialContextFactory));
0380: }
0381:
0382: /**
0383: * <!-- begin-user-doc -->
0384: * <!-- end-user-doc -->
0385: * @generated
0386: */
0387: public String getJndiProviderUrl() {
0388: return jndiProviderUrl;
0389: }
0390:
0391: /**
0392: * <!-- begin-user-doc -->
0393: * <!-- end-user-doc -->
0394: * @generated
0395: */
0396: public void setJndiProviderUrl(String newJndiProviderUrl) {
0397: String oldJndiProviderUrl = jndiProviderUrl;
0398: jndiProviderUrl = newJndiProviderUrl;
0399: if (eNotificationRequired())
0400: eNotify(new ENotificationImpl(
0401: this ,
0402: Notification.SET,
0403: componentflowPackage.JMS_PROVIDER__JNDI_PROVIDER_URL,
0404: oldJndiProviderUrl, jndiProviderUrl));
0405: }
0406:
0407: /**
0408: * <!-- begin-user-doc -->
0409: * <!-- end-user-doc -->
0410: * @generated
0411: */
0412: public DestinationStyleType getDestinationStyle() {
0413: return destinationStyle;
0414: }
0415:
0416: /**
0417: * <!-- begin-user-doc -->
0418: * <!-- end-user-doc -->
0419: * @generated
0420: */
0421: public void setDestinationStyle(
0422: DestinationStyleType newDestinationStyle) {
0423: DestinationStyleType oldDestinationStyle = destinationStyle;
0424: destinationStyle = newDestinationStyle == null ? DESTINATION_STYLE_EDEFAULT
0425: : newDestinationStyle;
0426: if (eNotificationRequired())
0427: eNotify(new ENotificationImpl(
0428: this ,
0429: Notification.SET,
0430: componentflowPackage.JMS_PROVIDER__DESTINATION_STYLE,
0431: oldDestinationStyle, destinationStyle));
0432: }
0433:
0434: /**
0435: * <!-- begin-user-doc -->
0436: * <!-- end-user-doc -->
0437: * @generated
0438: */
0439: public String getTargetDestinationName() {
0440: return targetDestinationName;
0441: }
0442:
0443: /**
0444: * <!-- begin-user-doc -->
0445: * <!-- end-user-doc -->
0446: * @generated
0447: */
0448: public void setTargetDestinationName(String newTargetDestinationName) {
0449: String oldTargetDestinationName = targetDestinationName;
0450: targetDestinationName = newTargetDestinationName;
0451: if (eNotificationRequired())
0452: eNotify(new ENotificationImpl(
0453: this ,
0454: Notification.SET,
0455: componentflowPackage.JMS_PROVIDER__TARGET_DESTINATION_NAME,
0456: oldTargetDestinationName, targetDestinationName));
0457: }
0458:
0459: /**
0460: * <!-- begin-user-doc -->
0461: * <!-- end-user-doc -->
0462: * @generated
0463: */
0464: public ReadStyleType getReadStyle() {
0465: return readStyle;
0466: }
0467:
0468: /**
0469: * <!-- begin-user-doc -->
0470: * <!-- end-user-doc -->
0471: * @generated
0472: */
0473: public void setReadStyle(ReadStyleType newReadStyle) {
0474: ReadStyleType oldReadStyle = readStyle;
0475: readStyle = newReadStyle == null ? READ_STYLE_EDEFAULT
0476: : newReadStyle;
0477: if (eNotificationRequired())
0478: eNotify(new ENotificationImpl(this , Notification.SET,
0479: componentflowPackage.JMS_PROVIDER__READ_STYLE,
0480: oldReadStyle, readStyle));
0481: }
0482:
0483: /**
0484: * <!-- begin-user-doc -->
0485: * <!-- end-user-doc -->
0486: * @generated
0487: */
0488: public String getRecordsPerMessage() {
0489: return recordsPerMessage;
0490: }
0491:
0492: /**
0493: * <!-- begin-user-doc -->
0494: * <!-- end-user-doc -->
0495: * @generated
0496: */
0497: public void setRecordsPerMessage(String newRecordsPerMessage) {
0498: String oldRecordsPerMessage = recordsPerMessage;
0499: recordsPerMessage = newRecordsPerMessage;
0500: if (eNotificationRequired())
0501: eNotify(new ENotificationImpl(
0502: this ,
0503: Notification.SET,
0504: componentflowPackage.JMS_PROVIDER__RECORDS_PER_MESSAGE,
0505: oldRecordsPerMessage, recordsPerMessage));
0506: }
0507:
0508: /**
0509: * <!-- begin-user-doc -->
0510: * <!-- end-user-doc -->
0511: * @generated
0512: */
0513: public String getReplyDestinationName() {
0514: return replyDestinationName;
0515: }
0516:
0517: /**
0518: * <!-- begin-user-doc -->
0519: * <!-- end-user-doc -->
0520: * @generated
0521: */
0522: public void setReplyDestinationName(String newReplyDestinationName) {
0523: String oldReplyDestinationName = replyDestinationName;
0524: replyDestinationName = newReplyDestinationName;
0525: if (eNotificationRequired())
0526: eNotify(new ENotificationImpl(
0527: this ,
0528: Notification.SET,
0529: componentflowPackage.JMS_PROVIDER__REPLY_DESTINATION_NAME,
0530: oldReplyDestinationName, replyDestinationName));
0531: }
0532:
0533: /**
0534: * <!-- begin-user-doc -->
0535: * <!-- end-user-doc -->
0536: * @generated
0537: */
0538: public ReadStyleType getWriteStyle() {
0539: return writeStyle;
0540: }
0541:
0542: /**
0543: * <!-- begin-user-doc -->
0544: * <!-- end-user-doc -->
0545: * @generated
0546: */
0547: public void setWriteStyle(ReadStyleType newWriteStyle) {
0548: ReadStyleType oldWriteStyle = writeStyle;
0549: writeStyle = newWriteStyle == null ? WRITE_STYLE_EDEFAULT
0550: : newWriteStyle;
0551: if (eNotificationRequired())
0552: eNotify(new ENotificationImpl(this , Notification.SET,
0553: componentflowPackage.JMS_PROVIDER__WRITE_STYLE,
0554: oldWriteStyle, writeStyle));
0555: }
0556:
0557: /**
0558: * <!-- begin-user-doc -->
0559: * <!-- end-user-doc -->
0560: * @generated
0561: */
0562: public String getJndiConnectionFactoryName() {
0563: return jndiConnectionFactoryName;
0564: }
0565:
0566: /**
0567: * <!-- begin-user-doc -->
0568: * <!-- end-user-doc -->
0569: * @generated
0570: */
0571: public void setJndiConnectionFactoryName(
0572: String newJndiConnectionFactoryName) {
0573: String oldJndiConnectionFactoryName = jndiConnectionFactoryName;
0574: jndiConnectionFactoryName = newJndiConnectionFactoryName;
0575: if (eNotificationRequired())
0576: eNotify(new ENotificationImpl(
0577: this ,
0578: Notification.SET,
0579: componentflowPackage.JMS_PROVIDER__JNDI_CONNECTION_FACTORY_NAME,
0580: oldJndiConnectionFactoryName,
0581: jndiConnectionFactoryName));
0582: }
0583:
0584: /**
0585: * <!-- begin-user-doc -->
0586: * <!-- end-user-doc -->
0587: * @generated
0588: */
0589: public String getReplyTimeout() {
0590: return replyTimeout;
0591: }
0592:
0593: /**
0594: * <!-- begin-user-doc -->
0595: * <!-- end-user-doc -->
0596: * @generated
0597: */
0598: public void setReplyTimeout(String newReplyTimeout) {
0599: String oldReplyTimeout = replyTimeout;
0600: replyTimeout = newReplyTimeout;
0601: if (eNotificationRequired())
0602: eNotify(new ENotificationImpl(this , Notification.SET,
0603: componentflowPackage.JMS_PROVIDER__REPLY_TIMEOUT,
0604: oldReplyTimeout, replyTimeout));
0605: }
0606:
0607: /**
0608: * <!-- begin-user-doc -->
0609: * <!-- end-user-doc -->
0610: * @generated
0611: */
0612: public String getServiceName() {
0613: return serviceName;
0614: }
0615:
0616: /**
0617: * <!-- begin-user-doc -->
0618: * <!-- end-user-doc -->
0619: * @generated
0620: */
0621: public void setServiceName(String newServiceName) {
0622: String oldServiceName = serviceName;
0623: serviceName = newServiceName;
0624: if (eNotificationRequired())
0625: eNotify(new ENotificationImpl(this , Notification.SET,
0626: componentflowPackage.JMS_PROVIDER__SERVICE_NAME,
0627: oldServiceName, serviceName));
0628: }
0629:
0630: /**
0631: * <!-- begin-user-doc -->
0632: * <!-- end-user-doc -->
0633: * @generated
0634: */
0635: public boolean isEnableQuery() {
0636: return enableQuery;
0637: }
0638:
0639: /**
0640: * <!-- begin-user-doc -->
0641: * <!-- end-user-doc -->
0642: * @generated
0643: */
0644: public void setEnableQuery(boolean newEnableQuery) {
0645: boolean oldEnableQuery = enableQuery;
0646: enableQuery = newEnableQuery;
0647: if (eNotificationRequired())
0648: eNotify(new ENotificationImpl(this , Notification.SET,
0649: componentflowPackage.JMS_PROVIDER__ENABLE_QUERY,
0650: oldEnableQuery, enableQuery));
0651: }
0652:
0653: /**
0654: * <!-- begin-user-doc -->
0655: * <!-- end-user-doc -->
0656: * @generated
0657: */
0658: public String getQueryExpression() {
0659: return queryExpression;
0660: }
0661:
0662: /**
0663: * <!-- begin-user-doc -->
0664: * <!-- end-user-doc -->
0665: * @generated
0666: */
0667: public void setQueryExpression(String newQueryExpression) {
0668: String oldQueryExpression = queryExpression;
0669: queryExpression = newQueryExpression;
0670: if (eNotificationRequired())
0671: eNotify(new ENotificationImpl(
0672: this ,
0673: Notification.SET,
0674: componentflowPackage.JMS_PROVIDER__QUERY_EXPRESSION,
0675: oldQueryExpression, queryExpression));
0676: }
0677:
0678: /**
0679: * <!-- begin-user-doc -->
0680: * <!-- end-user-doc -->
0681: * @generated
0682: */
0683: public boolean isSaveMetaData() {
0684: return saveMetaData;
0685: }
0686:
0687: /**
0688: * <!-- begin-user-doc -->
0689: * <!-- end-user-doc -->
0690: * @generated
0691: */
0692: public void setSaveMetaData(boolean newSaveMetaData) {
0693: boolean oldSaveMetaData = saveMetaData;
0694: saveMetaData = newSaveMetaData;
0695: if (eNotificationRequired())
0696: eNotify(new ENotificationImpl(this , Notification.SET,
0697: componentflowPackage.JMS_PROVIDER__SAVE_META_DATA,
0698: oldSaveMetaData, saveMetaData));
0699: }
0700:
0701: /**
0702: * <!-- begin-user-doc -->
0703: * <!-- end-user-doc -->
0704: * @generated
0705: */
0706: public Object eGet(int featureID, boolean resolve, boolean coreType) {
0707: switch (featureID) {
0708: case componentflowPackage.JMS_PROVIDER__JNDI_INITIAL_CONTEXT_FACTORY:
0709: return getJndiInitialContextFactory();
0710: case componentflowPackage.JMS_PROVIDER__JNDI_PROVIDER_URL:
0711: return getJndiProviderUrl();
0712: case componentflowPackage.JMS_PROVIDER__DESTINATION_STYLE:
0713: return getDestinationStyle();
0714: case componentflowPackage.JMS_PROVIDER__TARGET_DESTINATION_NAME:
0715: return getTargetDestinationName();
0716: case componentflowPackage.JMS_PROVIDER__READ_STYLE:
0717: return getReadStyle();
0718: case componentflowPackage.JMS_PROVIDER__RECORDS_PER_MESSAGE:
0719: return getRecordsPerMessage();
0720: case componentflowPackage.JMS_PROVIDER__REPLY_DESTINATION_NAME:
0721: return getReplyDestinationName();
0722: case componentflowPackage.JMS_PROVIDER__WRITE_STYLE:
0723: return getWriteStyle();
0724: case componentflowPackage.JMS_PROVIDER__JNDI_CONNECTION_FACTORY_NAME:
0725: return getJndiConnectionFactoryName();
0726: case componentflowPackage.JMS_PROVIDER__REPLY_TIMEOUT:
0727: return getReplyTimeout();
0728: case componentflowPackage.JMS_PROVIDER__SERVICE_NAME:
0729: return getServiceName();
0730: case componentflowPackage.JMS_PROVIDER__ENABLE_QUERY:
0731: return isEnableQuery() ? Boolean.TRUE : Boolean.FALSE;
0732: case componentflowPackage.JMS_PROVIDER__QUERY_EXPRESSION:
0733: return getQueryExpression();
0734: case componentflowPackage.JMS_PROVIDER__SAVE_META_DATA:
0735: return isSaveMetaData() ? Boolean.TRUE : Boolean.FALSE;
0736: }
0737: return super .eGet(featureID, resolve, coreType);
0738: }
0739:
0740: /**
0741: * <!-- begin-user-doc -->
0742: * <!-- end-user-doc -->
0743: * @generated
0744: */
0745: public void eSet(int featureID, Object newValue) {
0746: switch (featureID) {
0747: case componentflowPackage.JMS_PROVIDER__JNDI_INITIAL_CONTEXT_FACTORY:
0748: setJndiInitialContextFactory((String) newValue);
0749: return;
0750: case componentflowPackage.JMS_PROVIDER__JNDI_PROVIDER_URL:
0751: setJndiProviderUrl((String) newValue);
0752: return;
0753: case componentflowPackage.JMS_PROVIDER__DESTINATION_STYLE:
0754: setDestinationStyle((DestinationStyleType) newValue);
0755: return;
0756: case componentflowPackage.JMS_PROVIDER__TARGET_DESTINATION_NAME:
0757: setTargetDestinationName((String) newValue);
0758: return;
0759: case componentflowPackage.JMS_PROVIDER__READ_STYLE:
0760: setReadStyle((ReadStyleType) newValue);
0761: return;
0762: case componentflowPackage.JMS_PROVIDER__RECORDS_PER_MESSAGE:
0763: setRecordsPerMessage((String) newValue);
0764: return;
0765: case componentflowPackage.JMS_PROVIDER__REPLY_DESTINATION_NAME:
0766: setReplyDestinationName((String) newValue);
0767: return;
0768: case componentflowPackage.JMS_PROVIDER__WRITE_STYLE:
0769: setWriteStyle((ReadStyleType) newValue);
0770: return;
0771: case componentflowPackage.JMS_PROVIDER__JNDI_CONNECTION_FACTORY_NAME:
0772: setJndiConnectionFactoryName((String) newValue);
0773: return;
0774: case componentflowPackage.JMS_PROVIDER__REPLY_TIMEOUT:
0775: setReplyTimeout((String) newValue);
0776: return;
0777: case componentflowPackage.JMS_PROVIDER__SERVICE_NAME:
0778: setServiceName((String) newValue);
0779: return;
0780: case componentflowPackage.JMS_PROVIDER__ENABLE_QUERY:
0781: setEnableQuery(((Boolean) newValue).booleanValue());
0782: return;
0783: case componentflowPackage.JMS_PROVIDER__QUERY_EXPRESSION:
0784: setQueryExpression((String) newValue);
0785: return;
0786: case componentflowPackage.JMS_PROVIDER__SAVE_META_DATA:
0787: setSaveMetaData(((Boolean) newValue).booleanValue());
0788: return;
0789: }
0790: super .eSet(featureID, newValue);
0791: }
0792:
0793: /**
0794: * <!-- begin-user-doc -->
0795: * <!-- end-user-doc -->
0796: * @generated
0797: */
0798: public void eUnset(int featureID) {
0799: switch (featureID) {
0800: case componentflowPackage.JMS_PROVIDER__JNDI_INITIAL_CONTEXT_FACTORY:
0801: setJndiInitialContextFactory(JNDI_INITIAL_CONTEXT_FACTORY_EDEFAULT);
0802: return;
0803: case componentflowPackage.JMS_PROVIDER__JNDI_PROVIDER_URL:
0804: setJndiProviderUrl(JNDI_PROVIDER_URL_EDEFAULT);
0805: return;
0806: case componentflowPackage.JMS_PROVIDER__DESTINATION_STYLE:
0807: setDestinationStyle(DESTINATION_STYLE_EDEFAULT);
0808: return;
0809: case componentflowPackage.JMS_PROVIDER__TARGET_DESTINATION_NAME:
0810: setTargetDestinationName(TARGET_DESTINATION_NAME_EDEFAULT);
0811: return;
0812: case componentflowPackage.JMS_PROVIDER__READ_STYLE:
0813: setReadStyle(READ_STYLE_EDEFAULT);
0814: return;
0815: case componentflowPackage.JMS_PROVIDER__RECORDS_PER_MESSAGE:
0816: setRecordsPerMessage(RECORDS_PER_MESSAGE_EDEFAULT);
0817: return;
0818: case componentflowPackage.JMS_PROVIDER__REPLY_DESTINATION_NAME:
0819: setReplyDestinationName(REPLY_DESTINATION_NAME_EDEFAULT);
0820: return;
0821: case componentflowPackage.JMS_PROVIDER__WRITE_STYLE:
0822: setWriteStyle(WRITE_STYLE_EDEFAULT);
0823: return;
0824: case componentflowPackage.JMS_PROVIDER__JNDI_CONNECTION_FACTORY_NAME:
0825: setJndiConnectionFactoryName(JNDI_CONNECTION_FACTORY_NAME_EDEFAULT);
0826: return;
0827: case componentflowPackage.JMS_PROVIDER__REPLY_TIMEOUT:
0828: setReplyTimeout(REPLY_TIMEOUT_EDEFAULT);
0829: return;
0830: case componentflowPackage.JMS_PROVIDER__SERVICE_NAME:
0831: setServiceName(SERVICE_NAME_EDEFAULT);
0832: return;
0833: case componentflowPackage.JMS_PROVIDER__ENABLE_QUERY:
0834: setEnableQuery(ENABLE_QUERY_EDEFAULT);
0835: return;
0836: case componentflowPackage.JMS_PROVIDER__QUERY_EXPRESSION:
0837: setQueryExpression(QUERY_EXPRESSION_EDEFAULT);
0838: return;
0839: case componentflowPackage.JMS_PROVIDER__SAVE_META_DATA:
0840: setSaveMetaData(SAVE_META_DATA_EDEFAULT);
0841: return;
0842: }
0843: super .eUnset(featureID);
0844: }
0845:
0846: /**
0847: * <!-- begin-user-doc -->
0848: * <!-- end-user-doc -->
0849: * @generated
0850: */
0851: public boolean eIsSet(int featureID) {
0852: switch (featureID) {
0853: case componentflowPackage.JMS_PROVIDER__JNDI_INITIAL_CONTEXT_FACTORY:
0854: return JNDI_INITIAL_CONTEXT_FACTORY_EDEFAULT == null ? jndiInitialContextFactory != null
0855: : !JNDI_INITIAL_CONTEXT_FACTORY_EDEFAULT
0856: .equals(jndiInitialContextFactory);
0857: case componentflowPackage.JMS_PROVIDER__JNDI_PROVIDER_URL:
0858: return JNDI_PROVIDER_URL_EDEFAULT == null ? jndiProviderUrl != null
0859: : !JNDI_PROVIDER_URL_EDEFAULT
0860: .equals(jndiProviderUrl);
0861: case componentflowPackage.JMS_PROVIDER__DESTINATION_STYLE:
0862: return destinationStyle != DESTINATION_STYLE_EDEFAULT;
0863: case componentflowPackage.JMS_PROVIDER__TARGET_DESTINATION_NAME:
0864: return TARGET_DESTINATION_NAME_EDEFAULT == null ? targetDestinationName != null
0865: : !TARGET_DESTINATION_NAME_EDEFAULT
0866: .equals(targetDestinationName);
0867: case componentflowPackage.JMS_PROVIDER__READ_STYLE:
0868: return readStyle != READ_STYLE_EDEFAULT;
0869: case componentflowPackage.JMS_PROVIDER__RECORDS_PER_MESSAGE:
0870: return RECORDS_PER_MESSAGE_EDEFAULT == null ? recordsPerMessage != null
0871: : !RECORDS_PER_MESSAGE_EDEFAULT
0872: .equals(recordsPerMessage);
0873: case componentflowPackage.JMS_PROVIDER__REPLY_DESTINATION_NAME:
0874: return REPLY_DESTINATION_NAME_EDEFAULT == null ? replyDestinationName != null
0875: : !REPLY_DESTINATION_NAME_EDEFAULT
0876: .equals(replyDestinationName);
0877: case componentflowPackage.JMS_PROVIDER__WRITE_STYLE:
0878: return writeStyle != WRITE_STYLE_EDEFAULT;
0879: case componentflowPackage.JMS_PROVIDER__JNDI_CONNECTION_FACTORY_NAME:
0880: return JNDI_CONNECTION_FACTORY_NAME_EDEFAULT == null ? jndiConnectionFactoryName != null
0881: : !JNDI_CONNECTION_FACTORY_NAME_EDEFAULT
0882: .equals(jndiConnectionFactoryName);
0883: case componentflowPackage.JMS_PROVIDER__REPLY_TIMEOUT:
0884: return REPLY_TIMEOUT_EDEFAULT == null ? replyTimeout != null
0885: : !REPLY_TIMEOUT_EDEFAULT.equals(replyTimeout);
0886: case componentflowPackage.JMS_PROVIDER__SERVICE_NAME:
0887: return SERVICE_NAME_EDEFAULT == null ? serviceName != null
0888: : !SERVICE_NAME_EDEFAULT.equals(serviceName);
0889: case componentflowPackage.JMS_PROVIDER__ENABLE_QUERY:
0890: return enableQuery != ENABLE_QUERY_EDEFAULT;
0891: case componentflowPackage.JMS_PROVIDER__QUERY_EXPRESSION:
0892: return QUERY_EXPRESSION_EDEFAULT == null ? queryExpression != null
0893: : !QUERY_EXPRESSION_EDEFAULT
0894: .equals(queryExpression);
0895: case componentflowPackage.JMS_PROVIDER__SAVE_META_DATA:
0896: return saveMetaData != SAVE_META_DATA_EDEFAULT;
0897: }
0898: return super .eIsSet(featureID);
0899: }
0900:
0901: /**
0902: * <!-- begin-user-doc -->
0903: * <!-- end-user-doc -->
0904: * @generated
0905: */
0906: public int eBaseStructuralFeatureID(int derivedFeatureID,
0907: Class baseClass) {
0908: if (baseClass == JMSConfig.class) {
0909: switch (derivedFeatureID) {
0910: case componentflowPackage.JMS_PROVIDER__JNDI_INITIAL_CONTEXT_FACTORY:
0911: return componentflowPackage.JMS_CONFIG__JNDI_INITIAL_CONTEXT_FACTORY;
0912: case componentflowPackage.JMS_PROVIDER__JNDI_PROVIDER_URL:
0913: return componentflowPackage.JMS_CONFIG__JNDI_PROVIDER_URL;
0914: case componentflowPackage.JMS_PROVIDER__DESTINATION_STYLE:
0915: return componentflowPackage.JMS_CONFIG__DESTINATION_STYLE;
0916: case componentflowPackage.JMS_PROVIDER__TARGET_DESTINATION_NAME:
0917: return componentflowPackage.JMS_CONFIG__TARGET_DESTINATION_NAME;
0918: case componentflowPackage.JMS_PROVIDER__READ_STYLE:
0919: return componentflowPackage.JMS_CONFIG__READ_STYLE;
0920: case componentflowPackage.JMS_PROVIDER__RECORDS_PER_MESSAGE:
0921: return componentflowPackage.JMS_CONFIG__RECORDS_PER_MESSAGE;
0922: case componentflowPackage.JMS_PROVIDER__REPLY_DESTINATION_NAME:
0923: return componentflowPackage.JMS_CONFIG__REPLY_DESTINATION_NAME;
0924: case componentflowPackage.JMS_PROVIDER__WRITE_STYLE:
0925: return componentflowPackage.JMS_CONFIG__WRITE_STYLE;
0926: case componentflowPackage.JMS_PROVIDER__JNDI_CONNECTION_FACTORY_NAME:
0927: return componentflowPackage.JMS_CONFIG__JNDI_CONNECTION_FACTORY_NAME;
0928: case componentflowPackage.JMS_PROVIDER__REPLY_TIMEOUT:
0929: return componentflowPackage.JMS_CONFIG__REPLY_TIMEOUT;
0930: case componentflowPackage.JMS_PROVIDER__SERVICE_NAME:
0931: return componentflowPackage.JMS_CONFIG__SERVICE_NAME;
0932: case componentflowPackage.JMS_PROVIDER__ENABLE_QUERY:
0933: return componentflowPackage.JMS_CONFIG__ENABLE_QUERY;
0934: case componentflowPackage.JMS_PROVIDER__QUERY_EXPRESSION:
0935: return componentflowPackage.JMS_CONFIG__QUERY_EXPRESSION;
0936: default:
0937: return -1;
0938: }
0939: }
0940: return super .eBaseStructuralFeatureID(derivedFeatureID,
0941: baseClass);
0942: }
0943:
0944: /**
0945: * <!-- begin-user-doc -->
0946: * <!-- end-user-doc -->
0947: * @generated
0948: */
0949: public int eDerivedStructuralFeatureID(int baseFeatureID,
0950: Class baseClass) {
0951: if (baseClass == JMSConfig.class) {
0952: switch (baseFeatureID) {
0953: case componentflowPackage.JMS_CONFIG__JNDI_INITIAL_CONTEXT_FACTORY:
0954: return componentflowPackage.JMS_PROVIDER__JNDI_INITIAL_CONTEXT_FACTORY;
0955: case componentflowPackage.JMS_CONFIG__JNDI_PROVIDER_URL:
0956: return componentflowPackage.JMS_PROVIDER__JNDI_PROVIDER_URL;
0957: case componentflowPackage.JMS_CONFIG__DESTINATION_STYLE:
0958: return componentflowPackage.JMS_PROVIDER__DESTINATION_STYLE;
0959: case componentflowPackage.JMS_CONFIG__TARGET_DESTINATION_NAME:
0960: return componentflowPackage.JMS_PROVIDER__TARGET_DESTINATION_NAME;
0961: case componentflowPackage.JMS_CONFIG__READ_STYLE:
0962: return componentflowPackage.JMS_PROVIDER__READ_STYLE;
0963: case componentflowPackage.JMS_CONFIG__RECORDS_PER_MESSAGE:
0964: return componentflowPackage.JMS_PROVIDER__RECORDS_PER_MESSAGE;
0965: case componentflowPackage.JMS_CONFIG__REPLY_DESTINATION_NAME:
0966: return componentflowPackage.JMS_PROVIDER__REPLY_DESTINATION_NAME;
0967: case componentflowPackage.JMS_CONFIG__WRITE_STYLE:
0968: return componentflowPackage.JMS_PROVIDER__WRITE_STYLE;
0969: case componentflowPackage.JMS_CONFIG__JNDI_CONNECTION_FACTORY_NAME:
0970: return componentflowPackage.JMS_PROVIDER__JNDI_CONNECTION_FACTORY_NAME;
0971: case componentflowPackage.JMS_CONFIG__REPLY_TIMEOUT:
0972: return componentflowPackage.JMS_PROVIDER__REPLY_TIMEOUT;
0973: case componentflowPackage.JMS_CONFIG__SERVICE_NAME:
0974: return componentflowPackage.JMS_PROVIDER__SERVICE_NAME;
0975: case componentflowPackage.JMS_CONFIG__ENABLE_QUERY:
0976: return componentflowPackage.JMS_PROVIDER__ENABLE_QUERY;
0977: case componentflowPackage.JMS_CONFIG__QUERY_EXPRESSION:
0978: return componentflowPackage.JMS_PROVIDER__QUERY_EXPRESSION;
0979: default:
0980: return -1;
0981: }
0982: }
0983: return super .eDerivedStructuralFeatureID(baseFeatureID,
0984: baseClass);
0985: }
0986:
0987: /**
0988: * <!-- begin-user-doc -->
0989: * <!-- end-user-doc -->
0990: * @generated
0991: */
0992: public String toString() {
0993: if (eIsProxy())
0994: return super .toString();
0995:
0996: StringBuffer result = new StringBuffer(super .toString());
0997: result.append(" (jndiInitialContextFactory: ");
0998: result.append(jndiInitialContextFactory);
0999: result.append(", jndiProviderUrl: ");
1000: result.append(jndiProviderUrl);
1001: result.append(", destinationStyle: ");
1002: result.append(destinationStyle);
1003: result.append(", targetDestinationName: ");
1004: result.append(targetDestinationName);
1005: result.append(", readStyle: ");
1006: result.append(readStyle);
1007: result.append(", recordsPerMessage: ");
1008: result.append(recordsPerMessage);
1009: result.append(", replyDestinationName: ");
1010: result.append(replyDestinationName);
1011: result.append(", writeStyle: ");
1012: result.append(writeStyle);
1013: result.append(", jndiConnectionFactoryName: ");
1014: result.append(jndiConnectionFactoryName);
1015: result.append(", replyTimeout: ");
1016: result.append(replyTimeout);
1017: result.append(", serviceName: ");
1018: result.append(serviceName);
1019: result.append(", enableQuery: ");
1020: result.append(enableQuery);
1021: result.append(", queryExpression: ");
1022: result.append(queryExpression);
1023: result.append(", saveMetaData: ");
1024: result.append(saveMetaData);
1025: result.append(')');
1026: return result.toString();
1027: }
1028:
1029: } //JMSProviderImpl
|