🛠️ Code cleanup & added many new features #1
@ -65,7 +65,7 @@ public class DataBaseSelection {
|
|||||||
* @return this class
|
* @return this class
|
||||||
*/
|
*/
|
||||||
public DataBaseSelection from(String tableName) {
|
public DataBaseSelection from(String tableName) {
|
||||||
this.tableName = connection.getTablePrefix().isEmpty() ? tableName : connection.getTablePrefix() + tableName;
|
this.tableName = tableName;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,9 +76,7 @@ public class UpdateManager {
|
|||||||
messageBuilder.append((added.get()) ? ", " : "").append(v);
|
messageBuilder.append((added.get()) ? ", " : "").append(v);
|
||||||
added.set(true);
|
added.set(true);
|
||||||
});
|
});
|
||||||
StackTraceElement[] st = Thread.currentThread().getStackTrace();
|
LOG.debug("Statement: " + messageBuilder);
|
||||||
StackTraceElement stack = st[st.length - 1];
|
|
||||||
LOG.debug("DEBUG <" + stack.getFileName() + ":" + stack.getLineNumber() + "> Statement: " + messageBuilder);
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -109,7 +107,7 @@ public class UpdateManager {
|
|||||||
* @return this class
|
* @return this class
|
||||||
*/
|
*/
|
||||||
public UpdateManager toTable(String tableName) {
|
public UpdateManager toTable(String tableName) {
|
||||||
this.tableName = connection.getTablePrefix().isEmpty() ? tableName : connection.getTablePrefix() + tableName;
|
this.tableName = tableName;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user