public class QuerySourceForm extends Object implements IQuerySource, Cloneable
QuerySourceForm class represents the form containing the entries to be retrieved
through a dynamic query.RegularQuery,
RecursiveQuery,
IQuerySourceAR_MULTI_SCHEMA_JOIN_INNER, AR_MULTI_SCHEMA_JOIN_LEFT, AR_MULTI_SCHEMA_JOIN_NONE, AR_MULTI_SCHEMA_JOIN_RIGHT| Constructor and Description |
|---|
QuerySourceForm() |
QuerySourceForm(String name) |
QuerySourceForm(String name,
IQuerySource sourceJoinedWith,
int joinType,
QualifierInfo joinQualifier) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Clone implementation that returns an Object with data cloned from self.
|
boolean |
equals(Object obj) |
String |
getAlias()
Internal use.
|
IQuerySource |
getJoinedWith()
Returns the
IQuerySource source this source is joined with. |
QualifierInfo |
getJoinQualifier()
Returns the join qualifier.
|
int |
getJoinType()
Returns the type of a join.
|
String |
getName()
Returns the form name
|
int |
hashCode() |
void |
setJoin(IQuerySource sourceJoinedWith,
int joinType,
QualifierInfo joinQualifier)
Sets the join properties for this form.
|
void |
setJoinedWith(IQuerySource sourceJoinedWith)
Sets the
IQuerySource source to be joined with. |
void |
setJoinQualifier(QualifierInfo joinQualifier)
Sets the join qualifier.
|
void |
setJoinType(int joinType)
Sets the type of a join.
|
void |
setName(String formName)
Sets the form name
|
String |
toString()
Returns a string description of the object.
|
String |
toStringShort()
Returns a simplified string description of the object.
|
public QuerySourceForm()
public QuerySourceForm(String name)
public QuerySourceForm(String name, IQuerySource sourceJoinedWith, int joinType, QualifierInfo joinQualifier)
public void setJoin(IQuerySource sourceJoinedWith, int joinType, QualifierInfo joinQualifier)
SELECT fields FROM Printer J0
INNER JOIN Computer J1 ON (qualifier)
INNER JOIN Memory J2 ON (qualifier)
RegularQuery query = new RegularQuery();
...
// order in which the sources are added determines the order of the join generation
query.addFromSource(printerForm);
query.addFromSource(computerForm);
query.addFromSource(memoryForm);
...
// computer form sets a join with the printer form, not the other way around
computerForm.setJoin(printerForm, IQuerySource.AR_MULTI_SCHEMA_JOIN_INNER, joinQual1);
memoryForm.setJoin(computerForm, IQuerySource.AR_MULTI_SCHEMA_JOIN_INNER, joinQual2);
public QualifierInfo getJoinQualifier()
getJoinQualifier in interface IQuerySourcepublic void setJoinQualifier(QualifierInfo joinQualifier)
setJoinQualifier in interface IQuerySourcepublic int getJoinType()
getJoinType in interface IQuerySourcepublic void setJoinType(int joinType)
setJoinType in interface IQuerySourcepublic IQuerySource getJoinedWith()
IQuerySource source this source is joined with.getJoinedWith in interface IQuerySourcepublic void setJoinedWith(IQuerySource sourceJoinedWith)
IQuerySource source to be joined with.setJoinedWith in interface IQuerySourcesetJoin(com.bmc.arsys.api.IQuerySource, int, com.bmc.arsys.api.QualifierInfo)public void setName(String formName)
public String getName()
public String getAlias()
IQuerySourcegetAlias in interface IQuerySourcepublic Object clone() throws CloneNotSupportedException
clone in interface IQuerySourceclone in class ObjectCloneNotSupportedExceptionpublic String toString()
public String toStringShort()
toStringShort in interface IQuerySource? Copyright 2013 BMC Software, Inc.