Class ListDatabasesStatement (0.19.0)

public class ListDatabasesStatement implements LocalStatement

Inheritance

Object > ListDatabasesStatement

Implements

LocalStatement

Static Fields

LIST_DATABASES_SQL

public static final String LIST_DATABASES_SQL
Field Value
TypeDescription
String

Constructors

ListDatabasesStatement(ConnectionHandler connectionHandler)

public ListDatabasesStatement(ConnectionHandler connectionHandler)
Parameter
NameDescription
connectionHandlerConnectionHandler

Methods

equals(Object other)

public boolean equals(Object other)
Parameter
NameDescription
otherObject
Returns
TypeDescription
boolean
Overrides

execute(BackendConnection backendConnection)

public StatementResult execute(BackendConnection backendConnection)

Executes the local statement and returns the result.

Parameter
NameDescription
backendConnectionBackendConnection
Returns
TypeDescription
StatementResult

getSql()

public String[] getSql()

Returns the static SQL string associated with this local statement. A statement should include a SQL statement for each variant that can reasonably be expected to be generated by a framework, but does not need to include a variant for each theoretically possible variant. The given SQL strings will be used as the keys in a java.util.Map for quick lookup. This means that it will not match all possible variants of the statement, which is OK, as this is only intended to cover auto-generated query strings from frameworks/tools.

Returns
TypeDescription
String[]

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides