public final class SelectUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static matrix.util.StringList |
SELECT_ID |
| Modifier and Type | Method and Description |
|---|---|
static int |
getDataType(Statement statement) |
static int |
getDataType(java.lang.String statement) |
static java.lang.String[] |
getSelectData(matrix.db.BusinessObjectWithSelectList bowsl,
Statement statement) |
static java.lang.String |
getSelectData(matrix.db.BusinessObjectWithSelect bows,
Statement statement) |
static java.lang.String |
getSelectData(matrix.db.BusinessObjectWithSelect bows,
java.lang.String statement) |
static java.lang.String |
getSelectData(matrix.db.RelationshipWithSelect rws,
Statement statement) |
static java.lang.String |
getSelectData(matrix.db.RelationshipWithSelect rws,
java.lang.String statement) |
static matrix.util.StringList |
getSelectDataList(matrix.db.BusinessObjectWithSelect bows,
Statement statement)
Convenience method for retrieving all the selected data that match the
specified statement.
|
static matrix.util.StringList[] |
getSelectDataList(matrix.db.BusinessObjectWithSelect bows,
Statement[] statements)
Convenience method for retrieving all the selected data that match the
specified statements.
|
static matrix.util.StringList |
getSelectDataList(matrix.db.BusinessObjectWithSelect bows,
java.lang.String statement) |
static matrix.util.StringList |
getSelectDataList(matrix.db.RelationshipWithSelect rws,
Statement statement) |
static matrix.util.StringList |
getSelectDataList(matrix.db.RelationshipWithSelect rws,
java.lang.String statement) |
static short |
getSelectDataType(matrix.db.BusinessObjectWithSelect bows,
Statement statement) |
static short |
getSelectDataType(matrix.db.BusinessObjectWithSelect bows,
java.lang.String statement) |
static short |
getSelectDataType(matrix.db.RelationshipWithSelect rws,
Statement statement) |
static short |
getSelectDataType(matrix.db.RelationshipWithSelect rws,
java.lang.String statement) |
static boolean |
isAttributeSelect(java.lang.String statement) |
static java.lang.String |
parseAttributeName(java.lang.String expression)
Returns the name of the attribute that an expression refers to.
|
static java.lang.String |
parseOrResolveAttributeName(java.lang.String expression)
Tries to parse or resolves expression with expression as default value.
|
static java.lang.String |
removeWhereClause(java.lang.String select)
Converts a select expression by removing any conditions (where clauses)
from the select expression.
|
static java.lang.String |
toAttributeSelect(java.lang.String attributeName)
Returns the expression that can be used to select the attribute value
from a businessobject or connection.
|
static java.lang.String |
toAttributeSelect(SymbolicName name)
Returns the expression that can be used to select the attribute value
from a businessobject or connection.
|
static matrix.util.StringList |
toStringList(java.util.List<Statement> statements) |
static matrix.util.StringList |
toStringList(Statement statement) |
static matrix.util.StringList |
toStringList(Statement[] statement) |
public static java.lang.String removeWhereClause(java.lang.String select)
Such condition (where clause) appears after a pipe character
select - The select expressionpublic static java.lang.String parseAttributeName(java.lang.String expression)
expression - An expression.public static java.lang.String parseOrResolveAttributeName(java.lang.String expression)
throws TVCException
expression - TVCExceptionpublic static java.lang.String toAttributeSelect(SymbolicName name)
name - The symbolic name instance of the attributepublic static java.lang.String toAttributeSelect(java.lang.String attributeName)
attributeName - The name of the attribute to select.public static java.lang.String[] getSelectData(matrix.db.BusinessObjectWithSelectList bowsl,
Statement statement)
bowsl - statement - public static java.lang.String getSelectData(matrix.db.BusinessObjectWithSelect bows,
Statement statement)
bows - A business object that contains selected data.statement - A select statement.public static java.lang.String getSelectData(matrix.db.BusinessObjectWithSelect bows,
java.lang.String statement)
bows - A business object that contains selected data.statement - A select statement.public static short getSelectDataType(matrix.db.BusinessObjectWithSelect bows,
Statement statement)
bows - A business object that contains selected data.statement - A select statement.public static short getSelectDataType(matrix.db.BusinessObjectWithSelect bows,
java.lang.String statement)
bows - A business object that contains selected data.statement - A select statement.public static matrix.util.StringList getSelectDataList(matrix.db.BusinessObjectWithSelect bows,
Statement statement)
For example, if the statement is attribute.value this method will return all the selected information from all the selected keys that match this statement. Example of keys that match are:
bows - A business object that contains selected data.statement - A select statement.public static matrix.util.StringList[] getSelectDataList(matrix.db.BusinessObjectWithSelect bows,
Statement[] statements)
bows - A business object that contains selected data.statements - An array of select statement.public static matrix.util.StringList getSelectDataList(matrix.db.BusinessObjectWithSelect bows,
java.lang.String statement)
bows - A business object that contains selected data.statement - A select statement.public static java.lang.String getSelectData(matrix.db.RelationshipWithSelect rws,
Statement statement)
rws - A relationship that contains selected data.statement - A select statement.public static java.lang.String getSelectData(matrix.db.RelationshipWithSelect rws,
java.lang.String statement)
rws - A relationship that contains selected data.statement - A select statement.public static short getSelectDataType(matrix.db.RelationshipWithSelect rws,
Statement statement)
rws - A relationship that contains selected data.statement - A select statement.public static short getSelectDataType(matrix.db.RelationshipWithSelect rws,
java.lang.String statement)
rws - A relationship that contains selected data.statement - A select statement.public static matrix.util.StringList getSelectDataList(matrix.db.RelationshipWithSelect rws,
Statement statement)
rws - A relationship that contains selected data.statement - A select statement.public static matrix.util.StringList getSelectDataList(matrix.db.RelationshipWithSelect rws,
java.lang.String statement)
rws - A relationship that contains selected data.statement - A select statement.public static matrix.util.StringList toStringList(Statement statement)
statement - A statement.public static matrix.util.StringList toStringList(Statement[] statement)
statement - An array of statements.public static matrix.util.StringList toStringList(java.util.List<Statement> statements)
statements - public static boolean isAttributeSelect(java.lang.String statement)
public static int getDataType(Statement statement)
statement - AttributeConstantspublic static int getDataType(java.lang.String statement)
statement - AttributeConstantsCopyright ? Technia AB. All Rights Reserved.