org.voltdb.catalog.AuthProgram Maven / Gradle / Ivy
/* This file is part of VoltDB.
* Copyright (C) 2008-2018 VoltDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with VoltDB. If not, see .
*/
/* WARNING: THIS FILE IS AUTO-GENERATED
DO NOT MODIFY THIS SOURCE
ALL CHANGES MUST BE MADE IN THE CATALOG GENERATOR */
package org.voltdb.catalog;
/**
* The name of a program with access to a specific procedure. This is effectively a weak reference to a 'program'
*/
public class AuthProgram extends CatalogType {
@Override
void initChildMaps() {
}
public String[] getFields() {
return new String[] {
};
};
String[] getChildCollections() {
return new String[] {
};
};
public Object getField(String field) {
switch (field) {
default:
throw new CatalogException("Unknown field");
}
}
@Override
void set(String field, String value) {
if ((field == null) || (value == null)) {
throw new CatalogException("Null value where it shouldn't be.");
}
switch (field) {
default:
throw new CatalogException("Unknown field");
}
}
@Override
void copyFields(CatalogType obj) {
}
public boolean equals(Object obj) {
// this isn't really the convention for null handling
if ((obj == null) || (obj.getClass().equals(getClass()) == false))
return false;
// Do the identity check
if (obj == this)
return true;
// this is safe because of the class check
// it is also known that the childCollections var will be the same
// from the class check
AuthProgram other = (AuthProgram) obj;
// are the fields / children the same? (deep compare)
return true;
}
}