+++ /dev/null
-/*
- * Copyright (C) 2015 Roland Haeder
- *
- * This program 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.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jcore.manager.database;
-
-import java.io.IOException;
-import java.lang.reflect.InvocationTargetException;
-import org.mxchange.jcore.manager.Manageable;
-
-/**
- * An interface for managers deligating calls to a database frontend
- * @author Roland Haeder
- */
-public interface ManageableDatabase extends Manageable {
-
- /**
- * Getter for size
- *
- * @return size of contact "book"
- * @throws java.io.IOException If an IO error occurs
- */
- public int size () throws IOException;
-
- /**
- * Getter for column name at given index.
- *
- * @param columnIndex Column index
- * @return Database column name
- */
- public String getColumnName (final int columnIndex);
-
- /**
- * Getter for translated column name at given index.
- *
- * @param columnIndex Column index
- * @return Human-readable column name
- */
- public String getTranslatedColumnName (int columnIndex);
-
- /**
- * Somewhat "getter" for value from given row and column index
- *
- * @param rowIndex Row index
- * @param columnIndex Column index
- * @return Value from given row/column
- * @throws java.lang.NoSuchMethodException If a non-existing method should be invoked
- * @throws java.lang.IllegalAccessException If the method cannot be accessed
- * @throws java.lang.reflect.InvocationTargetException Something other happened?
- */
- public Object getValueFromRowColumn (final int rowIndex, final int columnIndex) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException;
-
- /**
- * Getter for column count
- *
- * @return Column count
- */
- public int getColumnCount ();
-}