Package org.postgresql.core
Class SqlCommand
- java.lang.Object
-
- org.postgresql.core.SqlCommand
-
public class SqlCommand extends java.lang.ObjectData Modification Language inspection support.
-
-
Field Summary
Fields Modifier and Type Field Description static SqlCommandBLANKprivate SqlCommandTypecommandTypeprivate booleanparsedSQLhasRETURNINGKeywordprivate intvaluesBraceClosePositionprivate intvaluesBraceOpenPosition
-
Constructor Summary
Constructors Modifier Constructor Description privateSqlCommand(SqlCommandType type, boolean isBatchedReWriteConfigured, int valuesBraceOpenPosition, int valuesBraceClosePosition, boolean isPresent, int priorQueryCount)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SqlCommandcreateStatementTypeInfo(SqlCommandType type)static SqlCommandcreateStatementTypeInfo(SqlCommandType type, boolean isRETURNINGkeywordPresent)static SqlCommandcreateStatementTypeInfo(SqlCommandType type, boolean isBatchedReWritePropertyConfigured, int valuesBraceOpenPosition, int valuesBraceClosePosition, boolean isRETURNINGkeywordPresent, int priorQueryCount)intgetBatchRewriteValuesBraceClosePosition()intgetBatchRewriteValuesBraceOpenPosition()SqlCommandTypegetType()booleanisBatchedReWriteCompatible()booleanisReturningKeywordPresent()booleanreturnsRows()
-
-
-
Field Detail
-
BLANK
public static final SqlCommand BLANK
-
commandType
private final SqlCommandType commandType
-
parsedSQLhasRETURNINGKeyword
private final boolean parsedSQLhasRETURNINGKeyword
-
valuesBraceOpenPosition
private final int valuesBraceOpenPosition
-
valuesBraceClosePosition
private final int valuesBraceClosePosition
-
-
Constructor Detail
-
SqlCommand
private SqlCommand(SqlCommandType type, boolean isBatchedReWriteConfigured, int valuesBraceOpenPosition, int valuesBraceClosePosition, boolean isPresent, int priorQueryCount)
-
-
Method Detail
-
isBatchedReWriteCompatible
public boolean isBatchedReWriteCompatible()
-
getBatchRewriteValuesBraceOpenPosition
public int getBatchRewriteValuesBraceOpenPosition()
-
getBatchRewriteValuesBraceClosePosition
public int getBatchRewriteValuesBraceClosePosition()
-
getType
public SqlCommandType getType()
-
isReturningKeywordPresent
public boolean isReturningKeywordPresent()
-
returnsRows
public boolean returnsRows()
-
createStatementTypeInfo
public static SqlCommand createStatementTypeInfo(SqlCommandType type, boolean isBatchedReWritePropertyConfigured, int valuesBraceOpenPosition, int valuesBraceClosePosition, boolean isRETURNINGkeywordPresent, int priorQueryCount)
-
createStatementTypeInfo
public static SqlCommand createStatementTypeInfo(SqlCommandType type)
-
createStatementTypeInfo
public static SqlCommand createStatementTypeInfo(SqlCommandType type, boolean isRETURNINGkeywordPresent)
-
-