public class JoinExpression
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
JoinExpression.ParserMessage |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
REFERENCE_SEPARATOR
Separator between LHS and RHS of join reference.
|
static java.lang.String |
TABLE_COLUMN_SEPARATOR
Separator between table name and column name.
|
| Constructor and Description |
|---|
JoinExpression(java.lang.String astrJoinExpression) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format()
Transform this join expression into a string.
|
java.lang.String |
formatInverse()
Format and return the inverse join expression, namely the join expression needed to traverse
from target-to-source.
|
java.lang.String |
getIntersectionTable()
Returns the intersection table, only applicable in many-to-many relationships.
|
java.util.Set<java.lang.String> |
getInverseJoinColumnNames()
Returns a list of Inverse Join Column names.
|
java.util.Map<java.lang.String,java.lang.String> |
getInverseJoinColumnNamesMap()
Returns a map of Inverse Join Column names.
|
java.util.Set<java.lang.String> |
getJoinColumnNames()
Returns a list of Join Column names.
|
java.util.Map<java.lang.String,java.lang.String> |
getJoinColumnNamesMap()
Returns a map of Join Column names.
|
java.util.Map<java.lang.String,java.lang.String> |
getJoinColumnNamesMapForOneToMany()
Returns a map of Join Column names for associations without an intersection tables.
|
JoinReference |
getJoinReference(int aiJoinReferenceIndex)
Get the specified join reference.
|
int |
getJoinReferenceCount()
Return the number of join references.
|
java.util.List<JoinExpression.ParserMessage> |
getParserMessages()
Return the list of parser messages generated.
|
java.util.Set<java.lang.String> |
getSourceColumnNames()
Returns a list of Source Table column names.
|
java.lang.String |
getSourceTable()
Returns the "first" table, namely the "leftmost" table in the join expression.
|
java.util.Set<java.lang.String> |
getTargetColumnNames()
Returns a list of Target Table column names.
|
java.lang.String |
getTargetTable()
Returns the "target" table, namely the "rightmost" table in the join expression.
|
boolean |
isValid()
Return
true if this JoinExpression is valid (i.e., has no parser messages). |
void |
postMessage(java.lang.String astrKey,
java.lang.String[] astrArray)
Add a message to the list.
|
public static final java.lang.String REFERENCE_SEPARATOR
public static final java.lang.String TABLE_COLUMN_SEPARATOR
public java.util.List<JoinExpression.ParserMessage> getParserMessages()
public java.lang.String format()
public java.lang.String formatInverse()
public boolean isValid()
true if this JoinExpression is valid (i.e., has no parser messages).true if this JoinExpression instance is valid.public java.lang.String getSourceTable()
public java.lang.String getTargetTable()
public java.lang.String getIntersectionTable()
null if not a many-to-many join expression.public java.util.Set<java.lang.String> getJoinColumnNames()
null.public java.util.Map<java.lang.String,java.lang.String> getJoinColumnNamesMap()
null.public java.util.Map<java.lang.String,java.lang.String> getJoinColumnNamesMapForOneToMany()
null.public java.util.Set<java.lang.String> getInverseJoinColumnNames()
null.public java.util.Map<java.lang.String,java.lang.String> getInverseJoinColumnNamesMap()
null.public java.util.Set<java.lang.String> getSourceColumnNames()
null.public java.util.Set<java.lang.String> getTargetColumnNames()
null.public void postMessage(java.lang.String astrKey,
java.lang.String[] astrArray)
astrKey - Bundle key of message.astrArray - Array of variables.public JoinReference getJoinReference(int aiJoinReferenceIndex)
aiJoinReferenceIndex - Index of join reference.public int getJoinReferenceCount()
Copyright © 2005-2013 Progress Software Corporation and/or its subsidiaries and affiliates. All rights reserved.