Class Database
- java.lang.Object
-
- me.scolastico.mysql.manager.dataholders.Database
-
public class Database extends Object
-
-
Constructor Summary
Constructors Constructor Description Database(MysqlManager mysqlManager)Database(MysqlManager mysqlManager, String databaseName, Fields fields)
-
Method Summary
Modifier and Type Method Description voiddelete()static voiddeleteTable(MysqlManager manager)static voidgenerateTable(MysqlManager manager)static DatabasegetById(Long id, MysqlManager mysqlManager)StringgetDatabaseName()FieldsgetFields()LonggetId()voidsave()static Database[]searchByDatabaseName(String databaseName, MysqlManager mysqlManager)static Database[]searchByFields(Fields fields, MysqlManager mysqlManager)voidsetDatabaseName(String databaseName)voidsetFields(Fields fields)voidsetId(Long id)voidupdate()
-
-
-
Constructor Detail
-
Database
public Database(MysqlManager mysqlManager)
-
Database
public Database(MysqlManager mysqlManager, String databaseName, Fields fields)
-
-
Method Detail
-
generateTable
public static void generateTable(MysqlManager manager) throws SQLException, NotATableException, NoSuchMethodException, NotSavedEntryException, NoFieldsException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchFieldException, NoDataException
-
getById
public static Database getById(Long id, MysqlManager mysqlManager) throws SQLException, NotATableException, IllegalAccessException, NoSuchFieldException, InvocationTargetException, NoSuchMethodException
-
searchByDatabaseName
public static Database[] searchByDatabaseName(String databaseName, MysqlManager mysqlManager) throws SQLException, NotATableException, NoSuchMethodException, NoSuchFieldException, IllegalAccessException, InvocationTargetException, InstantiationException
-
searchByFields
public static Database[] searchByFields(Fields fields, MysqlManager mysqlManager) throws SQLException, NotATableException, NoSuchMethodException, NoSuchFieldException, IllegalAccessException, InvocationTargetException, InstantiationException
-
deleteTable
public static void deleteTable(MysqlManager manager) throws SQLException, NotATableException, NoSuchMethodException, NoSuchFieldException, InstantiationException, IllegalAccessException, InvocationTargetException, NotSavedEntryException
-
delete
public void delete() throws SQLException, NotATableException, NotSavedEntryException
-
update
public void update() throws NotSavedEntryException, SQLException, NoSuchFieldException, IllegalAccessException, NoFieldsException, NotATableException, NoSuchMethodException, InvocationTargetException, NoDataException
-
save
public void save() throws SQLException, NotATableException, NoFieldsException, IllegalAccessException, NoSuchMethodException, InvocationTargetException, NoDataException
-
getId
public Long getId()
-
setId
public void setId(Long id)
-
getDatabaseName
public String getDatabaseName()
-
setDatabaseName
public void setDatabaseName(String databaseName)
-
getFields
public Fields getFields()
-
setFields
public void setFields(Fields fields)
-
-