public abstract class Command
extends java.lang.Object
| Constructor and Description |
|---|
Command(Connection connection,
Pattern pattern)
Std.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
appendResult(org.w3c.dom.Element group,
int seq)
Append the result to the result group.
|
void |
execute(DBCommand dbCommand,
java.lang.String isql)
Execute this text.
|
protected abstract void |
execute(Parser p)
execute the command.
|
protected java.lang.String |
extMakeThreadName(java.lang.String sql)
OVERRIDE THIS METHOD: to change sql text that is used to set the thread name.
|
Connection |
getConnection()
The connection for this command.
|
Pattern |
getPattern()
The pattern for this command.
|
java.lang.String |
getRawTitle()
Get the raw/original title.
|
java.lang.String |
getTitle()
Get the current title.
|
java.lang.String |
makeThreadName(java.lang.String sql)
OVERRIDE THIS METHOD: to change sql text that is used to set the thread name.
|
protected void |
recordCall(Parser p,
long start,
long allocatedTime,
DataSource ds)
OVERRIDE THIS METHOD: To alter the recording of the command call statistics
|
void |
setTitle(java.lang.String title)
Set the title of this command.
|
public Command(@Nonnull
Connection connection,
@Nonnull
Pattern pattern)
connection - The connectionpattern - The command patternpublic abstract void appendResult(org.w3c.dom.Element group,
int seq)
throws java.lang.Exception
group - The result group to be appended toseq - The sequence number of the result setjava.lang.Exception - A serious problem@CheckReturnValue @Nonnull public Pattern getPattern()
@CheckReturnValue @Nonnull public Connection getConnection()
public final java.lang.String makeThreadName(java.lang.String sql)
sql - The sql that will be processed.@Nonnull
protected java.lang.String extMakeThreadName(@Nonnull
java.lang.String sql)
sql - The sql that will be processed.public final void execute(@Nonnull
DBCommand dbCommand,
java.lang.String isql)
throws java.lang.Exception
isql - the sql to executedbCommand - the commandjava.lang.Exception - A serious problemprotected void recordCall(Parser p, long start, long allocatedTime, DataSource ds)
p - The commandstart - When the command started.allocatedTime - the allocated timeds - the data sourcepublic void setTitle(java.lang.String title)
title - The title.@CheckReturnValue @Nonnull public java.lang.String getTitle()
@CheckReturnValue @Nonnull public java.lang.String getRawTitle()
protected abstract void execute(@Nonnull
Parser p)
throws java.lang.Exception
p - The actual command.java.lang.Exception - A serious problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.