Cleaned up code
This commit is contained in:
parent
3cb1f2d151
commit
d970568158
@ -31,7 +31,7 @@ public class DeletionQuery extends AbstractQuery {
|
||||
if (i == 0) whereString.append("WHERE");
|
||||
else whereString.append("AND");
|
||||
|
||||
whereString.append("`"+whereList.keySet().toArray()[i]+"`").append("=").append("?");
|
||||
whereString.append("`" + whereList.keySet().toArray()[i] + "`").append("=").append("?");
|
||||
}
|
||||
|
||||
return whereString.toString();
|
||||
@ -39,6 +39,7 @@ public class DeletionQuery extends AbstractQuery {
|
||||
|
||||
/**
|
||||
* Gets the parameters
|
||||
*
|
||||
* @return the parameters
|
||||
*/
|
||||
public Object[] getParameters() {
|
||||
|
@ -59,6 +59,7 @@ public class InsertQuery extends AbstractQuery {
|
||||
|
||||
/**
|
||||
* Gets the parameters
|
||||
*
|
||||
* @return the parameters
|
||||
*/
|
||||
public Object[] getParameters() {
|
||||
|
@ -2,7 +2,7 @@ package de.gnmyt.sqltoolkit.querybuilder;
|
||||
|
||||
public class StatementBuilder {
|
||||
|
||||
private StringBuilder query = new StringBuilder();
|
||||
private final StringBuilder query = new StringBuilder();
|
||||
|
||||
/**
|
||||
* Basic constructor of the {@link StatementBuilder} with a prefilled text
|
||||
|
Reference in New Issue
Block a user