public abstract class AbstractSqlTag extends Object implements ISqlTag
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIBUTE_NAME |
static String |
ATTRIBUTE_TYPE |
protected String |
id |
protected LanguageType |
languageType |
org.slf4j.Logger |
log |
| Constructor and Description |
|---|
AbstractSqlTag(String id,
LanguageType languageType)
Build a new SQL tag from XML file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTag(ITextTag tag)
add a new text tag.
|
void |
addTag(List<ITextTag> tags)
add a set of text tags (static or dynamic).
|
void |
addTag(String text)
add a set of static text from tag elements.
|
LanguageType |
getLanguageType()
language from SQL sentence.
|
String |
getName()
Retrieve the identifier name from tag.
|
String |
getSql()
Retrieve static sql from a node, the dynamic parts is skipped.
|
String |
getSql(Object params)
Retrieve dynamic sql from a node, the dynamic parts is evaluated at time
to create the sql.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTagNamegetSqlCommandTypepublic final org.slf4j.Logger log
public static final String ATTRIBUTE_NAME
public static final String ATTRIBUTE_TYPE
protected String id
protected LanguageType languageType
public AbstractSqlTag(String id, LanguageType languageType)
id - Name/Identify from tag.languageType - type of language from tag.public String getSql()
public String getSql(Object params)
public LanguageType getLanguageType()
getLanguageType in interface ISqlpublic String getName()
public void addTag(ITextTag tag)
public void addTag(String text)
Copyright © 2015 jkniv. All rights reserved.