public class CommandContextImpl extends Object implements CommandContext
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected boolean |
_alreadySkippedConnector |
protected StringKeyMap<Object> |
_args
The arguments. it should be allowed null value.
|
protected StringKeyMap<Class<?>> |
_argTypes
The types of argument. it should be allowed null value.
|
protected boolean |
_beginChild |
protected List<Object> |
_bindVariables |
protected List<Class<?>> |
_bindVariableTypes |
protected boolean |
_enabled |
protected CommandContext |
_parent |
protected StringBuilder |
_sqlSb |
| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
CommandContextImpl()
Constructor for root context.
|
protected |
CommandContextImpl(CommandContext parent)
Constructor for child context.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
addArg(String name,
Object arg,
Class<?> argType) |
CommandContext |
addSql(String sql) |
CommandContext |
addSql(String sql,
Object[] bindVariables,
Class<?>[] bindVariableTypes) |
CommandContext |
addSql(String sql,
Object bindVariable,
Class<?> bindVariableType) |
protected CommandContextImpl |
asBeginChild() |
static CommandContextImpl |
createCommandContextImplAsBeginChild(CommandContext parent)
Create the implementation of command context as BEGIN child.
|
static CommandContextImpl |
createCommandContextImplAsRoot()
Create the implementation of command context as root.
|
Object |
getArg(String name) |
Class<?> |
getArgType(String name) |
Object[] |
getBindVariables() |
Class<?>[] |
getBindVariableTypes() |
String |
getSql() |
boolean |
isAlreadySkippedConnector() |
boolean |
isBeginChild() |
boolean |
isEnabled() |
void |
setAlreadySkippedConnector(boolean alreadySkippedConnector) |
void |
setEnabled(boolean enabled) |
String |
toString() |
protected final StringKeyMap<Object> _args
protected final StringKeyMap<Class<?>> _argTypes
protected final StringBuilder _sqlSb
protected final CommandContext _parent
protected boolean _enabled
protected boolean _beginChild
protected boolean _alreadySkippedConnector
protected CommandContextImpl()
protected CommandContextImpl(CommandContext parent)
parent - The parent context. (NotNull)public static CommandContextImpl createCommandContextImplAsRoot()
public static CommandContextImpl createCommandContextImplAsBeginChild(CommandContext parent)
parent - The parent context. (NotNull)protected CommandContextImpl asBeginChild()
public Object getArg(String name)
getArg インタフェース内 CommandContextpublic Class<?> getArgType(String name)
getArgType インタフェース内 CommandContextpublic void addArg(String name, Object arg, Class<?> argType)
addArg インタフェース内 CommandContextpublic String getSql()
getSql インタフェース内 CommandContextpublic Object[] getBindVariables()
getBindVariables インタフェース内 CommandContextpublic Class<?>[] getBindVariableTypes()
getBindVariableTypes インタフェース内 CommandContextpublic CommandContext addSql(String sql)
addSql インタフェース内 CommandContextpublic CommandContext addSql(String sql, Object bindVariable, Class<?> bindVariableType)
addSql インタフェース内 CommandContextpublic CommandContext addSql(String sql, Object[] bindVariables, Class<?>[] bindVariableTypes)
addSql インタフェース内 CommandContextpublic boolean isEnabled()
isEnabled インタフェース内 CommandContextpublic void setEnabled(boolean enabled)
setEnabled インタフェース内 CommandContextpublic boolean isBeginChild()
isBeginChild インタフェース内 CommandContextpublic boolean isAlreadySkippedConnector()
isAlreadySkippedConnector インタフェース内 CommandContextpublic void setAlreadySkippedConnector(boolean alreadySkippedConnector)
setAlreadySkippedConnector インタフェース内 CommandContextCopyright © 2014–2015 The DBFlute Project. All rights reserved.