|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.moximedia.aims.SqlReport
The SqlReport class is used to link external SQL data to features in a spatial layer (AimsFeatureLayer) so that data from the external SQL table appear in identify and select reports for that layer. There can be multiple SqlReport objects attached to a layer. The results returned by the query are held in a simple recordset array within this object.
| Constructor Summary | |
SqlReport()
Creates a new instance of SqlReport |
|
| Method Summary | |
void |
addChildReport(SqlReport report)
|
void |
addParameter(SqlParameter param)
Adds a parameter to the SqlReport. |
void |
clear()
Removes the records from this object, and any sub-objects. |
java.lang.Object |
clone()
|
void |
executeQuery(SqlConnections connections)
|
void |
executeQuery(SqlConnections connections,
SqlRecord parentRecord)
Executes the query statement to populate the result array. |
java.util.ArrayList |
getChildReports()
|
SqlReport |
getCopy()
|
java.lang.String |
getDescription()
Gets the description of the SqlReport, which appears as a title on the identify and select reports. |
java.lang.String |
getDescription(SqlRecord record)
Gets the description of the SqlReport, which appears as a title on the identify and select reports. |
boolean |
getMaximumResultsExceeded()
Returns an indicator of whether the maximum number of results has been exceeded. |
int |
getObjectId()
Returns the IMF internal object id for this object, guaranteed to be different from any other oobject of this type in the currently running application. |
int |
getReportLevel()
|
SqlRecordset |
getSqlRecordset()
|
java.lang.String |
getSqlStatement(SqlRecord parentRecord)
Gets the SQL statement after replacing parameters. |
boolean |
hasDatabaseParameters()
|
boolean |
hasFatParameters()
|
boolean |
isTopLevelReport()
|
void |
setDescription(java.lang.String description)
Sets the name of the SqlReport, which appears as a title on the identify and select reports. |
void |
setRecordset(AimsRecordset rs)
Sets the feature layer recordset for use in retrieving values contained in the feature attributes. |
void |
setSql(java.lang.String sql)
Sets the SQL prepared statement for the query, which may contain placeholders for the parameters indicated by "?" characters. |
void |
setXmlAttribute(java.lang.String tag,
java.lang.String name,
java.lang.String value)
Sets one of the attributes of this object using a string value. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SqlReport()
| Method Detail |
public java.lang.Object clone()
public SqlReport getCopy()
public int getObjectId()
public boolean isTopLevelReport()
public int getReportLevel()
public void addParameter(SqlParameter param)
param - The SqlParameter object.public void addChildReport(SqlReport report)
public java.util.ArrayList getChildReports()
public void clear()
public boolean getMaximumResultsExceeded()
public java.lang.String getDescription()
public java.lang.String getDescription(SqlRecord record)
public void setDescription(java.lang.String description)
public void executeQuery(SqlConnections connections)
public void executeQuery(SqlConnections connections,
SqlRecord parentRecord)
connections - The available named connections.public void setRecordset(AimsRecordset rs)
rs - The layer's recordset object.public void setSql(java.lang.String sql)
sql - The SQL statement.public java.lang.String getSqlStatement(SqlRecord parentRecord)
public void setXmlAttribute(java.lang.String tag,
java.lang.String name,
java.lang.String value)
tag - The XML element tag containing this attribute.name - The XML attribute name.value - The XML attribute value.public boolean hasDatabaseParameters()
public boolean hasFatParameters()
public SqlRecordset getSqlRecordset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||