public boolean isDummy() {
    if (typ == Type.DATABASE) {
      return database.getName().equals(SemanticAnalyzer.DUMMY_DATABASE);
    }
    if (typ == Type.TABLE) {
      return t.isDummyTable();
    }
    return false;
  }
Get the function associated with the entity.
ql/src/java/org/apache/hadoop/hive/ql/hooks/Entity.java