KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Olj > impl > SqlTypeImpl


1 /**
2  * <copyright>
3  * </copyright>
4  *
5  * $Id$
6  */

7 package Olj.impl;
8
9 import Olj.CommitType;
10 import Olj.IncludeType;
11 import Olj.JdbcTargetParametersType;
12 import Olj.LogModeType;
13 import Olj.OljPackage;
14 import Olj.OnErrorContinueType;
15 import Olj.SqlStmtType;
16 import Olj.SqlType;
17
18 import org.eclipse.emf.common.notify.Notification;
19 import org.eclipse.emf.common.notify.NotificationChain;
20
21 import org.eclipse.emf.ecore.EClass;
22 import org.eclipse.emf.ecore.EStructuralFeature;
23 import org.eclipse.emf.ecore.InternalEObject;
24
25 import org.eclipse.emf.ecore.impl.ENotificationImpl;
26 import org.eclipse.emf.ecore.impl.EObjectImpl;
27
28 /**
29  * <!-- begin-user-doc -->
30  * An implementation of the model object '<em><b>Sql Type</b></em>'.
31  * <!-- end-user-doc -->
32  * <p>
33  * The following features are implemented:
34  * <ul>
35  * <li>{@link Olj.impl.SqlTypeImpl#getJdbcTargetParameters <em>Jdbc Target Parameters</em>}</li>
36  * <li>{@link Olj.impl.SqlTypeImpl#getInclude <em>Include</em>}</li>
37  * <li>{@link Olj.impl.SqlTypeImpl#getSqlStmt <em>Sql Stmt</em>}</li>
38  * <li>{@link Olj.impl.SqlTypeImpl#getCommit <em>Commit</em>}</li>
39  * <li>{@link Olj.impl.SqlTypeImpl#getLogMode <em>Log Mode</em>}</li>
40  * <li>{@link Olj.impl.SqlTypeImpl#getName <em>Name</em>}</li>
41  * <li>{@link Olj.impl.SqlTypeImpl#getOnErrorContinue <em>On Error Continue</em>}</li>
42  * <li>{@link Olj.impl.SqlTypeImpl#getReturnCode <em>Return Code</em>}</li>
43  * </ul>
44  * </p>
45  *
46  * @generated
47  */

48 public class SqlTypeImpl extends EObjectImpl implements SqlType {
49     /**
50      * The cached value of the '{@link #getJdbcTargetParameters() <em>Jdbc Target Parameters</em>}' containment reference.
51      * <!-- begin-user-doc -->
52      * <!-- end-user-doc -->
53      * @see #getJdbcTargetParameters()
54      * @generated
55      * @ordered
56      */

57     protected JdbcTargetParametersType jdbcTargetParameters = null;
58
59     /**
60      * The cached value of the '{@link #getInclude() <em>Include</em>}' containment reference.
61      * <!-- begin-user-doc -->
62      * <!-- end-user-doc -->
63      * @see #getInclude()
64      * @generated
65      * @ordered
66      */

67     protected IncludeType include = null;
68
69     /**
70      * The cached value of the '{@link #getSqlStmt() <em>Sql Stmt</em>}' containment reference.
71      * <!-- begin-user-doc -->
72      * <!-- end-user-doc -->
73      * @see #getSqlStmt()
74      * @generated
75      * @ordered
76      */

77     protected SqlStmtType sqlStmt = null;
78
79     /**
80      * The default value of the '{@link #getCommit() <em>Commit</em>}' attribute.
81      * <!-- begin-user-doc -->
82      * <!-- end-user-doc -->
83      * @see #getCommit()
84      * @generated
85      * @ordered
86      */

87     protected static final CommitType COMMIT_EDEFAULT = CommitType.TRUE_LITERAL;
88
89     /**
90      * The cached value of the '{@link #getCommit() <em>Commit</em>}' attribute.
91      * <!-- begin-user-doc -->
92      * <!-- end-user-doc -->
93      * @see #getCommit()
94      * @generated
95      * @ordered
96      */

97     protected CommitType commit = COMMIT_EDEFAULT;
98
99     /**
100      * This is true if the Commit attribute has been set.
101      * <!-- begin-user-doc -->
102      * <!-- end-user-doc -->
103      * @generated
104      * @ordered
105      */

106     protected boolean commitESet = false;
107
108     /**
109      * The default value of the '{@link #getLogMode() <em>Log Mode</em>}' attribute.
110      * <!-- begin-user-doc -->
111      * <!-- end-user-doc -->
112      * @see #getLogMode()
113      * @generated
114      * @ordered
115      */

116     protected static final LogModeType LOG_MODE_EDEFAULT = LogModeType.NONE_LITERAL;
117
118     /**
119      * The cached value of the '{@link #getLogMode() <em>Log Mode</em>}' attribute.
120      * <!-- begin-user-doc -->
121      * <!-- end-user-doc -->
122      * @see #getLogMode()
123      * @generated
124      * @ordered
125      */

126     protected LogModeType logMode = LOG_MODE_EDEFAULT;
127
128     /**
129      * This is true if the Log Mode attribute has been set.
130      * <!-- begin-user-doc -->
131      * <!-- end-user-doc -->
132      * @generated
133      * @ordered
134      */

135     protected boolean logModeESet = false;
136
137     /**
138      * The default value of the '{@link #getName() <em>Name</em>}' attribute.
139      * <!-- begin-user-doc -->
140      * <!-- end-user-doc -->
141      * @see #getName()
142      * @generated
143      * @ordered
144      */

145     protected static final String JavaDoc NAME_EDEFAULT = null;
146
147     /**
148      * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
149      * <!-- begin-user-doc -->
150      * <!-- end-user-doc -->
151      * @see #getName()
152      * @generated
153      * @ordered
154      */

155     protected String JavaDoc name = NAME_EDEFAULT;
156
157     /**
158      * The default value of the '{@link #getOnErrorContinue() <em>On Error Continue</em>}' attribute.
159      * <!-- begin-user-doc -->
160      * <!-- end-user-doc -->
161      * @see #getOnErrorContinue()
162      * @generated
163      * @ordered
164      */

165     protected static final OnErrorContinueType ON_ERROR_CONTINUE_EDEFAULT = OnErrorContinueType.TRUE_LITERAL;
166
167     /**
168      * The cached value of the '{@link #getOnErrorContinue() <em>On Error Continue</em>}' attribute.
169      * <!-- begin-user-doc -->
170      * <!-- end-user-doc -->
171      * @see #getOnErrorContinue()
172      * @generated
173      * @ordered
174      */

175     protected OnErrorContinueType onErrorContinue = ON_ERROR_CONTINUE_EDEFAULT;
176
177     /**
178      * This is true if the On Error Continue attribute has been set.
179      * <!-- begin-user-doc -->
180      * <!-- end-user-doc -->
181      * @generated
182      * @ordered
183      */

184     protected boolean onErrorContinueESet = false;
185
186     /**
187      * The default value of the '{@link #getReturnCode() <em>Return Code</em>}' attribute.
188      * <!-- begin-user-doc -->
189      * <!-- end-user-doc -->
190      * @see #getReturnCode()
191      * @generated
192      * @ordered
193      */

194     protected static final String JavaDoc RETURN_CODE_EDEFAULT = null;
195
196     /**
197      * The cached value of the '{@link #getReturnCode() <em>Return Code</em>}' attribute.
198      * <!-- begin-user-doc -->
199      * <!-- end-user-doc -->
200      * @see #getReturnCode()
201      * @generated
202      * @ordered
203      */

204     protected String JavaDoc returnCode = RETURN_CODE_EDEFAULT;
205
206     /**
207      * <!-- begin-user-doc -->
208      * <!-- end-user-doc -->
209      * @generated
210      */

211     protected SqlTypeImpl() {
212         super();
213     }
214
215     /**
216      * <!-- begin-user-doc -->
217      * <!-- end-user-doc -->
218      * @generated
219      */

220     protected EClass eStaticClass() {
221         return OljPackage.eINSTANCE.getSqlType();
222     }
223
224     /**
225      * <!-- begin-user-doc -->
226      * <!-- end-user-doc -->
227      * @generated
228      */

229     public JdbcTargetParametersType getJdbcTargetParameters() {
230         return jdbcTargetParameters;
231     }
232
233     /**
234      * <!-- begin-user-doc -->
235      * <!-- end-user-doc -->
236      * @generated
237      */

238     public NotificationChain basicSetJdbcTargetParameters(JdbcTargetParametersType newJdbcTargetParameters, NotificationChain msgs) {
239         JdbcTargetParametersType oldJdbcTargetParameters = jdbcTargetParameters;
240         jdbcTargetParameters = newJdbcTargetParameters;
241         if (eNotificationRequired()) {
242             ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OljPackage.SQL_TYPE__JDBC_TARGET_PARAMETERS, oldJdbcTargetParameters, newJdbcTargetParameters);
243             if (msgs == null) msgs = notification; else msgs.add(notification);
244         }
245         return msgs;
246     }
247
248     /**
249      * <!-- begin-user-doc -->
250      * <!-- end-user-doc -->
251      * @generated
252      */

253     public void setJdbcTargetParameters(JdbcTargetParametersType newJdbcTargetParameters) {
254         if (newJdbcTargetParameters != jdbcTargetParameters) {
255             NotificationChain msgs = null;
256             if (jdbcTargetParameters != null)
257                 msgs = ((InternalEObject)jdbcTargetParameters).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OljPackage.SQL_TYPE__JDBC_TARGET_PARAMETERS, null, msgs);
258             if (newJdbcTargetParameters != null)
259                 msgs = ((InternalEObject)newJdbcTargetParameters).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OljPackage.SQL_TYPE__JDBC_TARGET_PARAMETERS, null, msgs);
260             msgs = basicSetJdbcTargetParameters(newJdbcTargetParameters, msgs);
261             if (msgs != null) msgs.dispatch();
262         }
263         else if (eNotificationRequired())
264             eNotify(new ENotificationImpl(this, Notification.SET, OljPackage.SQL_TYPE__JDBC_TARGET_PARAMETERS, newJdbcTargetParameters, newJdbcTargetParameters));
265     }
266
267     /**
268      * <!-- begin-user-doc -->
269      * <!-- end-user-doc -->
270      * @generated
271      */

272     public IncludeType getInclude() {
273         return include;
274     }
275
276     /**
277      * <!-- begin-user-doc -->
278      * <!-- end-user-doc -->
279      * @generated
280      */

281     public NotificationChain basicSetInclude(IncludeType newInclude, NotificationChain msgs) {
282         IncludeType oldInclude = include;
283         include = newInclude;
284         if (eNotificationRequired()) {
285             ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OljPackage.SQL_TYPE__INCLUDE, oldInclude, newInclude);
286             if (msgs == null) msgs = notification; else msgs.add(notification);
287         }
288         return msgs;
289     }
290
291     /**
292      * <!-- begin-user-doc -->
293      * <!-- end-user-doc -->
294      * @generated
295      */

296     public void setInclude(IncludeType newInclude) {
297         if (newInclude != include) {
298             NotificationChain msgs = null;
299             if (include != null)
300                 msgs = ((InternalEObject)include).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OljPackage.SQL_TYPE__INCLUDE, null, msgs);
301             if (newInclude != null)
302                 msgs = ((InternalEObject)newInclude).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OljPackage.SQL_TYPE__INCLUDE, null, msgs);
303             msgs = basicSetInclude(newInclude, msgs);
304             if (msgs != null) msgs.dispatch();
305         }
306         else if (eNotificationRequired())
307             eNotify(new ENotificationImpl(this, Notification.SET, OljPackage.SQL_TYPE__INCLUDE, newInclude, newInclude));
308     }
309
310     /**
311      * <!-- begin-user-doc -->
312      * <!-- end-user-doc -->
313      * @generated
314      */

315     public SqlStmtType getSqlStmt() {
316         return sqlStmt;
317     }
318
319     /**
320      * <!-- begin-user-doc -->
321      * <!-- end-user-doc -->
322      * @generated
323      */

324     public NotificationChain basicSetSqlStmt(SqlStmtType newSqlStmt, NotificationChain msgs) {
325         SqlStmtType oldSqlStmt = sqlStmt;
326         sqlStmt = newSqlStmt;
327         if (eNotificationRequired()) {
328             ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OljPackage.SQL_TYPE__SQL_STMT, oldSqlStmt, newSqlStmt);
329             if (msgs == null) msgs = notification; else msgs.add(notification);
330         }
331         return msgs;
332     }
333
334     /**
335      * <!-- begin-user-doc -->
336      * <!-- end-user-doc -->
337      * @generated
338      */

339     public void setSqlStmt(SqlStmtType newSqlStmt) {
340         if (newSqlStmt != sqlStmt) {
341             NotificationChain msgs = null;
342             if (sqlStmt != null)
343                 msgs = ((InternalEObject)sqlStmt).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OljPackage.SQL_TYPE__SQL_STMT, null, msgs);
344             if (newSqlStmt != null)
345                 msgs = ((InternalEObject)newSqlStmt).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OljPackage.SQL_TYPE__SQL_STMT, null, msgs);
346             msgs = basicSetSqlStmt(newSqlStmt, msgs);
347             if (msgs != null) msgs.dispatch();
348         }
349         else if (eNotificationRequired())
350             eNotify(new ENotificationImpl(this, Notification.SET, OljPackage.SQL_TYPE__SQL_STMT, newSqlStmt, newSqlStmt));
351     }
352
353     /**
354      * <!-- begin-user-doc -->
355      * <!-- end-user-doc -->
356      * @generated
357      */

358     public CommitType getCommit() {
359         return commit;
360     }
361
362     /**
363      * <!-- begin-user-doc -->
364      * <!-- end-user-doc -->
365      * @generated
366      */

367     public void setCommit(CommitType newCommit) {
368         CommitType oldCommit = commit;
369         commit = newCommit == null ? COMMIT_EDEFAULT : newCommit;
370         boolean oldCommitESet = commitESet;
371         commitESet = true;
372         if (eNotificationRequired())
373             eNotify(new ENotificationImpl(this, Notification.SET, OljPackage.SQL_TYPE__COMMIT, oldCommit, commit, !oldCommitESet));
374     }
375
376     /**
377      * <!-- begin-user-doc -->
378      * <!-- end-user-doc -->
379      * @generated
380      */

381     public void unsetCommit() {
382         CommitType oldCommit = commit;
383         boolean oldCommitESet = commitESet;
384         commit = COMMIT_EDEFAULT;
385         commitESet = false;
386         if (eNotificationRequired())
387             eNotify(new ENotificationImpl(this, Notification.UNSET, OljPackage.SQL_TYPE__COMMIT, oldCommit, COMMIT_EDEFAULT, oldCommitESet));
388     }
389
390     /**
391      * <!-- begin-user-doc -->
392      * <!-- end-user-doc -->
393      * @generated
394      */

395     public boolean isSetCommit() {
396         return commitESet;
397     }
398
399     /**
400      * <!-- begin-user-doc -->
401      * <!-- end-user-doc -->
402      * @generated
403      */

404     public LogModeType getLogMode() {
405         return logMode;
406     }
407
408     /**
409      * <!-- begin-user-doc -->
410      * <!-- end-user-doc -->
411      * @generated
412      */

413     public void setLogMode(LogModeType newLogMode) {
414         LogModeType oldLogMode = logMode;
415         logMode = newLogMode == null ? LOG_MODE_EDEFAULT : newLogMode;
416         boolean oldLogModeESet = logModeESet;
417         logModeESet = true;
418         if (eNotificationRequired())
419             eNotify(new ENotificationImpl(this, Notification.SET, OljPackage.SQL_TYPE__LOG_MODE, oldLogMode, logMode, !oldLogModeESet));
420     }
421
422     /**
423      * <!-- begin-user-doc -->
424      * <!-- end-user-doc -->
425      * @generated
426      */

427     public void unsetLogMode() {
428         LogModeType oldLogMode = logMode;
429         boolean oldLogModeESet = logModeESet;
430         logMode = LOG_MODE_EDEFAULT;
431         logModeESet = false;
432         if (eNotificationRequired())
433             eNotify(new ENotificationImpl(this, Notification.UNSET, OljPackage.SQL_TYPE__LOG_MODE, oldLogMode, LOG_MODE_EDEFAULT, oldLogModeESet));
434     }
435
436     /**
437      * <!-- begin-user-doc -->
438      * <!-- end-user-doc -->
439      * @generated
440      */

441     public boolean isSetLogMode() {
442         return logModeESet;
443     }
444
445     /**
446      * <!-- begin-user-doc -->
447      * <!-- end-user-doc -->
448      * @generated
449      */

450     public String JavaDoc getName() {
451         return name;
452     }
453
454     /**
455      * <!-- begin-user-doc -->
456      * <!-- end-user-doc -->
457      * @generated
458      */

459     public void setName(String JavaDoc newName) {
460         String JavaDoc oldName = name;
461         name = newName;
462         if (eNotificationRequired())
463             eNotify(new ENotificationImpl(this, Notification.SET, OljPackage.SQL_TYPE__NAME, oldName, name));
464     }
465
466     /**
467      * <!-- begin-user-doc -->
468      * <!-- end-user-doc -->
469      * @generated
470      */

471     public OnErrorContinueType getOnErrorContinue() {
472         return onErrorContinue;
473     }
474
475     /**
476      * <!-- begin-user-doc -->
477      * <!-- end-user-doc -->
478      * @generated
479      */

480     public void setOnErrorContinue(OnErrorContinueType newOnErrorContinue) {
481         OnErrorContinueType oldOnErrorContinue = onErrorContinue;
482         onErrorContinue = newOnErrorContinue == null ? ON_ERROR_CONTINUE_EDEFAULT : newOnErrorContinue;
483         boolean oldOnErrorContinueESet = onErrorContinueESet;
484         onErrorContinueESet = true;
485         if (eNotificationRequired())
486             eNotify(new ENotificationImpl(this, Notification.SET, OljPackage.SQL_TYPE__ON_ERROR_CONTINUE, oldOnErrorContinue, onErrorContinue, !oldOnErrorContinueESet));
487     }
488
489     /**
490      * <!-- begin-user-doc -->
491      * <!-- end-user-doc -->
492      * @generated
493      */

494     public void unsetOnErrorContinue() {
495         OnErrorContinueType oldOnErrorContinue = onErrorContinue;
496         boolean oldOnErrorContinueESet = onErrorContinueESet;
497         onErrorContinue = ON_ERROR_CONTINUE_EDEFAULT;
498         onErrorContinueESet = false;
499         if (eNotificationRequired())
500             eNotify(new ENotificationImpl(this, Notification.UNSET, OljPackage.SQL_TYPE__ON_ERROR_CONTINUE, oldOnErrorContinue, ON_ERROR_CONTINUE_EDEFAULT, oldOnErrorContinueESet));
501     }
502
503     /**
504      * <!-- begin-user-doc -->
505      * <!-- end-user-doc -->
506      * @generated
507      */

508     public boolean isSetOnErrorContinue() {
509         return onErrorContinueESet;
510     }
511
512     /**
513      * <!-- begin-user-doc -->
514      * <!-- end-user-doc -->
515      * @generated
516      */

517     public String JavaDoc getReturnCode() {
518         return returnCode;
519     }
520
521     /**
522      * <!-- begin-user-doc -->
523      * <!-- end-user-doc -->
524      * @generated
525      */

526     public void setReturnCode(String JavaDoc newReturnCode) {
527         String JavaDoc oldReturnCode = returnCode;
528         returnCode = newReturnCode;
529         if (eNotificationRequired())
530             eNotify(new ENotificationImpl(this, Notification.SET, OljPackage.SQL_TYPE__RETURN_CODE, oldReturnCode, returnCode));
531     }
532
533     /**
534      * <!-- begin-user-doc -->
535      * <!-- end-user-doc -->
536      * @generated
537      */

538     public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class JavaDoc baseClass, NotificationChain msgs) {
539         if (featureID >= 0) {
540             switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
541                 case OljPackage.SQL_TYPE__JDBC_TARGET_PARAMETERS:
542                     return basicSetJdbcTargetParameters(null, msgs);
543                 case OljPackage.SQL_TYPE__INCLUDE:
544                     return basicSetInclude(null, msgs);
545                 case OljPackage.SQL_TYPE__SQL_STMT:
546                     return basicSetSqlStmt(null, msgs);
547                 default:
548                     return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
549             }
550         }
551         return eBasicSetContainer(null, featureID, msgs);
552     }
553
554     /**
555      * <!-- begin-user-doc -->
556      * <!-- end-user-doc -->
557      * @generated
558      */

559     public Object JavaDoc eGet(EStructuralFeature eFeature, boolean resolve) {
560         switch (eDerivedStructuralFeatureID(eFeature)) {
561             case OljPackage.SQL_TYPE__JDBC_TARGET_PARAMETERS:
562                 return getJdbcTargetParameters();
563             case OljPackage.SQL_TYPE__INCLUDE:
564                 return getInclude();
565             case OljPackage.SQL_TYPE__SQL_STMT:
566                 return getSqlStmt();
567             case OljPackage.SQL_TYPE__COMMIT:
568                 return getCommit();
569             case OljPackage.SQL_TYPE__LOG_MODE:
570                 return getLogMode();
571             case OljPackage.SQL_TYPE__NAME:
572                 return getName();
573             case OljPackage.SQL_TYPE__ON_ERROR_CONTINUE:
574                 return getOnErrorContinue();
575             case OljPackage.SQL_TYPE__RETURN_CODE:
576                 return getReturnCode();
577         }
578         return eDynamicGet(eFeature, resolve);
579     }
580
581     /**
582      * <!-- begin-user-doc -->
583      * <!-- end-user-doc -->
584      * @generated
585      */

586     public void eSet(EStructuralFeature eFeature, Object JavaDoc newValue) {
587         switch (eDerivedStructuralFeatureID(eFeature)) {
588             case OljPackage.SQL_TYPE__JDBC_TARGET_PARAMETERS:
589                 setJdbcTargetParameters((JdbcTargetParametersType)newValue);
590                 return;
591             case OljPackage.SQL_TYPE__INCLUDE:
592                 setInclude((IncludeType)newValue);
593                 return;
594             case OljPackage.SQL_TYPE__SQL_STMT:
595                 setSqlStmt((SqlStmtType)newValue);
596                 return;
597             case OljPackage.SQL_TYPE__COMMIT:
598                 setCommit((CommitType)newValue);
599                 return;
600             case OljPackage.SQL_TYPE__LOG_MODE:
601                 setLogMode((LogModeType)newValue);
602                 return;
603             case OljPackage.SQL_TYPE__NAME:
604                 setName((String JavaDoc)newValue);
605                 return;
606             case OljPackage.SQL_TYPE__ON_ERROR_CONTINUE:
607                 setOnErrorContinue((OnErrorContinueType)newValue);
608                 return;
609             case OljPackage.SQL_TYPE__RETURN_CODE:
610                 setReturnCode((String JavaDoc)newValue);
611                 return;
612         }
613         eDynamicSet(eFeature, newValue);
614     }
615
616     /**
617      * <!-- begin-user-doc -->
618      * <!-- end-user-doc -->
619      * @generated
620      */

621     public void eUnset(EStructuralFeature eFeature) {
622         switch (eDerivedStructuralFeatureID(eFeature)) {
623             case OljPackage.SQL_TYPE__JDBC_TARGET_PARAMETERS:
624                 setJdbcTargetParameters((JdbcTargetParametersType)null);
625                 return;
626             case OljPackage.SQL_TYPE__INCLUDE:
627                 setInclude((IncludeType)null);
628                 return;
629             case OljPackage.SQL_TYPE__SQL_STMT:
630                 setSqlStmt((SqlStmtType)null);
631                 return;
632             case OljPackage.SQL_TYPE__COMMIT:
633                 unsetCommit();
634                 return;
635             case OljPackage.SQL_TYPE__LOG_MODE:
636                 unsetLogMode();
637                 return;
638             case OljPackage.SQL_TYPE__NAME:
639                 setName(NAME_EDEFAULT);
640                 return;
641             case OljPackage.SQL_TYPE__ON_ERROR_CONTINUE:
642                 unsetOnErrorContinue();
643                 return;
644             case OljPackage.SQL_TYPE__RETURN_CODE:
645                 setReturnCode(RETURN_CODE_EDEFAULT);
646                 return;
647         }
648         eDynamicUnset(eFeature);
649     }
650
651     /**
652      * <!-- begin-user-doc -->
653      * <!-- end-user-doc -->
654      * @generated
655      */

656     public boolean eIsSet(EStructuralFeature eFeature) {
657         switch (eDerivedStructuralFeatureID(eFeature)) {
658             case OljPackage.SQL_TYPE__JDBC_TARGET_PARAMETERS:
659                 return jdbcTargetParameters != null;
660             case OljPackage.SQL_TYPE__INCLUDE:
661                 return include != null;
662             case OljPackage.SQL_TYPE__SQL_STMT:
663                 return sqlStmt != null;
664             case OljPackage.SQL_TYPE__COMMIT:
665                 return isSetCommit();
666             case OljPackage.SQL_TYPE__LOG_MODE:
667                 return isSetLogMode();
668             case OljPackage.SQL_TYPE__NAME:
669                 return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
670             case OljPackage.SQL_TYPE__ON_ERROR_CONTINUE:
671                 return isSetOnErrorContinue();
672             case OljPackage.SQL_TYPE__RETURN_CODE:
673                 return RETURN_CODE_EDEFAULT == null ? returnCode != null : !RETURN_CODE_EDEFAULT.equals(returnCode);
674         }
675         return eDynamicIsSet(eFeature);
676     }
677
678     /**
679      * <!-- begin-user-doc -->
680      * <!-- end-user-doc -->
681      * @generated
682      */

683     public String JavaDoc toString() {
684         if (eIsProxy()) return super.toString();
685
686         StringBuffer JavaDoc result = new StringBuffer JavaDoc(super.toString());
687         result.append(" (commit: ");
688         if (commitESet) result.append(commit); else result.append("<unset>");
689         result.append(", logMode: ");
690         if (logModeESet) result.append(logMode); else result.append("<unset>");
691         result.append(", name: ");
692         result.append(name);
693         result.append(", onErrorContinue: ");
694         if (onErrorContinueESet) result.append(onErrorContinue); else result.append("<unset>");
695         result.append(", returnCode: ");
696         result.append(returnCode);
697         result.append(')');
698         return result.toString();
699     }
700
701 } //SqlTypeImpl
702
Popular Tags