Class Comet3Statement
java.lang.Object
com.priint.pubserver.comet.bridge.statement.Comet3Statement
The Class Comet3Statement. Internal use only
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe kind of a statement, i.e., whether it's just a data call or a control command to trigger certain operations on the server.static enumThe Enum ScriptSubject.static enumThe Enum Type. -
Method Summary
Modifier and TypeMethodDescriptionstatic Comet3Statement.TypefindTypeByName(String typename) Find type by name.Gets the content.Gets the data provider id.Gets the data provider result type.getKind()Gets the kind.intGets the placeholder id.Gets the placeholder name.Gets the statement.Gets the subject.Gets the summary.intGets the table insert id.getType()Gets the type.booleanChecks if is data provider statement request.booleanChecks if is placeholder id request.booleanChecks if is placeholder statement request.booleanChecks if is product list statement.booleanChecks if is table insert statement request.static Comet3StatementparseStatement(String method, String statement) Parses the statement.
-
Method Details
-
findTypeByName
Find type by name.- Parameters:
typename- the typename- Returns:
- the comet 3 statement. type
-
parseStatement
Parses the statement.- Parameters:
method- the methodstatement- the statement- Returns:
- the comet 3 statement
- Throws:
CometException- the comet exception
-
getDataProviderId
Gets the data provider id.- Returns:
- the data provider id
-
getDataProviderResultType
Gets the data provider result type.- Returns:
- the data provider result type
-
getKind
Gets the kind.- Returns:
- the kind
-
getPlaceholderId
public int getPlaceholderId()Gets the placeholder id.- Returns:
- the placeholder id
-
getPlaceholderName
Gets the placeholder name.- Returns:
- the placeholder name
-
getStatement
Gets the statement.- Returns:
- the statement
-
getSubject
Gets the subject.- Returns:
- the subject
-
getSummary
Gets the summary.- Returns:
- the summary
-
getTableInsertId
public int getTableInsertId()Gets the table insert id.- Returns:
- the table insert id
-
getType
Gets the type.- Returns:
- the type
-
isDataProviderStatementRequest
public boolean isDataProviderStatementRequest()Checks if is data provider statement request.- Returns:
- true, if is data provider statement request
-
isPlaceholderIdRequest
public boolean isPlaceholderIdRequest()Checks if is placeholder id request.- Returns:
- true, if is placeholder id request
-
isPlaceholderStatementRequest
public boolean isPlaceholderStatementRequest()Checks if is placeholder statement request.- Returns:
- true, if is placeholder statement request
-
isTableInsertStatementRequest
public boolean isTableInsertStatementRequest()Checks if is table insert statement request.- Returns:
- true, if is table insert statement request
-
isProductListStatement
public boolean isProductListStatement()Checks if is product list statement.- Returns:
- true, if is product list statement
-
getContent
Gets the content.- Returns:
- the content
-