|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Model
A SAS Query Services model is a persistable container of information relating to queries. The metadata common across those models are captured by this interface.
Field Summary | |
---|---|
static java.lang.String |
EVENT_DESCRIPTION_CHANGED
The event indicating that the description for this object has changed. |
static java.lang.String |
EVENT_ID_CHANGED
The event indicating that the ID for this object has changed. |
static java.lang.String |
EVENT_LABEL_CHANGED
The event indicating that the label for this object has changed. |
static java.lang.String |
INTERMODEL_ID_DELIMITER
In an inter-model ID, this string is used to separate a model's ID and a model item's intra-model ID. |
Fields inherited from interface com.sas.iquery.metadata.business.Base |
---|
EVENT_OBJECT_DEFINITION_CHANGED |
Method Summary | |
---|---|
ModelVersion |
computeModelVersion()
Deprecated. use the save options on the InformationMap.save(FolderInterface, String, Map) method |
void |
dispose()
Helps dispose of this model from memory -- causing this model and child models (dependent models in memory) to be cleared of much of their modeling. |
java.lang.String |
getDescription()
Returns the description for this model |
java.lang.String |
getID()
Returns this model's ID. |
java.lang.String |
getLabel()
Returns the label for this model |
ModelVersion |
getLastPersistedModelVersion()
Deprecated. use BriefInformationMap#getUsageVersion() on information maps |
void |
setDescription(java.lang.String description)
Sets the description for this model. |
void |
setID(java.lang.String ID)
Sets the ID of this model. |
void |
setLabel(java.lang.String label)
Sets the label for this model. |
Methods inherited from interface com.sas.iquery.metadata.PropertyChangeListenee |
---|
addListener, getListeners, removeListener |
Field Detail |
---|
static final java.lang.String INTERMODEL_ID_DELIMITER
static final java.lang.String EVENT_LABEL_CHANGED
static final java.lang.String EVENT_DESCRIPTION_CHANGED
static final java.lang.String EVENT_ID_CHANGED
Method Detail |
---|
java.lang.String getLabel()
void setLabel(java.lang.String label) throws MetadataException
label
- the string to use as the label.
MetadataException
- if this is not a valid label
MetadataNotChangeableException
- if this model is read-onlyProperty change events signalled:
- EVENT_LABEL_CHANGED
java.lang.String getDescription()
void setDescription(java.lang.String description)
Property change events signalled:
description
- the description for this model
MetadataNotChangeableException
- if this model is read-onlyjava.lang.String getID()
void setID(java.lang.String ID) throws MetadataException
ID
- this model's new ID, must not be null
MetadataNotChangeableException
- if this model is read-only
MetadataException
- if this operation failed. Example of failure are:
Property change events signalled:
- EVENT_ID_CHANGED
ModelVersion getLastPersistedModelVersion()
BriefInformationMap#getUsageVersion()
on information maps
computeModelVersion()
ModelVersion computeModelVersion() throws MetadataException
InformationMap.save(FolderInterface, String, Map)
method
This method is useful in diagnosing if this model, when being written over its existing persistent storage location, would cause an upgrade in the model's version. That is, prior to writing out this model, one can test whether the model's version would be upgraded as part of the write. When a model's version is upgraded (determinable by comparing the output of this method to the output of getLastPersistedModelVersion()), older versions of IQ software may not be able to read the newly persisted model.
For example, if this method returns ModelVersion.VERSION_913 and its previously stored model had ModelVersion.VERSION_912, then release 9.1.2 software will not be able to read this model if it is written over its previously stored location.
MetadataException
- if the model is not properly defined in memory
causing it to not be persistable.void dispose()
This method exists for users to call when they are done with a model to remove any paths to a GC root within the model that may unknowingly exist.
Disposing of a model via this method causes the in-memory model to be essentially gutted, allowing the JVM's garbage collector to collect the model and it's model items.
Calling any methods on a model after it has been disposed is not recommended and can have undesirable results. Doing so is done at your own risk.
|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |