|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ForeignKey
Represents the fact that a table contains a foreign key to another table.
Attributes of ForeignKey are:
Associations of ForeignKey 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(); ForeignKey myObject = (ForeignKey) factory.createComplexMetadataObject(objectStore, "ForeignKey_Object", MetadataObjects.FOREIGNKEY, "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_KEYASSOCIATIONS_NAME
Constant used for the name of the KeyAssociations association. |
static java.lang.String |
ASSOCIATION_PARTNERUNIQUEKEY_NAME
Constant used for the name of the PartnerUniqueKey association. |
static java.lang.String |
ASSOCIATION_TABLE_NAME
Constant used for the name of the Table association. |
Fields inherited from interface com.sas.metadata.remote.Key |
---|
ASSOCIATION_DISPLAYCOLUMNS_NAME, ASSOCIATION_KEYEDCOLUMNS_NAME |
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 | |
---|---|
AssociationList |
getKeyAssociations()
Gets the AssociationList of KeyAssociations |
AssociationList |
getKeyAssociations(boolean fGoToServer)
Gets the Associationlist of KeyAssociations |
UniqueKey |
getPartnerUniqueKey()
Gets the UniqueKey for PartnerUniqueKey |
AssociationList |
getPartnerUniqueKeys()
Gets the AssociationList of PartnerUniqueKeys |
AssociationList |
getPartnerUniqueKeys(boolean fGoToServer)
Gets the Associationlist of PartnerUniqueKeys |
DataTable |
getTable()
Gets the DataTable for Table |
AssociationList |
getTables()
Gets the Association list of Tables |
AssociationList |
getTables(boolean fGoToServer)
Gets the Associationlist of Tables |
void |
initializePredObjects()
(S) Adds the Associated objects to the predObjects which are: KeyAssociations PartnerUniqueKey |
void |
initializeRequiredObjects()
(S) This initializes the Required Objects(Roles) which are: Table |
void |
setKeyAssociations(AssociationList list)
Sets the KeyAssociations list to be list . |
void |
setKeyAssociations(AssociationList inObjects,
int state)
Sets the entire AssociationList to match the passed in Vector, sets the state of the AssociationList |
void |
setPartnerUniqueKey(UniqueKey inObject)
Sets the PartnerUniqueKeys list 0th element to be inObject . |
void |
setPartnerUniqueKeys(AssociationList list)
Sets the PartnerUniqueKeys list to be list . |
void |
setPartnerUniqueKeys(AssociationList list,
int state)
Sets the PartnerUniqueKeys list to be list . |
void |
setTable(DataTable inObject)
Sets the Tables list 0th element to be inObject . |
void |
setTables(AssociationList list)
Sets the Tables list to be list . |
void |
setTables(AssociationList list,
int state)
Sets the Tables list to be list . |
Methods inherited from interface com.sas.metadata.remote.Key |
---|
getDisplayColumns, getDisplayColumns, getKeyedColumns, getKeyedColumns, setDisplayColumns, setDisplayColumns, setKeyedColumns, setKeyedColumns |
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_KEYASSOCIATIONS_NAME
KeyAssociations: The list of association objects that associate a column in this foreign key to a column in the unique key.
static final java.lang.String ASSOCIATION_PARTNERUNIQUEKEY_NAME
PartnerUniqueKey: The unique key associated with this foreign key.
static final java.lang.String ASSOCIATION_TABLE_NAME
Table: The table that contains this foreign key.
Method Detail |
---|
void initializeRequiredObjects() throws java.rmi.RemoteException
Table
initializeRequiredObjects
in interface Key
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
KeyAssociations
PartnerUniqueKey
initializePredObjects
in interface Key
initializePredObjects
in interface MdObjectBase
initializePredObjects
in interface Root
initializePredObjects
in interface SecondaryType
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.AssociationList getKeyAssociations() throws java.rmi.RemoteException, MdException
KeyAssociations
KeyAssociations
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 getPartnerUniqueKeys() throws java.rmi.RemoteException, MdException
PartnerUniqueKeys
PartnerUniqueKeys
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
UniqueKey getPartnerUniqueKey() throws java.rmi.RemoteException, MdException
UniqueKey
for PartnerUniqueKey
UniqueKey
( null
if not set) of PartnerUniqueKey
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 getTables() throws java.rmi.RemoteException, MdException
Tables
Tables
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.DataTable getTable() throws java.rmi.RemoteException, MdException
DataTable
for Table
DataTable
( null
if not set ) of Table
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 getKeyAssociations(boolean fGoToServer) throws java.rmi.RemoteException, MdException
KeyAssociations
fGoToServer
- boolean Get the value from the server.
KeyAssociations
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 getPartnerUniqueKeys(boolean fGoToServer) throws java.rmi.RemoteException, MdException
PartnerUniqueKeys
fGoToServer
- boolean Get the value from the server.
PartnerUniqueKeys
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 getTables(boolean fGoToServer) throws java.rmi.RemoteException, MdException
Tables
fGoToServer
- boolean Get the value from the server.
Tables
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 setKeyAssociations(AssociationList list) throws java.rmi.RemoteException
KeyAssociations
list to be list
. Objects of which can be of type:
list
- AssociationList
java.rmi.RemoteException
- If error communicating with remote object.void setKeyAssociations(AssociationList inObjects, int state) throws java.rmi.RemoteException
inObjects
- AssociationListstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setPartnerUniqueKeys(AssociationList list) throws java.rmi.RemoteException
PartnerUniqueKeys
list to be list
. Object of which can be of type:
list
- AssociationList
java.rmi.RemoteException
- If error communicating with remote object.void setPartnerUniqueKeys(AssociationList list, int state) throws java.rmi.RemoteException
PartnerUniqueKeys
list to be list
. Object of which can be of type:
list
- AssociationListstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setPartnerUniqueKey(UniqueKey inObject) throws java.rmi.RemoteException
PartnerUniqueKeys
list 0th element to be inObject
.
inObject
- UniqueKey
java.rmi.RemoteException
- If error communicating with remote object.void setTables(AssociationList list) throws java.rmi.RemoteException
Tables
list to be list
. Objects of which can be of type:
list
- AssociationList
java.rmi.RemoteException
- If error communicating with remote object.void setTables(AssociationList list, int state) throws java.rmi.RemoteException
Tables
list to be list
. Objects of which can be of type:
list
- AssociationListstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setTable(DataTable inObject) throws java.rmi.RemoteException
Tables
list 0th element to be inObject
.
inObject
- DataTable
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 |