public abstract class AbstractTextConnection extends AbstractConnection
AbstractConnection.StatementCounter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ENCODING
Name of the
encoding connection property. |
static java.lang.String |
EOL
Name of the
eol connection property. |
static java.lang.String |
FLUSH
Name of the
flush connection property. |
static java.lang.String |
FORMAT_PREFIX
Prefix for properties containing a definition of the column format.
|
static java.lang.String |
NULL_STRING
Name of the
null_string connection property. |
static java.lang.String |
SKIP_LINES
Name of the
skip_lines connection property. |
static java.lang.String |
TRIM
Name of the
trim connection property. |
counter
Modifier | Constructor and Description |
---|---|
protected |
AbstractTextConnection()
For testing only.
|
protected |
AbstractTextConnection(DialectIdentifier dialectIdentifier,
ConnectionParameters parameters)
Initializes a text connection using specified properties.
|
protected |
AbstractTextConnection(DialectIdentifier dialectIdentifier,
TextConnectionParameters parameters) |
Modifier and Type | Method and Description |
---|---|
protected TextConnectionParameters |
getConnectionParameters() |
protected java.io.Reader |
newInputReader()
Creates a new reader for input.
|
protected java.io.Writer |
newOutputWriter()
Creates a new writer to send output to.
|
commit, getDialectIdentifier, getExecutedStatementsCount, isReadonly, rollback, setDialectIdentifier, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, executeQuery, executeScript
public static final java.lang.String ENCODING
encoding
connection property.
Specifies charset encoding in text files.public static final java.lang.String EOL
eol
connection property.
EOL suffix. Default value is \n.public static final java.lang.String TRIM
trim
connection property.
Value of true
specifies that the leading and trailing
whitespaces should be omitted.public static final java.lang.String FLUSH
flush
connection property.
Value of true
specifies that the outputted content should flushed immediately after
the <script> element completes.public static final java.lang.String SKIP_LINES
skip_lines
connection property.
The number of lines to skip before start reading.
Default value is 0 (no lines are skipped).
Only valid for <query> elements.
public static final java.lang.String NULL_STRING
null_string
connection property.
If set, specifies value of a string token to be parsed/formatted as Java null
literal.public static final java.lang.String FORMAT_PREFIX
protected AbstractTextConnection()
protected AbstractTextConnection(DialectIdentifier dialectIdentifier, ConnectionParameters parameters)
dialectIdentifier
- parameters
- protected AbstractTextConnection(DialectIdentifier dialectIdentifier, TextConnectionParameters parameters)
protected java.io.Writer newOutputWriter() throws java.io.IOException
java.io.IOException
- if IO error occured.protected java.io.Reader newInputReader() throws java.io.IOException
java.io.IOException
- if IO error occured.protected TextConnectionParameters getConnectionParameters()
Copyright © Copyright 2006-2019 The Scriptella Project Team.