Cleaned up code
This commit is contained in:
parent
7c07f7086e
commit
cd3ce709d9
@ -207,6 +207,7 @@ public class MySQLConnection {
|
||||
|
||||
/**
|
||||
* Update something on your server by query
|
||||
*
|
||||
* @param query The query you want to execute
|
||||
* @return this class
|
||||
*/
|
||||
|
@ -25,24 +25,6 @@ public class SQLQuery {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the new statement of the query
|
||||
*
|
||||
* @param statement The new query statement
|
||||
*/
|
||||
public void setStatement(String statement) {
|
||||
this.statement = statement;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the new parameters of the query
|
||||
*
|
||||
* @param parameters The new query parameters
|
||||
*/
|
||||
public void setParameters(Object[] parameters) {
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the current statement of the query
|
||||
*
|
||||
@ -52,6 +34,15 @@ public class SQLQuery {
|
||||
return statement;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the new statement of the query
|
||||
*
|
||||
* @param statement The new query statement
|
||||
*/
|
||||
public void setStatement(String statement) {
|
||||
this.statement = statement;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the current query parameters
|
||||
*
|
||||
@ -61,6 +52,15 @@ public class SQLQuery {
|
||||
return parameters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the new parameters of the query
|
||||
*
|
||||
* @param parameters The new query parameters
|
||||
*/
|
||||
public void setParameters(Object[] parameters) {
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SQLQuery{" +
|
||||
|
Reference in New Issue
Block a user