|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.repository.query.Query.Statement
public static class Query.Statement
This is the query statement class. A statement is made up of a left operand, an operator, and a right operand.
Field Summary | |
---|---|
static int |
OPERATOR_BEGINS_WITH
BEGINS WITH |
static int |
OPERATOR_CONTAINS
CONTAINS |
static int |
OPERATOR_ENDS_WITH
ENDS WITH |
static int |
OPERATOR_EQUALS
EQUALS |
static int |
OPERATOR_GREATER_THAN
GREATER THAN |
static int |
OPERATOR_GREATER_THAN_EQUALS
GREATER THAN EQUALS ( >=) |
static int |
OPERATOR_LESS_THAN
LESS THAN |
static int |
OPERATOR_LESS_THAN_EQUALS
LESS THAN EQUALS (<=) |
static int |
OPERATOR_LIKE
LIKE |
static int |
OPERATOR_NOT_EQUALS
NOT EQUALS |
Constructor Summary | |
---|---|
Query.Statement()
|
|
Query.Statement(int left_operand_constant,
int operator,
java.lang.String right_operand)
Constructor that uses all required components. |
|
Query.Statement(java.lang.String left_operand,
int operator,
java.lang.String right_operand)
Constructor that uses all required components. |
Method Summary | |
---|---|
static java.lang.String |
attributeToString(int infomodelAttribute)
This method converts an attribute value to a String . |
java.lang.String |
getLeftOperand()
Retrieves the left operand. |
java.lang.String |
getNamespace()
Retrieves the namespace. |
int |
getOperator()
Retrieves the operator. |
java.lang.String |
getRightOperand()
Retrieves the right operand. |
void |
setLeftOperand(java.lang.String leftOperand)
Sets the left operand. |
void |
setLeftOperandWithConstant(int leftOperandConstant)
Sets the left operand and the namespace. |
void |
setNamespace(java.lang.String namespace)
Sets the namespace of the left operand. |
void |
setOperator(int operator)
Set the operator for this statement. |
void |
setRightOperand(java.lang.String rightOperand)
Sets the right operand. |
java.lang.String |
toString()
Retrieves a String representation of this statement. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int OPERATOR_LIKE
public static final int OPERATOR_EQUALS
public static final int OPERATOR_LESS_THAN
public static final int OPERATOR_GREATER_THAN
public static final int OPERATOR_NOT_EQUALS
public static final int OPERATOR_BEGINS_WITH
public static final int OPERATOR_ENDS_WITH
public static final int OPERATOR_CONTAINS
public static final int OPERATOR_GREATER_THAN_EQUALS
public static final int OPERATOR_LESS_THAN_EQUALS
Constructor Detail |
---|
public Query.Statement()
public Query.Statement(int left_operand_constant, int operator, java.lang.String right_operand)
left_operand_constant
- The left operand.operator
- The operator.right_operand
- The right operand.public Query.Statement(java.lang.String left_operand, int operator, java.lang.String right_operand)
left_operand
- The left operand.operator
- The operator.right_operand
- The right operand.Method Detail |
---|
public static java.lang.String attributeToString(int infomodelAttribute)
String
.
infomodelAttribute
- The attribute to be converted.
String
equivalent of the attribute.public void setLeftOperandWithConstant(int leftOperandConstant)
leftOperandConstant
- The left operand.public java.lang.String getLeftOperand()
public void setLeftOperand(java.lang.String leftOperand)
leftOperand
- The left operand.public void setNamespace(java.lang.String namespace)
namespace
- The namespace.public java.lang.String getNamespace()
public int getOperator()
public void setOperator(int operator)
OPERATOR_*
constants
defined in this class.
operator
- The operator.public java.lang.String getRightOperand()
public void setRightOperand(java.lang.String rightOperand)
rightOperand
- The right operand.public java.lang.String toString()
String
representation of this statement.
toString
in class java.lang.Object
String
representation of this statement.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |