Class SQLStatement.Tag
- java.lang.Object
-
- org.nuxeo.ecm.core.storage.sql.jdbc.dialect.SQLStatement.Tag
-
- Enclosing class:
- SQLStatement
public static class SQLStatement.Tag extends Object
Tags that may condition execution of the statement.
-
-
Field Summary
Fields Modifier and Type Field Description String
key
The tag key.static String
TAG_IF
Tag to only execute statement if a var is true.static String
TAG_PROC
Tag to define a stored procedure / function / type / trigger.static String
TAG_SET_IF_EMPTY
Tag to set a var to true if the result if the statement is empty.static String
TAG_SET_IF_NOT_EMPTY
Tag to set a var to true if the result if the statement is not empty.static String
TAG_TEST
Tag for a SELECT statement whose number of rows must be counted.String
value
static String
VAR_EMPTY_RESULT
-
-
-
Field Detail
-
TAG_TEST
public static final String TAG_TEST
Tag for a SELECT statement whose number of rows must be counted. Var "emptyResult" is set accordingly.- See Also:
- Constant Field Values
-
TAG_IF
public static final String TAG_IF
Tag to only execute statement if a var is true. Var may be preceded by ! inverse the test.- See Also:
- Constant Field Values
-
TAG_PROC
public static final String TAG_PROC
Tag to define a stored procedure / function / type / trigger. Followed by its name. Use byDialect.checkStoredProcedure(java.lang.String, java.lang.String, java.lang.String, java.sql.Connection, org.nuxeo.ecm.core.storage.sql.jdbc.JDBCLogger, java.util.Map<java.lang.String, java.io.Serializable>)
.- See Also:
- Constant Field Values
-
TAG_SET_IF_EMPTY
public static final String TAG_SET_IF_EMPTY
Tag to set a var to true if the result if the statement is empty.- See Also:
- Constant Field Values
-
TAG_SET_IF_NOT_EMPTY
public static final String TAG_SET_IF_NOT_EMPTY
Tag to set a var to true if the result if the statement is not empty.- See Also:
- Constant Field Values
-
VAR_EMPTY_RESULT
public static final String VAR_EMPTY_RESULT
- See Also:
- Constant Field Values
-
key
public final String key
The tag key.
-
value
public final String value
-
-