@@ -67,6 +67,10 @@ public class PlainSelect extends Select {
6767
6868 private boolean isUsingOnly = false ;
6969
70+ private boolean useWithNoLog = false ;
71+
72+ private Table intoTempTable = null ;
73+
7074 @ Deprecated
7175 public boolean isUseBrackets () {
7276 return false ;
@@ -228,6 +232,32 @@ public PlainSelect withUsingOnly(boolean usingOnly) {
228232 return this ;
229233 }
230234
235+ public boolean isUseWithNoLog () {
236+ return useWithNoLog ;
237+ }
238+
239+ public void setUseWithNoLog (boolean useWithNoLog ) {
240+ this .useWithNoLog = useWithNoLog ;
241+ }
242+
243+ public PlainSelect withUseWithNoLog (boolean useWithNoLog ) {
244+ this .setUseWithNoLog (useWithNoLog );
245+ return this ;
246+ }
247+
248+ public Table getIntoTempTable () {
249+ return intoTempTable ;
250+ }
251+
252+ public void setIntoTempTable (Table intoTempTable ) {
253+ this .intoTempTable = intoTempTable ;
254+ }
255+
256+ public PlainSelect withIntoTempTable (Table intoTempTable ) {
257+ this .setIntoTempTable (intoTempTable );
258+ return this ;
259+ }
260+
231261 @ Override
232262 public void accept (SelectVisitor selectVisitor ) {
233263 selectVisitor .visit (this );
@@ -529,6 +559,12 @@ public StringBuilder appendSelectBodyTo(StringBuilder builder) {
529559 builder .append (" WHERE " ).append (where );
530560 }
531561 }
562+ if (intoTempTable != null ) {
563+ builder .append (" INTO TEMP " ).append (intoTempTable );
564+ }
565+ if (useWithNoLog ) {
566+ builder .append (" WITH NO LOG" );
567+ }
532568 return builder ;
533569 }
534570
0 commit comments