/* This file is part of VoltDB. * Copyright (C) 2008-2010 VoltDB Inc. * * VoltDB is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * VoltDB 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with VoltDB. If not, see <http://www.gnu.org/licenses/>. */ /* WARNING: THIS FILE IS AUTO-GENERATED DO NOT MODIFY THIS SOURCE ALL CHANGES MUST BE MADE IN THE CATALOG GENERATOR */ package org.voltdb.catalog; /** * Export connector (ELT) */ public class Connector extends CatalogType { String m_loaderclass = new String(); boolean m_enabled; CatalogMap<UserRef> m_authUsers; CatalogMap<GroupRef> m_authGroups; CatalogMap<ConnectorTableInfo> m_tableInfo; void setBaseValues(Catalog catalog, CatalogType parent, String path, String name) { super.setBaseValues(catalog, parent, path, name); m_fields.put("loaderclass", m_loaderclass); m_fields.put("enabled", m_enabled); m_authUsers = new CatalogMap<UserRef>(catalog, this, path + "/" + "authUsers", UserRef.class); m_childCollections.put("authUsers", m_authUsers); m_authGroups = new CatalogMap<GroupRef>(catalog, this, path + "/" + "authGroups", GroupRef.class); m_childCollections.put("authGroups", m_authGroups); m_tableInfo = new CatalogMap<ConnectorTableInfo>(catalog, this, path + "/" + "tableInfo", ConnectorTableInfo.class); m_childCollections.put("tableInfo", m_tableInfo); } public void update() { m_loaderclass = (String) m_fields.get("loaderclass"); m_enabled = (Boolean) m_fields.get("enabled"); } /** GETTER: The class name of the connector */ public String getLoaderclass() { return m_loaderclass; } /** GETTER: Is the connector enabled */ public boolean getEnabled() { return m_enabled; } /** GETTER: Users authorized to invoke this procedure */ public CatalogMap<UserRef> getAuthusers() { return m_authUsers; } /** GETTER: Groups authorized to invoke this procedure */ public CatalogMap<GroupRef> getAuthgroups() { return m_authGroups; } /** GETTER: Per table configuration */ public CatalogMap<ConnectorTableInfo> getTableinfo() { return m_tableInfo; } /** SETTER: The class name of the connector */ public void setLoaderclass(String value) { m_loaderclass = value; m_fields.put("loaderclass", value); } /** SETTER: Is the connector enabled */ public void setEnabled(boolean value) { m_enabled = value; m_fields.put("enabled", value); } }