|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KeyAssociation
Represents the relationship between two columns in a foreign key, unique key relationship. For example, if table a has a unique key of columns a1 and a2, and table b has a foreign key, of columns b1 and b2, into table a, there is a keyassociation between the columns that relate to each other, for ex. b1 to a1 and b2 to a2.
Attributes of KeyAssociation are:
Associations of KeyAssociation are:
factory
create methods. // 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(); KeyAssociation myObject = (KeyAssociation) factory.createComplexMetadataObject(objectStore, "KeyAssociation_Object", MetadataObjects.KEYASSOCIATION, "AAAAAAAA"); myObject.updateMetadataAll(); // Write object to server objectStore.dispose(); // dispose of the object store if it is no longer needed
MdOMIUtil
.
updateMetadataAll
method.
delete
method 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.
Field Summary | |
---|---|
static java.lang.String |
ASSOCIATION_FOREIGNKEYCOLUMN_NAME
Constant used for the name of the ForeignKeyColumn association. |
static java.lang.String |
ASSOCIATION_OWNINGFOREIGNKEY_NAME
Constant used for the name of the OwningForeignKey association. |
static java.lang.String |
ASSOCIATION_UNIQUEKEYCOLUMN_NAME
Constant used for the name of the UniqueKeyColumn association. |
Fields inherited from interface com.sas.metadata.remote.MdObjectBase |
---|
ATTRIBUTE_DESC_NAME, ATTRIBUTE_ID_NAME, ATTRIBUTE_METADATACREATED_NAME, ATTRIBUTE_METADATAUPDATED_NAME, ATTRIBUTE_NAME_NAME |
Method Summary | |
---|---|
Column |
getForeignKeyColumn()
Gets the Column for ForeignKeyColumn |
AssociationList |
getForeignKeyColumns()
Gets the AssociationList of ForeignKeyColumns |
AssociationList |
getForeignKeyColumns(boolean fGoToServer)
Gets the Associationlist of ForeignKeyColumns |
ForeignKey |
getOwningForeignKey()
Gets the ForeignKey for OwningForeignKey |
AssociationList |
getOwningForeignKeys()
Gets the Association list of OwningForeignKeys |
AssociationList |
getOwningForeignKeys(boolean fGoToServer)
Gets the Associationlist of OwningForeignKeys |
Column |
getUniqueKeyColumn()
Gets the Column for UniqueKeyColumn |
AssociationList |
getUniqueKeyColumns()
Gets the AssociationList of UniqueKeyColumns |
AssociationList |
getUniqueKeyColumns(boolean fGoToServer)
Gets the Associationlist of UniqueKeyColumns |
void |
initializePredObjects()
(S) Adds the Associated objects to the predObjects which are: ForeignKeyColumn UniqueKeyColumn |
void |
initializeRequiredObjects()
(S) This initializes the Required Objects(Roles) which are: OwningForeignKey |
void |
setForeignKeyColumn(Column inObject)
Sets the ForeignKeyColumns list 0th element to be inObject . |
void |
setForeignKeyColumns(AssociationList list)
Sets the ForeignKeyColumns list to be list . |
void |
setForeignKeyColumns(AssociationList list,
int state)
Sets the ForeignKeyColumns list to be list . |
void |
setOwningForeignKey(ForeignKey inObject)
Sets the OwningForeignKeys list 0th element to be inObject . |
void |
setOwningForeignKeys(AssociationList list)
Sets the OwningForeignKeys list to be list . |
void |
setOwningForeignKeys(AssociationList list,
int state)
Sets the OwningForeignKeys list to be list . |
void |
setUniqueKeyColumn(Column inObject)
Sets the UniqueKeyColumns list 0th element to be inObject . |
void |
setUniqueKeyColumns(AssociationList list)
Sets the UniqueKeyColumns list to be list . |
void |
setUniqueKeyColumns(AssociationList list,
int state)
Sets the UniqueKeyColumns list to be list . |
Methods inherited from interface com.sas.metadata.remote.MdObjectBaseXML |
---|
closeUpdateMetadataXML, createEmptyXML, createObjectRefreshXML, createObjectXML, createObjectXML, createUpdateAssociationXML, createUpdateAssociationXML, createUpdateSimpleXML, doCreateUpdateXML, getUpdateSimpleSubstring, updateMetadataAll |
Field Detail |
---|
static final java.lang.String ASSOCIATION_FOREIGNKEYCOLUMN_NAME
ForeignKeyColumn: The columns that comprise a foreign key. Through this object, the foreign key columns are associated with the columns that comprise a particular unique key.
static final java.lang.String ASSOCIATION_UNIQUEKEYCOLUMN_NAME
UniqueKeyColumn: The column that is part of a unique key that is associated through this object with a column that is part of a foreign key.
static final java.lang.String ASSOCIATION_OWNINGFOREIGNKEY_NAME
OwningForeignKey: The foreign key associated with this object.
Method Detail |
---|
void initializeRequiredObjects() throws java.rmi.RemoteException
OwningForeignKey
initializeRequiredObjects
in interface MdObjectBaseUtil
initializeRequiredObjects
in interface Root
initializeRequiredObjects
in interface SecondaryType
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.void initializePredObjects() throws java.rmi.RemoteException
ForeignKeyColumn
UniqueKeyColumn
initializePredObjects
in interface MdObjectBase
initializePredObjects
in interface Root
initializePredObjects
in interface SecondaryType
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.AssociationList getForeignKeyColumns() throws java.rmi.RemoteException, MdException
ForeignKeyColumns
ForeignKeyColumns
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
Column getForeignKeyColumn() throws java.rmi.RemoteException, MdException
Column
for ForeignKeyColumn
Column
( null
if not set) of ForeignKeyColumn
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.AssociationList getUniqueKeyColumns() throws java.rmi.RemoteException, MdException
UniqueKeyColumns
UniqueKeyColumns
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
Column getUniqueKeyColumn() throws java.rmi.RemoteException, MdException
Column
for UniqueKeyColumn
Column
( null
if not set) of UniqueKeyColumn
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.AssociationList getOwningForeignKeys() throws java.rmi.RemoteException, MdException
OwningForeignKeys
OwningForeignKeys
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.ForeignKey getOwningForeignKey() throws java.rmi.RemoteException, MdException
ForeignKey
for OwningForeignKey
ForeignKey
( null
if not set ) of OwningForeignKey
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.AssociationList getForeignKeyColumns(boolean fGoToServer) throws java.rmi.RemoteException, MdException
ForeignKeyColumns
fGoToServer
- boolean Get the value from the server.
ForeignKeyColumns
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.AssociationList getUniqueKeyColumns(boolean fGoToServer) throws java.rmi.RemoteException, MdException
UniqueKeyColumns
fGoToServer
- boolean Get the value from the server.
UniqueKeyColumns
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.AssociationList getOwningForeignKeys(boolean fGoToServer) throws java.rmi.RemoteException, MdException
OwningForeignKeys
fGoToServer
- boolean Get the value from the server.
OwningForeignKeys
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.void setForeignKeyColumns(AssociationList list) throws java.rmi.RemoteException
ForeignKeyColumns
list to be list
. Object of which can be of type:
list
- AssociationList
java.rmi.RemoteException
- If error communicating with remote object.void setForeignKeyColumns(AssociationList list, int state) throws java.rmi.RemoteException
ForeignKeyColumns
list to be list
. Object of which can be of type:
list
- AssociationListstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setForeignKeyColumn(Column inObject) throws java.rmi.RemoteException
ForeignKeyColumns
list 0th element to be inObject
.
inObject
- Column
java.rmi.RemoteException
- If error communicating with remote object.void setUniqueKeyColumns(AssociationList list) throws java.rmi.RemoteException
UniqueKeyColumns
list to be list
. Object of which can be of type:
list
- AssociationList
java.rmi.RemoteException
- If error communicating with remote object.void setUniqueKeyColumns(AssociationList list, int state) throws java.rmi.RemoteException
UniqueKeyColumns
list to be list
. Object of which can be of type:
list
- AssociationListstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setUniqueKeyColumn(Column inObject) throws java.rmi.RemoteException
UniqueKeyColumns
list 0th element to be inObject
.
inObject
- Column
java.rmi.RemoteException
- If error communicating with remote object.void setOwningForeignKeys(AssociationList list) throws java.rmi.RemoteException
OwningForeignKeys
list to be list
. Objects of which can be of type:
list
- AssociationList
java.rmi.RemoteException
- If error communicating with remote object.void setOwningForeignKeys(AssociationList list, int state) throws java.rmi.RemoteException
OwningForeignKeys
list to be list
. Objects of which can be of type:
list
- AssociationListstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setOwningForeignKey(ForeignKey inObject) throws java.rmi.RemoteException
OwningForeignKeys
list 0th element to be inObject
.
inObject
- ForeignKey
java.rmi.RemoteException
- If error communicating with remote object.
|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |