PageRenderTime 69ms CodeModel.GetById 9ms app.highlight 54ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/release-0.1-rc2/hive/external/ql/src/java/org/apache/hadoop/hive/ql/plan/DDLWork.java

#
Java | 857 lines | 435 code | 128 blank | 294 comment | 0 complexity | 80dde3795a1933c9bcf6f62e02fca555 MD5 | raw file
  1/**
  2 * Licensed to the Apache Software Foundation (ASF) under one
  3 * or more contributor license agreements.  See the NOTICE file
  4 * distributed with this work for additional information
  5 * regarding copyright ownership.  The ASF licenses this file
  6 * to you under the Apache License, Version 2.0 (the
  7 * "License"); you may not use this file except in compliance
  8 * with the License.  You may obtain a copy of the License at
  9 *
 10 *     http://www.apache.org/licenses/LICENSE-2.0
 11 *
 12 * Unless required by applicable law or agreed to in writing, software
 13 * distributed under the License is distributed on an "AS IS" BASIS,
 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 15 * See the License for the specific language governing permissions and
 16 * limitations under the License.
 17 */
 18
 19package org.apache.hadoop.hive.ql.plan;
 20
 21import java.io.Serializable;
 22import java.util.HashSet;
 23
 24import org.apache.hadoop.hive.ql.hooks.ReadEntity;
 25import org.apache.hadoop.hive.ql.hooks.WriteEntity;
 26
 27/**
 28 * DDLWork.
 29 *
 30 */
 31public class DDLWork implements Serializable {
 32  private static final long serialVersionUID = 1L;
 33  private CreateIndexDesc createIndexDesc;
 34  private AlterIndexDesc alterIndexDesc;
 35  private DropIndexDesc dropIdxDesc;
 36  private CreateDatabaseDesc createDatabaseDesc;
 37  private SwitchDatabaseDesc switchDatabaseDesc;
 38  private DropDatabaseDesc dropDatabaseDesc;
 39  private CreateTableDesc createTblDesc;
 40  private CreateTableLikeDesc createTblLikeDesc;
 41  private CreateViewDesc createVwDesc;
 42  private DropTableDesc dropTblDesc;
 43  private AlterTableDesc alterTblDesc;
 44  private AlterIndexDesc alterIdxDesc;
 45  private ShowDatabasesDesc showDatabasesDesc;
 46  private ShowTablesDesc showTblsDesc;
 47  private LockTableDesc lockTblDesc;
 48  private UnlockTableDesc unlockTblDesc;
 49  private ShowFunctionsDesc showFuncsDesc;
 50  private ShowLocksDesc showLocksDesc;
 51  private DescFunctionDesc descFunctionDesc;
 52  private ShowPartitionsDesc showPartsDesc;
 53  private DescTableDesc descTblDesc;
 54  private AddPartitionDesc addPartitionDesc;
 55  private AlterTableSimpleDesc alterTblSimpleDesc;
 56  private MsckDesc msckDesc;
 57  private ShowTableStatusDesc showTblStatusDesc;
 58  private ShowIndexesDesc showIndexesDesc;
 59  private DescDatabaseDesc descDbDesc;
 60  private AlterDatabaseDesc alterDbDesc;
 61
 62  private RoleDDLDesc roleDDLDesc;
 63  private GrantDesc grantDesc;
 64  private ShowGrantDesc showGrantDesc;
 65  private RevokeDesc revokeDesc;
 66  private GrantRevokeRoleDDL grantRevokeRoleDDL;
 67
 68  /**
 69   * ReadEntitites that are passed to the hooks.
 70   */
 71  protected HashSet<ReadEntity> inputs;
 72  /**
 73   * List of WriteEntities that are passed to the hooks.
 74   */
 75  protected HashSet<WriteEntity> outputs;
 76
 77  public DDLWork() {
 78  }
 79
 80  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs) {
 81    this.inputs = inputs;
 82    this.outputs = outputs;
 83  }
 84
 85  public DDLWork(CreateIndexDesc createIndex) {
 86    this.createIndexDesc = createIndex;
 87  }
 88
 89  public DDLWork(AlterIndexDesc alterIndex) {
 90    this.alterIndexDesc = alterIndex;
 91  }
 92
 93  /**
 94   * @param createDatabaseDesc
 95   *          Create Database descriptor
 96   */
 97  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
 98      CreateDatabaseDesc createDatabaseDesc) {
 99    this(inputs, outputs);
100    this.createDatabaseDesc = createDatabaseDesc;
101  }
102
103  /**
104   * @param dropDatabaseDesc
105   *          Drop Database descriptor
106   */
107  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
108      DescDatabaseDesc descDatabaseDesc) {
109    this(inputs, outputs);
110    this.descDbDesc = descDatabaseDesc;
111  }
112
113  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
114      AlterDatabaseDesc alterDbDesc) {
115    this(inputs, outputs);
116    this.alterDbDesc = alterDbDesc;
117  }
118
119  public DescDatabaseDesc getDescDatabaseDesc() {
120    return descDbDesc;
121  }
122
123  /**
124   * @param dropDatabaseDesc
125   *          Drop Database descriptor
126   */
127  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
128      DropDatabaseDesc dropDatabaseDesc) {
129    this(inputs, outputs);
130    this.dropDatabaseDesc = dropDatabaseDesc;
131  }
132
133  /**
134   * @param switchDatabaseDesc
135   *          Switch Database descriptor
136   */
137  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
138      SwitchDatabaseDesc switchDatabaseDesc) {
139    this(inputs, outputs);
140    this.switchDatabaseDesc = switchDatabaseDesc;
141  }
142
143  /**
144   * @param alterTblDesc
145   *          alter table descriptor
146   */
147  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
148      AlterTableDesc alterTblDesc) {
149    this(inputs, outputs);
150    this.alterTblDesc = alterTblDesc;
151  }
152
153  /**
154   * @param alterIdxDesc
155   *          alter index descriptor
156   */
157  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
158      AlterIndexDesc alterIdxDesc) {
159    this(inputs, outputs);
160    this.alterIdxDesc = alterIdxDesc;
161  }
162
163  /**
164   * @param createTblDesc
165   *          create table descriptor
166   */
167  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
168      CreateTableDesc createTblDesc) {
169    this(inputs, outputs);
170
171    this.createTblDesc = createTblDesc;
172  }
173
174  /**
175   * @param createTblLikeDesc
176   *          create table like descriptor
177   */
178  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
179      CreateTableLikeDesc createTblLikeDesc) {
180    this(inputs, outputs);
181
182    this.createTblLikeDesc = createTblLikeDesc;
183  }
184
185  /**
186   * @param createVwDesc
187   *          create view descriptor
188   */
189  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
190      CreateViewDesc createVwDesc) {
191    this(inputs, outputs);
192
193    this.createVwDesc = createVwDesc;
194  }
195
196  /**
197   * @param dropTblDesc
198   *          drop table descriptor
199   */
200  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
201      DropTableDesc dropTblDesc) {
202    this(inputs, outputs);
203
204    this.dropTblDesc = dropTblDesc;
205  }
206
207  /**
208   * @param descTblDesc
209   */
210  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
211      DescTableDesc descTblDesc) {
212    this(inputs, outputs);
213
214    this.descTblDesc = descTblDesc;
215  }
216
217  /**
218   * @param showDatabasesDesc
219   */
220  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
221      ShowDatabasesDesc showDatabasesDesc) {
222    this(inputs, outputs);
223
224    this.showDatabasesDesc = showDatabasesDesc;
225  }
226
227  /**
228   * @param showTblsDesc
229   */
230  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
231      ShowTablesDesc showTblsDesc) {
232    this(inputs, outputs);
233
234    this.showTblsDesc = showTblsDesc;
235  }
236
237  /**
238   * @param lockTblDesc
239   */
240  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
241      LockTableDesc lockTblDesc) {
242    this(inputs, outputs);
243
244    this.lockTblDesc = lockTblDesc;
245  }
246
247  /**
248   * @param unlockTblDesc
249   */
250  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
251      UnlockTableDesc unlockTblDesc) {
252    this(inputs, outputs);
253
254    this.unlockTblDesc = unlockTblDesc;
255  }
256
257  /**
258   * @param showFuncsDesc
259   */
260  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
261      ShowFunctionsDesc showFuncsDesc) {
262    this(inputs, outputs);
263
264    this.showFuncsDesc = showFuncsDesc;
265  }
266
267  /**
268   * @param showLocksDesc
269   */
270  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
271      ShowLocksDesc showLocksDesc) {
272    this(inputs, outputs);
273
274    this.showLocksDesc = showLocksDesc;
275  }
276
277  /**
278   * @param descFuncDesc
279   */
280  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
281      DescFunctionDesc descFuncDesc) {
282    this(inputs, outputs);
283
284    descFunctionDesc = descFuncDesc;
285  }
286
287  /**
288   * @param showPartsDesc
289   */
290  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
291      ShowPartitionsDesc showPartsDesc) {
292    this(inputs, outputs);
293
294    this.showPartsDesc = showPartsDesc;
295  }
296
297  /**
298   * @param addPartitionDesc
299   *          information about the partitions we want to add.
300   */
301  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
302      AddPartitionDesc addPartitionDesc) {
303    this(inputs, outputs);
304
305    this.addPartitionDesc = addPartitionDesc;
306  }
307
308  /**
309   * @param touchDesc
310   *          information about the table/partitions that we want to touch
311   */
312  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
313      AlterTableSimpleDesc simpleDesc) {
314    this(inputs, outputs);
315
316    this.alterTblSimpleDesc = simpleDesc;
317  }
318
319  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
320      MsckDesc checkDesc) {
321    this(inputs, outputs);
322
323    msckDesc = checkDesc;
324  }
325
326  /**
327   * @param showTblStatusDesc
328   *          show table status descriptor
329   */
330  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
331      ShowTableStatusDesc showTblStatusDesc) {
332    this(inputs, outputs);
333
334    this.showTblStatusDesc = showTblStatusDesc;
335  }
336
337  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
338      DropIndexDesc dropIndexDesc) {
339    this(inputs, outputs);
340    this.dropIdxDesc = dropIndexDesc;
341  }
342
343  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
344      RoleDDLDesc roleDDLDesc) {
345    this(inputs, outputs);
346    this.roleDDLDesc = roleDDLDesc;
347  }
348
349  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
350      GrantDesc grantDesc) {
351    this(inputs, outputs);
352    this.grantDesc = grantDesc;
353  }
354
355  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
356      ShowGrantDesc showGrant) {
357    this(inputs, outputs);
358    this.showGrantDesc = showGrant;
359  }
360
361  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
362      RevokeDesc revokeDesc) {
363    this(inputs, outputs);
364    this.revokeDesc = revokeDesc;
365  }
366
367  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
368      GrantRevokeRoleDDL grantRevokeRoleDDL) {
369    this(inputs, outputs);
370    this.grantRevokeRoleDDL = grantRevokeRoleDDL;
371  }
372
373  public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
374      ShowIndexesDesc showIndexesDesc) {
375    this(inputs, outputs);
376    this.showIndexesDesc = showIndexesDesc;
377  }
378
379  /**
380   * @return Create Database descriptor
381   */
382  public CreateDatabaseDesc getCreateDatabaseDesc() {
383    return createDatabaseDesc;
384  }
385
386  /**
387   * Set Create Database descriptor
388   * @param createDatabaseDesc
389   */
390  public void setCreateDatabaseDesc(CreateDatabaseDesc createDatabaseDesc) {
391    this.createDatabaseDesc = createDatabaseDesc;
392  }
393
394  /**
395   * @return Drop Database descriptor
396   */
397  public DropDatabaseDesc getDropDatabaseDesc() {
398    return dropDatabaseDesc;
399  }
400
401  /**
402   * Set Drop Database descriptor
403   * @param dropDatabaseDesc
404   */
405  public void setDropDatabaseDesc(DropDatabaseDesc dropDatabaseDesc) {
406    this.dropDatabaseDesc = dropDatabaseDesc;
407  }
408
409  /**
410   * @return Switch Database descriptor
411   */
412  public SwitchDatabaseDesc getSwitchDatabaseDesc() {
413    return switchDatabaseDesc;
414  }
415
416  /**
417   * Set Switch Database descriptor
418   * @param switchDatabaseDesc
419   */
420  public void setSwitchDatabaseDesc(SwitchDatabaseDesc switchDatabaseDesc) {
421    this.switchDatabaseDesc = switchDatabaseDesc;
422  }
423
424  /**
425   * @return the createTblDesc
426   */
427  @Explain(displayName = "Create Table Operator")
428  public CreateTableDesc getCreateTblDesc() {
429    return createTblDesc;
430  }
431
432  /**
433   * @param createTblDesc
434   *          the createTblDesc to set
435   */
436  public void setCreateTblDesc(CreateTableDesc createTblDesc) {
437    this.createTblDesc = createTblDesc;
438  }
439
440  /**
441   * @return the createIndexDesc
442   */
443  public CreateIndexDesc getCreateIndexDesc() {
444    return createIndexDesc;
445  }
446
447  /**
448   * @param createIndexDesc
449   *          the createIndexDesc to set
450   */
451  public void setCreateIndexDesc(CreateIndexDesc createIndexDesc) {
452    this.createIndexDesc = createIndexDesc;
453  }
454
455  /**
456   * @return the alterIndexDesc
457   */
458  public AlterIndexDesc getAlterIndexDesc() {
459    return alterIndexDesc;
460  }
461
462  /**
463   * @param alterTblDesc
464   *          the alterTblDesc to set
465   */
466  public void setAlterIndexDesc(AlterIndexDesc alterIndexDesc) {
467    this.alterIndexDesc = alterIndexDesc;
468  }
469
470  /**
471   * @return the createTblDesc
472   */
473  @Explain(displayName = "Create Table Operator")
474  public CreateTableLikeDesc getCreateTblLikeDesc() {
475    return createTblLikeDesc;
476  }
477
478  /**
479   * @param createTblLikeDesc
480   *          the createTblDesc to set
481   */
482  public void setCreateTblLikeDesc(CreateTableLikeDesc createTblLikeDesc) {
483    this.createTblLikeDesc = createTblLikeDesc;
484  }
485
486  /**
487   * @return the createTblDesc
488   */
489  @Explain(displayName = "Create View Operator")
490  public CreateViewDesc getCreateViewDesc() {
491    return createVwDesc;
492  }
493
494  /**
495   * @param createVwDesc
496   *          the createViewDesc to set
497   */
498  public void setCreateViewDesc(CreateViewDesc createVwDesc) {
499    this.createVwDesc = createVwDesc;
500  }
501
502  /**
503   * @return the dropTblDesc
504   */
505  @Explain(displayName = "Drop Table Operator")
506  public DropTableDesc getDropTblDesc() {
507    return dropTblDesc;
508  }
509
510  /**
511   * @param dropTblDesc
512   *          the dropTblDesc to set
513   */
514  public void setDropTblDesc(DropTableDesc dropTblDesc) {
515    this.dropTblDesc = dropTblDesc;
516  }
517
518  /**
519   * @return the alterTblDesc
520   */
521  @Explain(displayName = "Alter Table Operator")
522  public AlterTableDesc getAlterTblDesc() {
523    return alterTblDesc;
524  }
525
526  /**
527   * @param alterTblDesc
528   *          the alterTblDesc to set
529   */
530  public void setAlterTblDesc(AlterTableDesc alterTblDesc) {
531    this.alterTblDesc = alterTblDesc;
532  }
533
534  /**
535   * @return the showDatabasesDesc
536   */
537  @Explain(displayName = "Show Databases Operator")
538  public ShowDatabasesDesc getShowDatabasesDesc() {
539    return showDatabasesDesc;
540  }
541
542  /**
543   * @param showDatabasesDesc
544   *          the showDatabasesDesc to set
545   */
546  public void setShowDatabasesDesc(ShowDatabasesDesc showDatabasesDesc) {
547    this.showDatabasesDesc = showDatabasesDesc;
548  }
549
550  /**
551   * @return the showTblsDesc
552   */
553  @Explain(displayName = "Show Table Operator")
554  public ShowTablesDesc getShowTblsDesc() {
555    return showTblsDesc;
556  }
557
558  /**
559   * @param showTblsDesc
560   *          the showTblsDesc to set
561   */
562  public void setShowTblsDesc(ShowTablesDesc showTblsDesc) {
563    this.showTblsDesc = showTblsDesc;
564  }
565
566  /**
567   * @return the showFuncsDesc
568   */
569  @Explain(displayName = "Show Function Operator")
570  public ShowFunctionsDesc getShowFuncsDesc() {
571    return showFuncsDesc;
572  }
573
574  /**
575   * @return the showLocksDesc
576   */
577  @Explain(displayName = "Show Lock Operator")
578  public ShowLocksDesc getShowLocksDesc() {
579    return showLocksDesc;
580  }
581
582  /**
583   * @return the lockTblDesc
584   */
585  @Explain(displayName = "Lock Table Operator")
586  public LockTableDesc getLockTblDesc() {
587    return lockTblDesc;
588  }
589
590  /**
591   * @return the unlockTblDesc
592   */
593  @Explain(displayName = "Unlock Table Operator")
594  public UnlockTableDesc getUnlockTblDesc() {
595    return unlockTblDesc;
596  }
597
598  /**
599   * @return the descFuncDesc
600   */
601  @Explain(displayName = "Show Function Operator")
602  public DescFunctionDesc getDescFunctionDesc() {
603    return descFunctionDesc;
604  }
605
606  /**
607   * @param showFuncsDesc
608   *          the showFuncsDesc to set
609   */
610  public void setShowFuncsDesc(ShowFunctionsDesc showFuncsDesc) {
611    this.showFuncsDesc = showFuncsDesc;
612  }
613
614  /**
615   * @param showLocksDesc
616   *          the showLocksDesc to set
617   */
618  public void setShowLocksDesc(ShowLocksDesc showLocksDesc) {
619    this.showLocksDesc = showLocksDesc;
620  }
621
622  /**
623   * @param lockTblDesc
624   *          the lockTblDesc to set
625   */
626  public void setLockTblDesc(LockTableDesc lockTblDesc) {
627    this.lockTblDesc = lockTblDesc;
628  }
629
630  /**
631   * @param unlockTblDesc
632   *          the unlockTblDesc to set
633   */
634  public void setUnlockTblDesc(UnlockTableDesc unlockTblDesc) {
635    this.unlockTblDesc = unlockTblDesc;
636  }
637
638  /**
639   * @param descFuncDesc
640   *          the showFuncsDesc to set
641   */
642  public void setDescFuncDesc(DescFunctionDesc descFuncDesc) {
643    descFunctionDesc = descFuncDesc;
644  }
645
646  /**
647   * @return the showPartsDesc
648   */
649  @Explain(displayName = "Show Partitions Operator")
650  public ShowPartitionsDesc getShowPartsDesc() {
651    return showPartsDesc;
652  }
653
654  /**
655   * @param showPartsDesc
656   *          the showPartsDesc to set
657   */
658  public void setShowPartsDesc(ShowPartitionsDesc showPartsDesc) {
659    this.showPartsDesc = showPartsDesc;
660  }
661
662  /**
663   * @return the showIndexesDesc
664   */
665  @Explain(displayName = "Show Index Operator")
666  public ShowIndexesDesc getShowIndexesDesc() {
667    return showIndexesDesc;
668  }
669
670  public void setShowIndexesDesc(ShowIndexesDesc showIndexesDesc) {
671    this.showIndexesDesc = showIndexesDesc;
672  }
673
674  /**
675   * @return the descTblDesc
676   */
677  @Explain(displayName = "Describe Table Operator")
678  public DescTableDesc getDescTblDesc() {
679    return descTblDesc;
680  }
681
682  /**
683   * @param descTblDesc
684   *          the descTblDesc to set
685   */
686  public void setDescTblDesc(DescTableDesc descTblDesc) {
687    this.descTblDesc = descTblDesc;
688  }
689
690  /**
691   * @return information about the partitions we want to add.
692   */
693  public AddPartitionDesc getAddPartitionDesc() {
694    return addPartitionDesc;
695  }
696
697  /**
698   * @param addPartitionDesc
699   *          information about the partitions we want to add.
700   */
701  public void setAddPartitionDesc(AddPartitionDesc addPartitionDesc) {
702    this.addPartitionDesc = addPartitionDesc;
703  }
704
705  /**
706   * @return information about the table/partitions we want to alter.
707   */
708  public AlterTableSimpleDesc getAlterTblSimpleDesc() {
709    return alterTblSimpleDesc;
710  }
711
712  /**
713   * @param desc
714   *          information about the table/partitions we want to alter.
715   */
716  public void setAlterTblSimpleDesc(AlterTableSimpleDesc desc) {
717    this.alterTblSimpleDesc = desc;
718  }
719
720  /**
721   * @return Metastore check description
722   */
723  public MsckDesc getMsckDesc() {
724    return msckDesc;
725  }
726
727  /**
728   * @param msckDesc
729   *          metastore check description
730   */
731  public void setMsckDesc(MsckDesc msckDesc) {
732    this.msckDesc = msckDesc;
733  }
734
735  /**
736   * @return show table descriptor
737   */
738  public ShowTableStatusDesc getShowTblStatusDesc() {
739    return showTblStatusDesc;
740  }
741
742  /**
743   * @param showTblStatusDesc
744   *          show table descriptor
745   */
746  public void setShowTblStatusDesc(ShowTableStatusDesc showTblStatusDesc) {
747    this.showTblStatusDesc = showTblStatusDesc;
748  }
749
750  public CreateViewDesc getCreateVwDesc() {
751    return createVwDesc;
752  }
753
754  public void setCreateVwDesc(CreateViewDesc createVwDesc) {
755    this.createVwDesc = createVwDesc;
756  }
757
758  public void setDescFunctionDesc(DescFunctionDesc descFunctionDesc) {
759    this.descFunctionDesc = descFunctionDesc;
760  }
761
762  public HashSet<ReadEntity> getInputs() {
763    return inputs;
764  }
765
766  public HashSet<WriteEntity> getOutputs() {
767    return outputs;
768  }
769
770  public void setInputs(HashSet<ReadEntity> inputs) {
771    this.inputs = inputs;
772  }
773
774  public void setOutputs(HashSet<WriteEntity> outputs) {
775    this.outputs = outputs;
776  }
777
778  public DropIndexDesc getDropIdxDesc() {
779    return dropIdxDesc;
780  }
781
782  public void setDropIdxDesc(DropIndexDesc dropIdxDesc) {
783    this.dropIdxDesc = dropIdxDesc;
784  }
785
786  /**
787   * @return role ddl desc
788   */
789  public RoleDDLDesc getRoleDDLDesc() {
790    return roleDDLDesc;
791  }
792
793  /**
794   * @param roleDDLDesc role ddl desc
795   */
796  public void setRoleDDLDesc(RoleDDLDesc roleDDLDesc) {
797    this.roleDDLDesc = roleDDLDesc;
798  }
799  
800  /**
801   * @return grant desc
802   */
803  public GrantDesc getGrantDesc() {
804    return grantDesc;
805  }
806
807  /**
808   * @param grantDesc grant desc
809   */
810  public void setGrantDesc(GrantDesc grantDesc) {
811    this.grantDesc = grantDesc;
812  }
813  
814  /**
815   * @return show grant desc
816   */
817  public ShowGrantDesc getShowGrantDesc() {
818    return showGrantDesc;
819  }
820
821  /**
822   * @param showGrantDesc
823   */
824  public void setShowGrantDesc(ShowGrantDesc showGrantDesc) {
825    this.showGrantDesc = showGrantDesc;
826  }
827
828  public RevokeDesc getRevokeDesc() {
829    return revokeDesc;
830  }
831
832  public void setRevokeDesc(RevokeDesc revokeDesc) {
833    this.revokeDesc = revokeDesc;
834  }
835  
836  /**
837   * @return
838   */
839  public GrantRevokeRoleDDL getGrantRevokeRoleDDL() {
840    return grantRevokeRoleDDL;
841  }
842
843  /**
844   * @param grantRevokeRoleDDL
845   */
846  public void setGrantRevokeRoleDDL(GrantRevokeRoleDDL grantRevokeRoleDDL) {
847    this.grantRevokeRoleDDL = grantRevokeRoleDDL;
848  }
849  
850  public void setAlterDatabaseDesc(AlterDatabaseDesc alterDbDesc) {
851    this.alterDbDesc = alterDbDesc;
852  }
853
854  public AlterDatabaseDesc getAlterDatabaseDesc() {
855    return this.alterDbDesc;
856  }
857}