KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Olj > impl > CopyTableTypeImpl


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

7 package Olj.impl;
8
9 import Olj.CopyTableType;
10 import Olj.JdbcParametersType;
11 import Olj.LogModeType3;
12 import Olj.OidLogicType1;
13 import Olj.OljPackage;
14 import Olj.OnErrorContinueType2;
15 import Olj.SetCursorNameType2;
16 import Olj.SetFetchSizeType2;
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>Copy Table Type</b></em>'.
31  * <!-- end-user-doc -->
32  * <p>
33  * The following features are implemented:
34  * <ul>
35  * <li>{@link Olj.impl.CopyTableTypeImpl#getJdbcParameters <em>Jdbc Parameters</em>}</li>
36  * <li>{@link Olj.impl.CopyTableTypeImpl#getCommitCount <em>Commit Count</em>}</li>
37  * <li>{@link Olj.impl.CopyTableTypeImpl#getLogMode <em>Log Mode</em>}</li>
38  * <li>{@link Olj.impl.CopyTableTypeImpl#getName <em>Name</em>}</li>
39  * <li>{@link Olj.impl.CopyTableTypeImpl#getObjectIDIncrement <em>Object ID Increment</em>}</li>
40  * <li>{@link Olj.impl.CopyTableTypeImpl#getOidLogic <em>Oid Logic</em>}</li>
41  * <li>{@link Olj.impl.CopyTableTypeImpl#getOnErrorContinue <em>On Error Continue</em>}</li>
42  * <li>{@link Olj.impl.CopyTableTypeImpl#getSetCursorName <em>Set Cursor Name</em>}</li>
43  * <li>{@link Olj.impl.CopyTableTypeImpl#getSetFetchSize <em>Set Fetch Size</em>}</li>
44  * <li>{@link Olj.impl.CopyTableTypeImpl#getSourceTableName <em>Source Table Name</em>}</li>
45  * <li>{@link Olj.impl.CopyTableTypeImpl#getTargetTableName <em>Target Table Name</em>}</li>
46  * </ul>
47  * </p>
48  *
49  * @generated
50  */

51 public class CopyTableTypeImpl extends EObjectImpl implements CopyTableType {
52     /**
53      * The cached value of the '{@link #getJdbcParameters() <em>Jdbc Parameters</em>}' containment reference.
54      * <!-- begin-user-doc -->
55      * <!-- end-user-doc -->
56      * @see #getJdbcParameters()
57      * @generated
58      * @ordered
59      */

60     protected JdbcParametersType jdbcParameters = null;
61
62     /**
63      * The default value of the '{@link #getCommitCount() <em>Commit Count</em>}' attribute.
64      * <!-- begin-user-doc -->
65      * <!-- end-user-doc -->
66      * @see #getCommitCount()
67      * @generated
68      * @ordered
69      */

70     protected static final String JavaDoc COMMIT_COUNT_EDEFAULT = null;
71
72     /**
73      * The cached value of the '{@link #getCommitCount() <em>Commit Count</em>}' attribute.
74      * <!-- begin-user-doc -->
75      * <!-- end-user-doc -->
76      * @see #getCommitCount()
77      * @generated
78      * @ordered
79      */

80     protected String JavaDoc commitCount = COMMIT_COUNT_EDEFAULT;
81
82     /**
83      * The default value of the '{@link #getLogMode() <em>Log Mode</em>}' attribute.
84      * <!-- begin-user-doc -->
85      * <!-- end-user-doc -->
86      * @see #getLogMode()
87      * @generated
88      * @ordered
89      */

90     protected static final LogModeType3 LOG_MODE_EDEFAULT = LogModeType3.NONE_LITERAL;
91
92     /**
93      * The cached value of the '{@link #getLogMode() <em>Log Mode</em>}' attribute.
94      * <!-- begin-user-doc -->
95      * <!-- end-user-doc -->
96      * @see #getLogMode()
97      * @generated
98      * @ordered
99      */

100     protected LogModeType3 logMode = LOG_MODE_EDEFAULT;
101
102     /**
103      * This is true if the Log Mode attribute has been set.
104      * <!-- begin-user-doc -->
105      * <!-- end-user-doc -->
106      * @generated
107      * @ordered
108      */

109     protected boolean logModeESet = false;
110
111     /**
112      * The default value of the '{@link #getName() <em>Name</em>}' attribute.
113      * <!-- begin-user-doc -->
114      * <!-- end-user-doc -->
115      * @see #getName()
116      * @generated
117      * @ordered
118      */

119     protected static final String JavaDoc NAME_EDEFAULT = null;
120
121     /**
122      * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
123      * <!-- begin-user-doc -->
124      * <!-- end-user-doc -->
125      * @see #getName()
126      * @generated
127      * @ordered
128      */

129     protected String JavaDoc name = NAME_EDEFAULT;
130
131     /**
132      * The default value of the '{@link #getObjectIDIncrement() <em>Object ID Increment</em>}' attribute.
133      * <!-- begin-user-doc -->
134      * <!-- end-user-doc -->
135      * @see #getObjectIDIncrement()
136      * @generated
137      * @ordered
138      */

139     protected static final String JavaDoc OBJECT_ID_INCREMENT_EDEFAULT = null;
140
141     /**
142      * The cached value of the '{@link #getObjectIDIncrement() <em>Object ID Increment</em>}' attribute.
143      * <!-- begin-user-doc -->
144      * <!-- end-user-doc -->
145      * @see #getObjectIDIncrement()
146      * @generated
147      * @ordered
148      */

149     protected String JavaDoc objectIDIncrement = OBJECT_ID_INCREMENT_EDEFAULT;
150
151     /**
152      * The default value of the '{@link #getOidLogic() <em>Oid Logic</em>}' attribute.
153      * <!-- begin-user-doc -->
154      * <!-- end-user-doc -->
155      * @see #getOidLogic()
156      * @generated
157      * @ordered
158      */

159     protected static final OidLogicType1 OID_LOGIC_EDEFAULT = OidLogicType1.TRUE_LITERAL;
160
161     /**
162      * The cached value of the '{@link #getOidLogic() <em>Oid Logic</em>}' attribute.
163      * <!-- begin-user-doc -->
164      * <!-- end-user-doc -->
165      * @see #getOidLogic()
166      * @generated
167      * @ordered
168      */

169     protected OidLogicType1 oidLogic = OID_LOGIC_EDEFAULT;
170
171     /**
172      * This is true if the Oid Logic attribute has been set.
173      * <!-- begin-user-doc -->
174      * <!-- end-user-doc -->
175      * @generated
176      * @ordered
177      */

178     protected boolean oidLogicESet = false;
179
180     /**
181      * The default value of the '{@link #getOnErrorContinue() <em>On Error Continue</em>}' attribute.
182      * <!-- begin-user-doc -->
183      * <!-- end-user-doc -->
184      * @see #getOnErrorContinue()
185      * @generated
186      * @ordered
187      */

188     protected static final OnErrorContinueType2 ON_ERROR_CONTINUE_EDEFAULT = OnErrorContinueType2.TRUE_LITERAL;
189
190     /**
191      * The cached value of the '{@link #getOnErrorContinue() <em>On Error Continue</em>}' attribute.
192      * <!-- begin-user-doc -->
193      * <!-- end-user-doc -->
194      * @see #getOnErrorContinue()
195      * @generated
196      * @ordered
197      */

198     protected OnErrorContinueType2 onErrorContinue = ON_ERROR_CONTINUE_EDEFAULT;
199
200     /**
201      * This is true if the On Error Continue attribute has been set.
202      * <!-- begin-user-doc -->
203      * <!-- end-user-doc -->
204      * @generated
205      * @ordered
206      */

207     protected boolean onErrorContinueESet = false;
208
209     /**
210      * The default value of the '{@link #getSetCursorName() <em>Set Cursor Name</em>}' attribute.
211      * <!-- begin-user-doc -->
212      * <!-- end-user-doc -->
213      * @see #getSetCursorName()
214      * @generated
215      * @ordered
216      */

217     protected static final SetCursorNameType2 SET_CURSOR_NAME_EDEFAULT = SetCursorNameType2.TRUE_LITERAL;
218
219     /**
220      * The cached value of the '{@link #getSetCursorName() <em>Set Cursor Name</em>}' attribute.
221      * <!-- begin-user-doc -->
222      * <!-- end-user-doc -->
223      * @see #getSetCursorName()
224      * @generated
225      * @ordered
226      */

227     protected SetCursorNameType2 setCursorName = SET_CURSOR_NAME_EDEFAULT;
228
229     /**
230      * This is true if the Set Cursor Name attribute has been set.
231      * <!-- begin-user-doc -->
232      * <!-- end-user-doc -->
233      * @generated
234      * @ordered
235      */

236     protected boolean setCursorNameESet = false;
237
238     /**
239      * The default value of the '{@link #getSetFetchSize() <em>Set Fetch Size</em>}' attribute.
240      * <!-- begin-user-doc -->
241      * <!-- end-user-doc -->
242      * @see #getSetFetchSize()
243      * @generated
244      * @ordered
245      */

246     protected static final SetFetchSizeType2 SET_FETCH_SIZE_EDEFAULT = SetFetchSizeType2.TRUE_LITERAL;
247
248     /**
249      * The cached value of the '{@link #getSetFetchSize() <em>Set Fetch Size</em>}' attribute.
250      * <!-- begin-user-doc -->
251      * <!-- end-user-doc -->
252      * @see #getSetFetchSize()
253      * @generated
254      * @ordered
255      */

256     protected SetFetchSizeType2 setFetchSize = SET_FETCH_SIZE_EDEFAULT;
257
258     /**
259      * This is true if the Set Fetch Size attribute has been set.
260      * <!-- begin-user-doc -->
261      * <!-- end-user-doc -->
262      * @generated
263      * @ordered
264      */

265     protected boolean setFetchSizeESet = false;
266
267     /**
268      * The default value of the '{@link #getSourceTableName() <em>Source Table Name</em>}' attribute.
269      * <!-- begin-user-doc -->
270      * <!-- end-user-doc -->
271      * @see #getSourceTableName()
272      * @generated
273      * @ordered
274      */

275     protected static final String JavaDoc SOURCE_TABLE_NAME_EDEFAULT = null;
276
277     /**
278      * The cached value of the '{@link #getSourceTableName() <em>Source Table Name</em>}' attribute.
279      * <!-- begin-user-doc -->
280      * <!-- end-user-doc -->
281      * @see #getSourceTableName()
282      * @generated
283      * @ordered
284      */

285     protected String JavaDoc sourceTableName = SOURCE_TABLE_NAME_EDEFAULT;
286
287     /**
288      * The default value of the '{@link #getTargetTableName() <em>Target Table Name</em>}' attribute.
289      * <!-- begin-user-doc -->
290      * <!-- end-user-doc -->
291      * @see #getTargetTableName()
292      * @generated
293      * @ordered
294      */

295     protected static final String JavaDoc TARGET_TABLE_NAME_EDEFAULT = null;
296
297     /**
298      * The cached value of the '{@link #getTargetTableName() <em>Target Table Name</em>}' attribute.
299      * <!-- begin-user-doc -->
300      * <!-- end-user-doc -->
301      * @see #getTargetTableName()
302      * @generated
303      * @ordered
304      */

305     protected String JavaDoc targetTableName = TARGET_TABLE_NAME_EDEFAULT;
306
307     /**
308      * <!-- begin-user-doc -->
309      * <!-- end-user-doc -->
310      * @generated
311      */

312     protected CopyTableTypeImpl() {
313         super();
314     }
315
316     /**
317      * <!-- begin-user-doc -->
318      * <!-- end-user-doc -->
319      * @generated
320      */

321     protected EClass eStaticClass() {
322         return OljPackage.eINSTANCE.getCopyTableType();
323     }
324
325     /**
326      * <!-- begin-user-doc -->
327      * <!-- end-user-doc -->
328      * @generated
329      */

330     public JdbcParametersType getJdbcParameters() {
331         return jdbcParameters;
332     }
333
334     /**
335      * <!-- begin-user-doc -->
336      * <!-- end-user-doc -->
337      * @generated
338      */

339     public NotificationChain basicSetJdbcParameters(JdbcParametersType newJdbcParameters, NotificationChain msgs) {
340         JdbcParametersType oldJdbcParameters = jdbcParameters;
341         jdbcParameters = newJdbcParameters;
342         if (eNotificationRequired()) {
343             ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OljPackage.COPY_TABLE_TYPE__JDBC_PARAMETERS, oldJdbcParameters, newJdbcParameters);
344             if (msgs == null) msgs = notification; else msgs.add(notification);
345         }
346         return msgs;
347     }
348
349     /**
350      * <!-- begin-user-doc -->
351      * <!-- end-user-doc -->
352      * @generated
353      */

354     public void setJdbcParameters(JdbcParametersType newJdbcParameters) {
355         if (newJdbcParameters != jdbcParameters) {
356             NotificationChain msgs = null;
357             if (jdbcParameters != null)
358                 msgs = ((InternalEObject)jdbcParameters).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OljPackage.COPY_TABLE_TYPE__JDBC_PARAMETERS, null, msgs);
359             if (newJdbcParameters != null)
360                 msgs = ((InternalEObject)newJdbcParameters).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OljPackage.COPY_TABLE_TYPE__JDBC_PARAMETERS, null, msgs);
361             msgs = basicSetJdbcParameters(newJdbcParameters, msgs);
362             if (msgs != null) msgs.dispatch();
363         }
364         else if (eNotificationRequired())
365             eNotify(new ENotificationImpl(this, Notification.SET, OljPackage.COPY_TABLE_TYPE__JDBC_PARAMETERS, newJdbcParameters, newJdbcParameters));
366     }
367
368     /**
369      * <!-- begin-user-doc -->
370      * <!-- end-user-doc -->
371      * @generated
372      */

373     public String JavaDoc getCommitCount() {
374         return commitCount;
375     }
376
377     /**
378      * <!-- begin-user-doc -->
379      * <!-- end-user-doc -->
380      * @generated
381      */

382     public void setCommitCount(String JavaDoc newCommitCount) {
383         String JavaDoc oldCommitCount = commitCount;
384         commitCount = newCommitCount;
385         if (eNotificationRequired())
386             eNotify(new ENotificationImpl(this, Notification.SET, OljPackage.COPY_TABLE_TYPE__COMMIT_COUNT, oldCommitCount, commitCount));
387     }
388
389     /**
390      * <!-- begin-user-doc -->
391      * <!-- end-user-doc -->
392      * @generated
393      */

394     public LogModeType3 getLogMode() {
395         return logMode;
396     }
397
398     /**
399      * <!-- begin-user-doc -->
400      * <!-- end-user-doc -->
401      * @generated
402      */

403     public void setLogMode(LogModeType3 newLogMode) {
404         LogModeType3 oldLogMode = logMode;
405         logMode = newLogMode == null ? LOG_MODE_EDEFAULT : newLogMode;
406         boolean oldLogModeESet = logModeESet;
407         logModeESet = true;
408         if (eNotificationRequired())
409             eNotify(new ENotificationImpl(this, Notification.SET, OljPackage.COPY_TABLE_TYPE__LOG_MODE, oldLogMode, logMode, !oldLogModeESet));
410     }
411
412     /**
413      * <!-- begin-user-doc -->
414      * <!-- end-user-doc -->
415      * @generated
416      */

417     public void unsetLogMode() {
418         LogModeType3 oldLogMode = logMode;
419         boolean oldLogModeESet = logModeESet;
420         logMode = LOG_MODE_EDEFAULT;
421         logModeESet = false;
422         if (eNotificationRequired())
423             eNotify(new ENotificationImpl(this, Notification.UNSET, OljPackage.COPY_TABLE_TYPE__LOG_MODE, oldLogMode, LOG_MODE_EDEFAULT, oldLogModeESet));
424     }
425
426     /**
427      * <!-- begin-user-doc -->
428      * <!-- end-user-doc -->
429      * @generated
430      */

431     public boolean isSetLogMode() {
432         return logModeESet;
433     }
434
435     /**
436      * <!-- begin-user-doc -->
437      * <!-- end-user-doc -->
438      * @generated
439      */

440     public String JavaDoc getName() {
441         return name;
442     }
443
444     /**
445      * <!-- begin-user-doc -->
446      * <!-- end-user-doc -->
447      * @generated
448      */

449     public void setName(String JavaDoc newName) {
450         String JavaDoc oldName = name;
451         name = newName;
452         if (eNotificationRequired())
453             eNotify(new ENotificationImpl(this, Notification.SET, OljPackage.COPY_TABLE_TYPE__NAME, oldName, name));
454     }
455
456     /**
457      * <!-- begin-user-doc -->
458      * <!-- end-user-doc -->
459      * @generated
460      */

461     public String JavaDoc getObjectIDIncrement() {
462         return objectIDIncrement;
463     }
464
465     /**
466      * <!-- begin-user-doc -->
467      * <!-- end-user-doc -->
468      * @generated
469      */

470     public void setObjectIDIncrement(String JavaDoc newObjectIDIncrement) {
471         String JavaDoc oldObjectIDIncrement = objectIDIncrement;
472         objectIDIncrement = newObjectIDIncrement;
473         if (eNotificationRequired())
474             eNotify(new ENotificationImpl(this, Notification.SET, OljPackage.COPY_TABLE_TYPE__OBJECT_ID_INCREMENT, oldObjectIDIncrement, objectIDIncrement));
475     }
476
477     /**
478      * <!-- begin-user-doc -->
479      * <!-- end-user-doc -->
480      * @generated
481      */

482     public OidLogicType1 getOidLogic() {
483         return oidLogic;
484     }
485
486     /**
487      * <!-- begin-user-doc -->
488      * <!-- end-user-doc -->
489      * @generated
490      */

491     public void setOidLogic(OidLogicType1 newOidLogic) {
492         OidLogicType1 oldOidLogic = oidLogic;
493         oidLogic = newOidLogic == null ? OID_LOGIC_EDEFAULT : newOidLogic;
494         boolean oldOidLogicESet = oidLogicESet;
495         oidLogicESet = true;
496         if (eNotificationRequired())
497             eNotify(new ENotificationImpl(this, Notification.SET, OljPackage.COPY_TABLE_TYPE__OID_LOGIC, oldOidLogic, oidLogic, !oldOidLogicESet));
498     }
499
500     /**
501      * <!-- begin-user-doc -->
502      * <!-- end-user-doc -->
503      * @generated
504      */

505     public void unsetOidLogic() {
506         OidLogicType1 oldOidLogic = oidLogic;
507         boolean oldOidLogicESet = oidLogicESet;
508         oidLogic = OID_LOGIC_EDEFAULT;
509         oidLogicESet = false;
510         if (eNotificationRequired())
511             eNotify(new ENotificationImpl(this, Notification.UNSET, OljPackage.COPY_TABLE_TYPE__OID_LOGIC, oldOidLogic, OID_LOGIC_EDEFAULT, oldOidLogicESet));
512     }
513
514     /**
515      * <!-- begin-user-doc -->
516      * <!-- end-user-doc -->
517      * @generated
518      */

519     public boolean isSetOidLogic() {
520         return oidLogicESet;
521     }
522
523     /**
524      * <!-- begin-user-doc -->
525      * <!-- end-user-doc -->
526      * @generated
527      */

528     public OnErrorContinueType2 getOnErrorContinue() {
529         return onErrorContinue;
530     }
531
532     /**
533      * <!-- begin-user-doc -->
534      * <!-- end-user-doc -->
535      * @generated
536      */

537     public void setOnErrorContinue(OnErrorContinueType2 newOnErrorContinue) {
538         OnErrorContinueType2 oldOnErrorContinue = onErrorContinue;
539         onErrorContinue = newOnErrorContinue == null ? ON_ERROR_CONTINUE_EDEFAULT : newOnErrorContinue;
540         boolean oldOnErrorContinueESet = onErrorContinueESet;
541         onErrorContinueESet = true;
542         if (eNotificationRequired())
543             eNotify(new ENotificationImpl(this, Notification.SET, OljPackage.COPY_TABLE_TYPE__ON_ERROR_CONTINUE, oldOnErrorContinue, onErrorContinue, !oldOnErrorContinueESet));
544     }
545
546     /**
547      * <!-- begin-user-doc -->
548      * <!-- end-user-doc -->
549      * @generated
550      */

551     public void unsetOnErrorContinue() {
552         OnErrorContinueType2 oldOnErrorContinue = onErrorContinue;
553         boolean oldOnErrorContinueESet = onErrorContinueESet;
554         onErrorContinue = ON_ERROR_CONTINUE_EDEFAULT;
555         onErrorContinueESet = false;
556         if (eNotificationRequired())
557             eNotify(new ENotificationImpl(this, Notification.UNSET, OljPackage.COPY_TABLE_TYPE__ON_ERROR_CONTINUE, oldOnErrorContinue, ON_ERROR_CONTINUE_EDEFAULT, oldOnErrorContinueESet));
558     }
559
560     /**
561      * <!-- begin-user-doc -->
562      * <!-- end-user-doc -->
563      * @generated
564      */

565     public boolean isSetOnErrorContinue() {
566         return onErrorContinueESet;
567     }
568
569     /**
570      * <!-- begin-user-doc -->
571      * <!-- end-user-doc -->
572      * @generated
573      */

574     public SetCursorNameType2 getSetCursorName() {
575         return setCursorName;
576     }
577
578     /**
579      * <!-- begin-user-doc -->
580      * <!-- end-user-doc -->
581      * @generated
582      */

583     public void setSetCursorName(SetCursorNameType2 newSetCursorName) {
584         SetCursorNameType2 oldSetCursorName = setCursorName;
585         setCursorName = newSetCursorName == null ? SET_CURSOR_NAME_EDEFAULT : newSetCursorName;
586         boolean oldSetCursorNameESet = setCursorNameESet;
587         setCursorNameESet = true;
588         if (eNotificationRequired())
589             eNotify(new ENotificationImpl(this, Notification.SET, OljPackage.COPY_TABLE_TYPE__SET_CURSOR_NAME, oldSetCursorName, setCursorName, !oldSetCursorNameESet));
590     }
591
592     /**
593      * <!-- begin-user-doc -->
594      * <!-- end-user-doc -->
595      * @generated
596      */

597     public void unsetSetCursorName() {
598         SetCursorNameType2 oldSetCursorName = setCursorName;
599         boolean oldSetCursorNameESet = setCursorNameESet;
600         setCursorName = SET_CURSOR_NAME_EDEFAULT;
601         setCursorNameESet = false;
602         if (eNotificationRequired())
603             eNotify(new ENotificationImpl(this, Notification.UNSET, OljPackage.COPY_TABLE_TYPE__SET_CURSOR_NAME, oldSetCursorName, SET_CURSOR_NAME_EDEFAULT, oldSetCursorNameESet));
604     }
605
606     /**
607      * <!-- begin-user-doc -->
608      * <!-- end-user-doc -->
609      * @generated
610      */

611     public boolean isSetSetCursorName() {
612         return setCursorNameESet;
613     }
614
615     /**
616      * <!-- begin-user-doc -->
617      * <!-- end-user-doc -->
618      * @generated
619      */

620     public SetFetchSizeType2 getSetFetchSize() {
621         return setFetchSize;
622     }
623
624     /**
625      * <!-- begin-user-doc -->
626      * <!-- end-user-doc -->
627      * @generated
628      */

629     public void setSetFetchSize(SetFetchSizeType2 newSetFetchSize) {
630         SetFetchSizeType2 oldSetFetchSize = setFetchSize;
631         setFetchSize = newSetFetchSize == null ? SET_FETCH_SIZE_EDEFAULT : newSetFetchSize;
632         boolean oldSetFetchSizeESet = setFetchSizeESet;
633         setFetchSizeESet = true;
634         if (eNotificationRequired())
635             eNotify(new ENotificationImpl(this, Notification.SET, OljPackage.COPY_TABLE_TYPE__SET_FETCH_SIZE, oldSetFetchSize, setFetchSize, !oldSetFetchSizeESet));
636     }
637
638     /**
639      * <!-- begin-user-doc -->
640      * <!-- end-user-doc -->
641      * @generated
642      */

643     public void unsetSetFetchSize() {
644         SetFetchSizeType2 oldSetFetchSize = setFetchSize;
645         boolean oldSetFetchSizeESet = setFetchSizeESet;
646         setFetchSize = SET_FETCH_SIZE_EDEFAULT;
647         setFetchSizeESet = false;
648         if (eNotificationRequired())
649             eNotify(new ENotificationImpl(this, Notification.UNSET, OljPackage.COPY_TABLE_TYPE__SET_FETCH_SIZE, oldSetFetchSize, SET_FETCH_SIZE_EDEFAULT, oldSetFetchSizeESet));
650     }
651
652     /**
653      * <!-- begin-user-doc -->
654      * <!-- end-user-doc -->
655      * @generated
656      */

657     public boolean isSetSetFetchSize() {
658         return setFetchSizeESet;
659     }
660
661     /**
662      * <!-- begin-user-doc -->
663      * <!-- end-user-doc -->
664      * @generated
665      */

666     public String JavaDoc getSourceTableName() {
667         return sourceTableName;
668     }
669
670     /**
671      * <!-- begin-user-doc -->
672      * <!-- end-user-doc -->
673      * @generated
674      */

675     public void setSourceTableName(String JavaDoc newSourceTableName) {
676         String JavaDoc oldSourceTableName = sourceTableName;
677         sourceTableName = newSourceTableName;
678         if (eNotificationRequired())
679             eNotify(new ENotificationImpl(this, Notification.SET, OljPackage.COPY_TABLE_TYPE__SOURCE_TABLE_NAME, oldSourceTableName, sourceTableName));
680     }
681
682     /**
683      * <!-- begin-user-doc -->
684      * <!-- end-user-doc -->
685      * @generated
686      */

687     public String JavaDoc getTargetTableName() {
688         return targetTableName;
689     }
690
691     /**
692      * <!-- begin-user-doc -->
693      * <!-- end-user-doc -->
694      * @generated
695      */

696     public void setTargetTableName(String JavaDoc newTargetTableName) {
697         String JavaDoc oldTargetTableName = targetTableName;
698         targetTableName = newTargetTableName;
699         if (eNotificationRequired())
700             eNotify(new ENotificationImpl(this, Notification.SET, OljPackage.COPY_TABLE_TYPE__TARGET_TABLE_NAME, oldTargetTableName, targetTableName));
701     }
702
703     /**
704      * <!-- begin-user-doc -->
705      * <!-- end-user-doc -->
706      * @generated
707      */

708     public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class JavaDoc baseClass, NotificationChain msgs) {
709         if (featureID >= 0) {
710             switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
711                 case OljPackage.COPY_TABLE_TYPE__JDBC_PARAMETERS:
712                     return basicSetJdbcParameters(null, msgs);
713                 default:
714                     return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
715             }
716         }
717         return eBasicSetContainer(null, featureID, msgs);
718     }
719
720     /**
721      * <!-- begin-user-doc -->
722      * <!-- end-user-doc -->
723      * @generated
724      */

725     public Object JavaDoc eGet(EStructuralFeature eFeature, boolean resolve) {
726         switch (eDerivedStructuralFeatureID(eFeature)) {
727             case OljPackage.COPY_TABLE_TYPE__JDBC_PARAMETERS:
728                 return getJdbcParameters();
729             case OljPackage.COPY_TABLE_TYPE__COMMIT_COUNT:
730                 return getCommitCount();
731             case OljPackage.COPY_TABLE_TYPE__LOG_MODE:
732                 return getLogMode();
733             case OljPackage.COPY_TABLE_TYPE__NAME:
734                 return getName();
735             case OljPackage.COPY_TABLE_TYPE__OBJECT_ID_INCREMENT:
736                 return getObjectIDIncrement();
737             case OljPackage.COPY_TABLE_TYPE__OID_LOGIC:
738                 return getOidLogic();
739             case OljPackage.COPY_TABLE_TYPE__ON_ERROR_CONTINUE:
740                 return getOnErrorContinue();
741             case OljPackage.COPY_TABLE_TYPE__SET_CURSOR_NAME:
742                 return getSetCursorName();
743             case OljPackage.COPY_TABLE_TYPE__SET_FETCH_SIZE:
744                 return getSetFetchSize();
745             case OljPackage.COPY_TABLE_TYPE__SOURCE_TABLE_NAME:
746                 return getSourceTableName();
747             case OljPackage.COPY_TABLE_TYPE__TARGET_TABLE_NAME:
748                 return getTargetTableName();
749         }
750         return eDynamicGet(eFeature, resolve);
751     }
752
753     /**
754      * <!-- begin-user-doc -->
755      * <!-- end-user-doc -->
756      * @generated
757      */

758     public void eSet(EStructuralFeature eFeature, Object JavaDoc newValue) {
759         switch (eDerivedStructuralFeatureID(eFeature)) {
760             case OljPackage.COPY_TABLE_TYPE__JDBC_PARAMETERS:
761                 setJdbcParameters((JdbcParametersType)newValue);
762                 return;
763             case OljPackage.COPY_TABLE_TYPE__COMMIT_COUNT:
764                 setCommitCount((String JavaDoc)newValue);
765                 return;
766             case OljPackage.COPY_TABLE_TYPE__LOG_MODE:
767                 setLogMode((LogModeType3)newValue);
768                 return;
769             case OljPackage.COPY_TABLE_TYPE__NAME:
770                 setName((String JavaDoc)newValue);
771                 return;
772             case OljPackage.COPY_TABLE_TYPE__OBJECT_ID_INCREMENT:
773                 setObjectIDIncrement((String JavaDoc)newValue);
774                 return;
775             case OljPackage.COPY_TABLE_TYPE__OID_LOGIC:
776                 setOidLogic((OidLogicType1)newValue);
777                 return;
778             case OljPackage.COPY_TABLE_TYPE__ON_ERROR_CONTINUE:
779                 setOnErrorContinue((OnErrorContinueType2)newValue);
780                 return;
781             case OljPackage.COPY_TABLE_TYPE__SET_CURSOR_NAME:
782                 setSetCursorName((SetCursorNameType2)newValue);
783                 return;
784             case OljPackage.COPY_TABLE_TYPE__SET_FETCH_SIZE:
785                 setSetFetchSize((SetFetchSizeType2)newValue);
786                 return;
787             case OljPackage.COPY_TABLE_TYPE__SOURCE_TABLE_NAME:
788                 setSourceTableName((String JavaDoc)newValue);
789                 return;
790             case OljPackage.COPY_TABLE_TYPE__TARGET_TABLE_NAME:
791                 setTargetTableName((String JavaDoc)newValue);
792                 return;
793         }
794         eDynamicSet(eFeature, newValue);
795     }
796
797     /**
798      * <!-- begin-user-doc -->
799      * <!-- end-user-doc -->
800      * @generated
801      */

802     public void eUnset(EStructuralFeature eFeature) {
803         switch (eDerivedStructuralFeatureID(eFeature)) {
804             case OljPackage.COPY_TABLE_TYPE__JDBC_PARAMETERS:
805                 setJdbcParameters((JdbcParametersType)null);
806                 return;
807             case OljPackage.COPY_TABLE_TYPE__COMMIT_COUNT:
808                 setCommitCount(COMMIT_COUNT_EDEFAULT);
809                 return;
810             case OljPackage.COPY_TABLE_TYPE__LOG_MODE:
811                 unsetLogMode();
812                 return;
813             case OljPackage.COPY_TABLE_TYPE__NAME:
814                 setName(NAME_EDEFAULT);
815                 return;
816             case OljPackage.COPY_TABLE_TYPE__OBJECT_ID_INCREMENT:
817                 setObjectIDIncrement(OBJECT_ID_INCREMENT_EDEFAULT);
818                 return;
819             case OljPackage.COPY_TABLE_TYPE__OID_LOGIC:
820                 unsetOidLogic();
821                 return;
822             case OljPackage.COPY_TABLE_TYPE__ON_ERROR_CONTINUE:
823                 unsetOnErrorContinue();
824                 return;
825             case OljPackage.COPY_TABLE_TYPE__SET_CURSOR_NAME:
826                 unsetSetCursorName();
827                 return;
828             case OljPackage.COPY_TABLE_TYPE__SET_FETCH_SIZE:
829                 unsetSetFetchSize();
830                 return;
831             case OljPackage.COPY_TABLE_TYPE__SOURCE_TABLE_NAME:
832                 setSourceTableName(SOURCE_TABLE_NAME_EDEFAULT);
833                 return;
834             case OljPackage.COPY_TABLE_TYPE__TARGET_TABLE_NAME:
835                 setTargetTableName(TARGET_TABLE_NAME_EDEFAULT);
836                 return;
837         }
838         eDynamicUnset(eFeature);
839     }
840
841     /**
842      * <!-- begin-user-doc -->
843      * <!-- end-user-doc -->
844      * @generated
845      */

846     public boolean eIsSet(EStructuralFeature eFeature) {
847         switch (eDerivedStructuralFeatureID(eFeature)) {
848             case OljPackage.COPY_TABLE_TYPE__JDBC_PARAMETERS:
849                 return jdbcParameters != null;
850             case OljPackage.COPY_TABLE_TYPE__COMMIT_COUNT:
851                 return COMMIT_COUNT_EDEFAULT == null ? commitCount != null : !COMMIT_COUNT_EDEFAULT.equals(commitCount);
852             case OljPackage.COPY_TABLE_TYPE__LOG_MODE:
853                 return isSetLogMode();
854             case OljPackage.COPY_TABLE_TYPE__NAME:
855                 return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
856             case OljPackage.COPY_TABLE_TYPE__OBJECT_ID_INCREMENT:
857                 return OBJECT_ID_INCREMENT_EDEFAULT == null ? objectIDIncrement != null : !OBJECT_ID_INCREMENT_EDEFAULT.equals(objectIDIncrement);
858             case OljPackage.COPY_TABLE_TYPE__OID_LOGIC:
859                 return isSetOidLogic();
860             case OljPackage.COPY_TABLE_TYPE__ON_ERROR_CONTINUE:
861                 return isSetOnErrorContinue();
862             case OljPackage.COPY_TABLE_TYPE__SET_CURSOR_NAME:
863                 return isSetSetCursorName();
864             case OljPackage.COPY_TABLE_TYPE__SET_FETCH_SIZE:
865                 return isSetSetFetchSize();
866             case OljPackage.COPY_TABLE_TYPE__SOURCE_TABLE_NAME:
867                 return SOURCE_TABLE_NAME_EDEFAULT == null ? sourceTableName != null : !SOURCE_TABLE_NAME_EDEFAULT.equals(sourceTableName);
868             case OljPackage.COPY_TABLE_TYPE__TARGET_TABLE_NAME:
869                 return TARGET_TABLE_NAME_EDEFAULT == null ? targetTableName != null : !TARGET_TABLE_NAME_EDEFAULT.equals(targetTableName);
870         }
871         return eDynamicIsSet(eFeature);
872     }
873
874     /**
875      * <!-- begin-user-doc -->
876      * <!-- end-user-doc -->
877      * @generated
878      */

879     public String JavaDoc toString() {
880         if (eIsProxy()) return super.toString();
881
882         StringBuffer JavaDoc result = new StringBuffer JavaDoc(super.toString());
883         result.append(" (commitCount: ");
884         result.append(commitCount);
885         result.append(", logMode: ");
886         if (logModeESet) result.append(logMode); else result.append("<unset>");
887         result.append(", name: ");
888         result.append(name);
889         result.append(", objectIDIncrement: ");
890         result.append(objectIDIncrement);
891         result.append(", oidLogic: ");
892         if (oidLogicESet) result.append(oidLogic); else result.append("<unset>");
893         result.append(", onErrorContinue: ");
894         if (onErrorContinueESet) result.append(onErrorContinue); else result.append("<unset>");
895         result.append(", setCursorName: ");
896         if (setCursorNameESet) result.append(setCursorName); else result.append("<unset>");
897         result.append(", setFetchSize: ");
898         if (setFetchSizeESet) result.append(setFetchSize); else result.append("<unset>");
899         result.append(", sourceTableName: ");
900         result.append(sourceTableName);
901         result.append(", targetTableName: ");
902         result.append(targetTableName);
903         result.append(')');
904         return result.toString();
905     }
906
907 } //CopyTableTypeImpl
908
Popular Tags