Class Comet3Statement
- java.lang.Object
-
- com.priint.pubserver.comet.bridge.statement.Comet3Statement
-
public class Comet3Statement extends java.lang.ObjectThe Class Comet3Statement. Internal use only
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classComet3Statement.KindThe 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 classComet3Statement.ScriptSubjectThe Enum ScriptSubject.static classComet3Statement.TypeThe Enum Type.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Comet3Statement.TypefindTypeByName(java.lang.String typename)Find type by name.CometFindStatement.HierarchygetContent()Gets the content.java.lang.StringgetDataProviderId()Gets the data provider id.Comet3Statement.TypegetDataProviderResultType()Gets the data provider result type.Comet3Statement.KindgetKind()Gets the kind.intgetPlaceholderId()Gets the placeholder id.java.lang.StringgetPlaceholderName()Gets the placeholder name.java.lang.StringgetStatement()Gets the statement.Comet3Statement.ScriptSubjectgetSubject()Gets the subject.java.lang.StringgetSummary()Gets the summary.intgetTableInsertId()Gets the table insert id.Comet3Statement.TypegetType()Gets the type.booleanisDataProviderStatementRequest()Checks if is data provider statement request.booleanisPlaceholderIdRequest()Checks if is placeholder id request.booleanisPlaceholderStatementRequest()Checks if is placeholder statement request.booleanisProductListStatement()Checks if is product list statement.booleanisTableInsertStatementRequest()Checks if is table insert statement request.static Comet3StatementparseStatement(java.lang.String method, java.lang.String statement)Parses the statement.
-
-
-
Method Detail
-
findTypeByName
public static Comet3Statement.Type findTypeByName(java.lang.String typename)
Find type by name.- Parameters:
typename- the typename- Returns:
- the comet 3 statement. type
-
parseStatement
public static Comet3Statement parseStatement(java.lang.String method, java.lang.String statement) throws CometException
Parses the statement.- Parameters:
method- the methodstatement- the statement- Returns:
- the comet 3 statement
- Throws:
CometException- the comet exception
-
getDataProviderId
public java.lang.String getDataProviderId()
Gets the data provider id.- Returns:
- the data provider id
-
getDataProviderResultType
public Comet3Statement.Type getDataProviderResultType()
Gets the data provider result type.- Returns:
- the data provider result type
-
getKind
public Comet3Statement.Kind getKind()
Gets the kind.- Returns:
- the kind
-
getPlaceholderId
public int getPlaceholderId()
Gets the placeholder id.- Returns:
- the placeholder id
-
getPlaceholderName
public java.lang.String getPlaceholderName()
Gets the placeholder name.- Returns:
- the placeholder name
-
getStatement
public java.lang.String getStatement()
Gets the statement.- Returns:
- the statement
-
getSubject
public Comet3Statement.ScriptSubject getSubject()
Gets the subject.- Returns:
- the subject
-
getSummary
public java.lang.String getSummary()
Gets the summary.- Returns:
- the summary
-
getTableInsertId
public int getTableInsertId()
Gets the table insert id.- Returns:
- the table insert id
-
getType
public Comet3Statement.Type 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
public CometFindStatement.Hierarchy getContent()
Gets the content.- Returns:
- the content
-
-