|
AR System Java API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bmc.arsys.api.QuerySourceForm
public class QuerySourceForm
The QuerySourceForm class represents the form containing the entries to be retrieved
through a dynamic query.
RegularQuery,
RecursiveQuery,
IQuerySource| Field Summary |
|---|
| Fields inherited from interface com.bmc.arsys.api.IQuerySource |
|---|
AR_MULTI_SCHEMA_JOIN_INNER, AR_MULTI_SCHEMA_JOIN_LEFT, AR_MULTI_SCHEMA_JOIN_NONE, AR_MULTI_SCHEMA_JOIN_RIGHT |
| Constructor Summary | |
|---|---|
QuerySourceForm()
|
|
QuerySourceForm(String name)
|
|
QuerySourceForm(String name,
IQuerySource sourceJoinedWith,
int joinType,
QualifierInfo joinQualifier)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public QuerySourceForm()
public QuerySourceForm(String name)
public QuerySourceForm(String name,
IQuerySource sourceJoinedWith,
int joinType,
QualifierInfo joinQualifier)
| Method Detail |
|---|
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()
IQuerySource
getAlias in interface IQuerySourcepublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
public Object clone()
throws CloneNotSupportedException
clone in interface IQuerySourceclone in class ObjectCloneNotSupportedExceptionpublic String toString()
toString in class Objectpublic String toStringShort()
toStringShort in interface IQuerySource
|
AR System Java API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||