Class SqlRecording
- java.lang.Object
-
- com.github.chrisgleissner.jutil.sqllog.SqlRecording
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class SqlRecording extends java.lang.Object implements java.io.CloseableRecording of SQL messages.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes (and thus stops) this recording.java.util.Collection<java.lang.String>getMessages()intsize()java.lang.StringtoString()
-
-
-
Method Detail
-
getMessages
public java.util.Collection<java.lang.String> getMessages()
-
close
public void close()
Closes (and thus stops) this recording. If writing to an OutputStream, this flushes any pending messages, but closing the OutputStream remains responsibility of the caller.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
size
public int size()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-