PageRenderTime 18ms CodeModel.GetById 14ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Java | 57 lines | 27 code | 9 blank | 21 comment | 0 complexity | 861606b3e5d1d0626bcc5b7e710509b8 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;
22
23/**
24 * DropDatabaseDesc.
25 *
26 */
27@Explain(displayName = "Drop Database")
28public class DropDatabaseDesc extends DDLDesc implements Serializable {
29  private static final long serialVersionUID = 1L;
30
31  String databaseName;
32  boolean ifExists;
33
34  public DropDatabaseDesc(String databaseName, boolean ifExists) {
35    super();
36    this.databaseName = databaseName;
37    this.ifExists = ifExists;
38  }
39
40  @Explain(displayName = "database")
41  public String getDatabaseName() {
42    return databaseName;
43  }
44
45  public void setDatabaseName(String databaseName) {
46    this.databaseName = databaseName;
47  }
48
49  @Explain(displayName = "if exists")
50  public boolean getIfExists() {
51    return ifExists;
52  }
53
54  public void setIfExists(boolean ifExists) {
55    this.ifExists = ifExists;
56  }
57}