Interface LogicalColumn
- All Superinterfaces:
CMetadata,Feature,MdObjectBase,MdObjectBaseUtil,MdObjectBaseXML,PrimaryType,Remote,Root
- All Known Subinterfaces:
CalculatedMeasure,Column,ColumnRange,Measure
Attributes of LogicalColumn are:
Associations of LogicalColumn are:
Usage
To create an instance of this LogicalColumn, use thefactory
create methods. Example: create a LogicalColumn with name "LogicalColumn_Object", in repository "AAAAAAAA".
// create a store to contain your objects for this change. If you do not have an existing object // or store to use. You may obtain the store from another object by using Object.getObjectStore(). MdFactory factory; //where "factory" is a valid MdFactory instance MdObjectStore objectStore = factory.createObjectStore(); LogicalColumn myObject = (LogicalColumn) factory.createComplexMetadataObject(objectStore, "LogicalColumn_Object", MetadataObjects.LOGICALCOLUMN, "AAAAAAAA"); myObject.updateMetadataAll(); // Write object to server objectStore.dispose(); // dispose of the object store if it is no longer needed
Behavior
- Attributes and associations for this object can be retrieved by using the methods in
MdOMIUtil. - When changes are made to the object, either by setting an attribute or adding objects to a particular association,
they can be persisted to the metadata server with the
updateMetadataAllmethod. - If an object needs to be deleted, the
deletemethod can be used. This will flag the object as being deleted on the client, and will require an update call to persist the change to the server.
Dependencies
This class depends on objects being contained in an MdObjectStore. Object stores should be disposed of when they are no longer needed as this will help clean up memory. Disposing an object store will dispose of all objects contained within that store.- Since:
- 9.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant used for the name of the ColumnLength attribute.static final StringConstant used for the name of the ColumnName attribute.static final StringConstant used for the name of the ColumnType attribute.static final StringConstant used for the name of the SASFormat attribute.static final StringConstant used for the name of the SASInformat attribute.Fields inherited from interface com.sas.metadata.remote.Feature
ASSOCIATION_SOURCEFEATUREMAPS_NAME, ASSOCIATION_TARGETFEATUREMAPS_NAMEFields inherited from interface com.sas.metadata.remote.MdObjectBase
ATTRIBUTE_DESC_NAME, ATTRIBUTE_ID_NAME, ATTRIBUTE_METADATACREATED_NAME, ATTRIBUTE_METADATAUPDATED_NAME, ATTRIBUTE_NAME_NAMEFields inherited from interface com.sas.metadata.remote.PrimaryType
ASSOCIATION_FAVORITESCONTAINERS_NAME, ATTRIBUTE_ISHIDDEN_NAME, ATTRIBUTE_PUBLICTYPE_NAMEFields inherited from interface com.sas.metadata.remote.Root
ASSOCIATION_ACCESSCONTROLS_NAME, ASSOCIATION_CHANGES_NAME, ASSOCIATION_CUSTOMASSOCIATIONS_NAME, ASSOCIATION_DOCUMENTS_NAME, ASSOCIATION_EXTENSIONS_NAME, ASSOCIATION_EXTERNALIDENTITIES_NAME, ASSOCIATION_GROUPS_NAME, ASSOCIATION_IMPLEMENTORS_NAME, ASSOCIATION_KEYWORDS_NAME, ASSOCIATION_LOCALIZEDATTRIBUTES_NAME, ASSOCIATION_NOTES_NAME, ASSOCIATION_PRIMARYPROPERTYGROUP_NAME, ASSOCIATION_PROMPTS_NAME, ASSOCIATION_PROPERTIES_NAME, ASSOCIATION_PROPERTYSETS_NAME, ASSOCIATION_REFERENCEDOBJECTS_NAME, ASSOCIATION_RESPONSIBLEPARTIES_NAME, ASSOCIATION_SOURCETRANSFORMATIONS_NAME, ASSOCIATION_SPECSOURCETRANSFORMATIONS_NAME, ASSOCIATION_SPECTARGETTRANSFORMATIONS_NAME, ASSOCIATION_TARGETTRANSFORMATIONS_NAME, ASSOCIATION_TIMESTAMPS_NAME, ASSOCIATION_TREES_NAME, ASSOCIATION_TSOBJECTNAMESPACE_NAME, ASSOCIATION_USEDBYPROTOTYPES_NAME, ASSOCIATION_USINGPROTOTYPE_NAME, ASSOCIATION_VARIABLES_NAME, ATTRIBUTE_CHANGESTATE_NAME, ATTRIBUTE_LOCKEDBY_NAME, ATTRIBUTE_USAGEVERSION_NAME -
Method Summary
Modifier and TypeMethodDescriptionintGets theintvalue ofColumnLengthintGets the Metadata State ofColumnLengthStringGets theStringvalue ofColumnNameintGets the maximum length ofColumnNameintGets the Metadata State ofColumnNameintGets theintvalue ofColumnTypeintGets the Metadata State ofColumnTypeStringGets theStringvalue ofSASFormatintGets the maximum length ofSASFormatintGets the Metadata State ofSASFormatStringGets theStringvalue ofSASInformatintGets the maximum length ofSASInformatintGets the Metadata State ofSASInformatvoid(S) Adds the Associated objects to the predObjects which are:void(S) This initializes the Required Objects(Roles) which are:voidsetColumnLength(int inColumnLength) Sets theColumnLengthvalue and sets the state to MetadataState.LOCAL.voidsetColumnLength(int inColumnLength, int state) Sets theColumnLengthMetadata State.voidsetColumnLength(String inColumnLength) Sets theColumnLengthvalue and sets the state to MetadataState.LOCAL.voidsetColumnLength(String inColumnLength, int state) Sets theColumnLengthvalue and Metadata State.voidsetColumnLengthState(int state) Sets the Metadata State ofColumnLength.voidsetColumnName(String inColumnName) Sets theColumnNamevalue and sets the state to MetadataState.LOCAL.voidsetColumnName(String inColumnName, int state) Sets theColumnNameMetadata State.voidsetColumnNameState(int state) Sets the Metadata State ofColumnName.voidsetColumnType(int inColumnType) Sets theColumnTypevalue and sets the state to MetadataState.LOCAL.voidsetColumnType(int inColumnType, int state) Sets theColumnTypeMetadata State.voidsetColumnType(String inColumnType) Sets theColumnTypevalue and sets the state to MetadataState.LOCAL.voidsetColumnType(String inColumnType, int state) Sets theColumnTypevalue and Metadata State.voidsetColumnTypeState(int state) Sets the Metadata State ofColumnType.voidsetSASFormat(String inSASFormat) Sets theSASFormatvalue and sets the state to MetadataState.LOCAL.voidsetSASFormat(String inSASFormat, int state) Sets theSASFormatMetadata State.voidsetSASFormatState(int state) Sets the Metadata State ofSASFormat.voidsetSASInformat(String inSASInformat) Sets theSASInformatvalue and sets the state to MetadataState.LOCAL.voidsetSASInformat(String inSASInformat, int state) Sets theSASInformatMetadata State.voidsetSASInformatState(int state) Sets the Metadata State ofSASInformat.Methods inherited from interface com.sas.metadata.remote.Feature
getSourceFeatureMaps, getSourceFeatureMaps, getTargetFeatureMaps, getTargetFeatureMaps, setSourceFeatureMaps, setSourceFeatureMaps, setTargetFeatureMaps, setTargetFeatureMapsMethods inherited from interface com.sas.metadata.remote.MdObjectBase
addElementToChangeList, clearChangeList, getChangeList, getCMetadataType, getDesc, getDescMaxLength, getDescState, getFQID, getId, getIdState, getMetadataCreated, getMetadataCreatedState, getMetadataUpdated, getMetadataUpdatedState, getName, getNameMaxLength, getNameState, getObjectStore, getPredAssociations, getRepositoryID, getRequiredAssociations, getState, isAssociationRequired, isNewObject, isPredAssociation, removeElementFromChangeList, resetObject, resetState, resetStates, setCMetadataType, setDesc, setDesc, setDescState, setFQID, setFQID, setId, setId, setIdState, setMetadataCreated, setMetadataCreated, setMetadataCreatedState, setMetadataUpdated, setMetadataUpdated, setMetadataUpdatedState, setName, setName, setNameState, setObjectStore, setStateMethods inherited from interface com.sas.metadata.remote.MdObjectBaseUtil
addMdObjectListener, delete, dispose, fireMdObjectModified, getAssociatedObjects, getAssociatedObjects, getAssociatedObjects, getAssociationNames, getAssocs, getAssocsWA, getAttributeNames, getAttrs, getAttrsStates, getAuthorizationUtil, getChangeManagementState, getChgMgtExternalIdentityImportType, getClientSideOnlyObject, getMdObjectAssociation, getPopulatedAssocs, getUpdatedAttrs, getViewList, isCheckedOut, isLocked, objectModified, removeMdObjectListener, setAttrs, setChangeManagementTargetRepository, setChgMgtExternalIdentityImportType, setClientSideOnlyObject, setMdObjectAssociation, touch, updateAssnsIdsMethods inherited from interface com.sas.metadata.remote.MdObjectBaseXML
closeUpdateMetadataXML, createEmptyXML, createObjectRefreshXML, createObjectXML, createObjectXML, createUpdateAssociationXML, createUpdateAssociationXML, createUpdateSimpleXML, doCreateUpdateXML, getUpdateSimpleSubstring, updateMetadataAllMethods inherited from interface com.sas.metadata.remote.PrimaryType
getFavoritesContainers, getFavoritesContainers, getIsHidden, getIsHiddenState, getPublicType, getPublicTypeMaxLength, getPublicTypeState, setFavoritesContainers, setFavoritesContainers, setIsHidden, setIsHidden, setIsHidden, setIsHidden, setIsHiddenState, setPublicType, setPublicType, setPublicTypeStateMethods inherited from interface com.sas.metadata.remote.Root
getAccessControls, getAccessControls, getChanges, getChanges, getChangeState, getChangeStateMaxLength, getChangeStateState, getCustomAssociations, getCustomAssociations, getDocuments, getDocuments, getExtensions, getExtensions, getExternalIdentities, getExternalIdentities, getGroups, getGroups, getImplementors, getImplementors, getKeywords, getKeywords, getLocalizedAttributes, getLocalizedAttributes, getLockedBy, getLockedByMaxLength, getLockedByState, getNotes, getNotes, getPrimaryPropertyGroup, getPrimaryPropertyGroups, getPrimaryPropertyGroups, getPrompts, getPrompts, getProperties, getProperties, getPropertySets, getPropertySets, getReferencedObjects, getReferencedObjects, getResponsibleParties, getResponsibleParties, getSourceTransformations, getSourceTransformations, getSpecSourceTransformations, getSpecSourceTransformations, getSpecTargetTransformations, getSpecTargetTransformations, getTargetTransformations, getTargetTransformations, getTimestamps, getTimestamps, getTrees, getTrees, getTSObjectNamespace, getTSObjectNamespaces, getTSObjectNamespaces, getUsageVersion, getUsageVersionState, getUsedByPrototypes, getUsedByPrototypes, getUsingPrototype, getUsingPrototypes, getUsingPrototypes, getVariables, getVariables, setAccessControls, setAccessControls, setChanges, setChanges, setChangeState, setChangeState, setChangeStateState, setCustomAssociations, setCustomAssociations, setDocuments, setDocuments, setExtensions, setExtensions, setExternalIdentities, setExternalIdentities, setGroups, setGroups, setImplementors, setImplementors, setKeywords, setKeywords, setLocalizedAttributes, setLocalizedAttributes, setLockedBy, setLockedBy, setLockedByState, setNotes, setNotes, setPrimaryPropertyGroup, setPrimaryPropertyGroups, setPrimaryPropertyGroups, setPrompts, setPrompts, setProperties, setProperties, setPropertySets, setPropertySets, setReferencedObjects, setReferencedObjects, setResponsibleParties, setResponsibleParties, setSourceTransformations, setSourceTransformations, setSpecSourceTransformations, setSpecSourceTransformations, setSpecTargetTransformations, setSpecTargetTransformations, setTargetTransformations, setTargetTransformations, setTimestamps, setTimestamps, setTrees, setTrees, setTSObjectNamespace, setTSObjectNamespaces, setTSObjectNamespaces, setUsageVersion, setUsageVersion, setUsageVersion, setUsageVersion, setUsageVersionState, setUsedByPrototypes, setUsedByPrototypes, setUsingPrototype, setUsingPrototypes, setUsingPrototypes, setVariables, setVariables
-
Field Details
-
ATTRIBUTE_SASFORMAT_NAME
static final String ATTRIBUTE_SASFORMAT_NAMEConstant used for the name of the SASFormat attribute.SASFormat: This attribute contains the SAS format associated with this column.
- See Also:
-
ATTRIBUTE_SASINFORMAT_NAME
static final String ATTRIBUTE_SASINFORMAT_NAMEConstant used for the name of the SASInformat attribute.SASInformat: This attribute contains the SAS informat associated with this column.
- See Also:
-
ATTRIBUTE_COLUMNLENGTH_NAME
static final String ATTRIBUTE_COLUMNLENGTH_NAMEConstant used for the name of the ColumnLength attribute.ColumnLength: This attribute contains the length of the column. When this type is used to represent a physical column in a DBMS, the length is the DBMS length value. The SASColumnLength should be the same as this value, unless the length is too long and will be truncated by SAS software.
- See Also:
-
ATTRIBUTE_COLUMNTYPE_NAME
static final String ATTRIBUTE_COLUMNTYPE_NAMEConstant used for the name of the ColumnType attribute.ColumnType: The type of the column as defined in the DBMS. This is an integer value that indicates the SQL type.
- See Also:
-
ATTRIBUTE_COLUMNNAME_NAME
static final String ATTRIBUTE_COLUMNNAME_NAMEConstant used for the name of the ColumnName attribute.ColumnName: This attribute is the name of the column as it is defined in a DBMS. ColumnName will often be set to match the value for SASColumnName. This attribute is not used by SAS Data Integration Studio.
- See Also:
-
-
Method Details
-
initializeRequiredObjects
void initializeRequiredObjects() throws RemoteException(S) This initializes the Required Objects(Roles) which are:- Specified by:
initializeRequiredObjectsin interfaceFeature- Specified by:
initializeRequiredObjectsin interfaceMdObjectBaseUtil- Specified by:
initializeRequiredObjectsin interfacePrimaryType- Specified by:
initializeRequiredObjectsin interfaceRoot- Throws:
RemoteException- If error connecting/communicating to/with remote object.
-
initializePredObjects
void initializePredObjects() throws RemoteException(S) Adds the Associated objects to the predObjects which are:- Specified by:
initializePredObjectsin interfaceFeature- Specified by:
initializePredObjectsin interfaceMdObjectBase- Specified by:
initializePredObjectsin interfacePrimaryType- Specified by:
initializePredObjectsin interfaceRoot- Throws:
RemoteException- If error connecting/communicating to/with remote object.
-
getSASFormat
String getSASFormat() throws RemoteExceptionGets theStringvalue ofSASFormat- Returns:
- The
SASFormat - Throws:
RemoteException- If error connecting/communicating to/with remote object.
-
getSASFormatState
int getSASFormatState() throws RemoteExceptionGets the Metadata State ofSASFormat- Returns:
- The State.
- Throws:
RemoteException- If error connecting/communicating to/with remote object.
-
getSASFormatMaxLength
int getSASFormatMaxLength() throws RemoteExceptionGets the maximum length ofSASFormat- Returns:
- The max size
- Throws:
RemoteException- If error connecting/communicating to/with remote object.
-
getSASInformat
String getSASInformat() throws RemoteExceptionGets theStringvalue ofSASInformat- Returns:
- The
SASInformat - Throws:
RemoteException- If error connecting/communicating to/with remote object.
-
getSASInformatState
int getSASInformatState() throws RemoteExceptionGets the Metadata State ofSASInformat- Returns:
- The State.
- Throws:
RemoteException- If error connecting/communicating to/with remote object.
-
getSASInformatMaxLength
int getSASInformatMaxLength() throws RemoteExceptionGets the maximum length ofSASInformat- Returns:
- The max size
- Throws:
RemoteException- If error connecting/communicating to/with remote object.
-
getColumnLength
int getColumnLength() throws RemoteExceptionGets theintvalue ofColumnLength- Returns:
- The
ColumnLength - Throws:
RemoteException- If error connecting/communicating to/with remote object.
-
getColumnLengthState
int getColumnLengthState() throws RemoteExceptionGets the Metadata State ofColumnLength- Returns:
- The State.
- Throws:
RemoteException- If error connecting/communicating to/with remote object.
-
getColumnType
int getColumnType() throws RemoteExceptionGets theintvalue ofColumnType- Returns:
- The
ColumnType - Throws:
RemoteException- If error connecting/communicating to/with remote object.
-
getColumnTypeState
int getColumnTypeState() throws RemoteExceptionGets the Metadata State ofColumnType- Returns:
- The State.
- Throws:
RemoteException- If error connecting/communicating to/with remote object.
-
getColumnName
String getColumnName() throws RemoteExceptionGets theStringvalue ofColumnName- Returns:
- The
ColumnName - Throws:
RemoteException- If error connecting/communicating to/with remote object.
-
getColumnNameState
int getColumnNameState() throws RemoteExceptionGets the Metadata State ofColumnName- Returns:
- The State.
- Throws:
RemoteException- If error connecting/communicating to/with remote object.
-
getColumnNameMaxLength
int getColumnNameMaxLength() throws RemoteExceptionGets the maximum length ofColumnName- Returns:
- The max size
- Throws:
RemoteException- If error connecting/communicating to/with remote object.
-
setSASFormat
void setSASFormat(String inSASFormat) throws RemoteException Sets theSASFormatvalue and sets the state to MetadataState.LOCAL.- Parameters:
inSASFormat- String- Throws:
RemoteException- If error communicating with remote object.
-
setSASFormat
void setSASFormat(String inSASFormat, int state) throws RemoteException Sets theSASFormatMetadata State.- Parameters:
inSASFormat- Stringstate- int- Throws:
RemoteException- If error communicating with remote object.
-
setSASFormatState
void setSASFormatState(int state) throws RemoteException Sets the Metadata State ofSASFormat.- Parameters:
state- int- Throws:
RemoteException- If error communicating with remote object.
-
setSASInformat
void setSASInformat(String inSASInformat) throws RemoteException Sets theSASInformatvalue and sets the state to MetadataState.LOCAL.- Parameters:
inSASInformat- String- Throws:
RemoteException- If error communicating with remote object.
-
setSASInformat
void setSASInformat(String inSASInformat, int state) throws RemoteException Sets theSASInformatMetadata State.- Parameters:
inSASInformat- Stringstate- int- Throws:
RemoteException- If error communicating with remote object.
-
setSASInformatState
void setSASInformatState(int state) throws RemoteException Sets the Metadata State ofSASInformat.- Parameters:
state- int- Throws:
RemoteException- If error communicating with remote object.
-
setColumnLength
void setColumnLength(int inColumnLength) throws RemoteException Sets theColumnLengthvalue and sets the state to MetadataState.LOCAL.- Parameters:
inColumnLength- int- Throws:
RemoteException- If error communicating with remote object.
-
setColumnLength
void setColumnLength(int inColumnLength, int state) throws RemoteException Sets theColumnLengthMetadata State.- Parameters:
inColumnLength- intstate- int- Throws:
RemoteException- If error communicating with remote object.
-
setColumnLength
void setColumnLength(String inColumnLength) throws RemoteException Sets theColumnLengthvalue and sets the state to MetadataState.LOCAL.- Parameters:
inColumnLength- String- Throws:
RemoteException- If error communicating with remote object.
-
setColumnLength
void setColumnLength(String inColumnLength, int state) throws RemoteException Sets theColumnLengthvalue and Metadata State.- Parameters:
inColumnLength- Stringstate- int- Throws:
RemoteException- If error communicating with remote object.
-
setColumnLengthState
void setColumnLengthState(int state) throws RemoteException Sets the Metadata State ofColumnLength.- Parameters:
state- int- Throws:
RemoteException- If error communicating with remote object.
-
setColumnType
void setColumnType(int inColumnType) throws RemoteException Sets theColumnTypevalue and sets the state to MetadataState.LOCAL.- Parameters:
inColumnType- int- Throws:
RemoteException- If error communicating with remote object.
-
setColumnType
void setColumnType(int inColumnType, int state) throws RemoteException Sets theColumnTypeMetadata State.- Parameters:
inColumnType- intstate- int- Throws:
RemoteException- If error communicating with remote object.
-
setColumnType
void setColumnType(String inColumnType) throws RemoteException Sets theColumnTypevalue and sets the state to MetadataState.LOCAL.- Parameters:
inColumnType- String- Throws:
RemoteException- If error communicating with remote object.
-
setColumnType
void setColumnType(String inColumnType, int state) throws RemoteException Sets theColumnTypevalue and Metadata State.- Parameters:
inColumnType- Stringstate- int- Throws:
RemoteException- If error communicating with remote object.
-
setColumnTypeState
void setColumnTypeState(int state) throws RemoteException Sets the Metadata State ofColumnType.- Parameters:
state- int- Throws:
RemoteException- If error communicating with remote object.
-
setColumnName
void setColumnName(String inColumnName) throws RemoteException Sets theColumnNamevalue and sets the state to MetadataState.LOCAL.- Parameters:
inColumnName- String- Throws:
RemoteException- If error communicating with remote object.
-
setColumnName
void setColumnName(String inColumnName, int state) throws RemoteException Sets theColumnNameMetadata State.- Parameters:
inColumnName- Stringstate- int- Throws:
RemoteException- If error communicating with remote object.
-
setColumnNameState
void setColumnNameState(int state) throws RemoteException Sets the Metadata State ofColumnName.- Parameters:
state- int- Throws:
RemoteException- If error communicating with remote object.
-