|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UniqueKey
A representation of the unique and primary keys of a table. It is also associated with the columns in the table that comprise the key.
Attributes of UniqueKey are:
Associations of UniqueKey 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(); UniqueKey myObject = (UniqueKey) factory.createComplexMetadataObject(objectStore, "UniqueKey_Object", MetadataObjects.UNIQUEKEY, "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_FOREIGNKEYS_NAME
Constant used for the name of the ForeignKeys association. |
static java.lang.String |
ASSOCIATION_TABLE_NAME
Constant used for the name of the Table association. |
static java.lang.String |
ATTRIBUTE_ISPRIMARY_NAME
Constant used for the name of the IsPrimary attribute. |
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 |
getForeignKeys()
Gets the Association list of ForeignKeys |
AssociationList |
getForeignKeys(boolean fGoToServer)
Gets the Associationlist of ForeignKeys |
int |
getIsPrimary()
Gets the int value of IsPrimary |
int |
getIsPrimaryState()
Gets the Metadata State of IsPrimary |
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: |
void |
initializeRequiredObjects()
(S) This initializes the Required Objects(Roles) which are: Table |
void |
setForeignKeys(AssociationList list)
Sets the ForeignKeys list to be list . |
void |
setForeignKeys(AssociationList inObjects,
int state)
Sets the entire ForeignKeys list to match the passed in AssociationList, sets the state of the ForeignKeys |
void |
setIsPrimary(int inIsPrimary)
Sets the IsPrimary value and sets the state to MetadataState.LOCAL. |
void |
setIsPrimary(int inIsPrimary,
int state)
Sets the IsPrimary Metadata State. |
void |
setIsPrimary(java.lang.String inIsPrimary)
Sets the IsPrimary value and sets the state to MetadataState.LOCAL. |
void |
setIsPrimary(java.lang.String inIsPrimary,
int state)
Sets the IsPrimary value and Metadata State. |
void |
setIsPrimaryState(int state)
Sets the Metadata State of IsPrimary . |
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 ATTRIBUTE_ISPRIMARY_NAME
IsPrimary: If the key is a primary key, the value of this attribute should be true. The default value is false.
static final java.lang.String ASSOCIATION_FOREIGNKEYS_NAME
ForeignKeys: The list of foreign keys that are associated with this unique key.
static final java.lang.String ASSOCIATION_TABLE_NAME
Table: The table that owns this unique 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
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.int getIsPrimary() throws java.rmi.RemoteException
int
value of IsPrimary
IsPrimary
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getIsPrimaryState() throws java.rmi.RemoteException
IsPrimary
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.AssociationList getForeignKeys() throws java.rmi.RemoteException, MdException
ForeignKeys
ForeignKeys
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 getForeignKeys(boolean fGoToServer) throws java.rmi.RemoteException, MdException
ForeignKeys
fGoToServer
- boolean Get the value from the server.
ForeignKeys
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 setIsPrimary(int inIsPrimary) throws java.rmi.RemoteException
IsPrimary
value and sets the state to MetadataState.LOCAL.
inIsPrimary
- int
java.rmi.RemoteException
- If error communicating with remote object.void setIsPrimary(int inIsPrimary, int state) throws java.rmi.RemoteException
IsPrimary
Metadata State.
inIsPrimary
- intstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setIsPrimary(java.lang.String inIsPrimary) throws java.rmi.RemoteException
IsPrimary
value and sets the state to MetadataState.LOCAL.
inIsPrimary
- String
java.rmi.RemoteException
- If error communicating with remote object.void setIsPrimary(java.lang.String inIsPrimary, int state) throws java.rmi.RemoteException
IsPrimary
value and Metadata State.
inIsPrimary
- Stringstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setIsPrimaryState(int state) throws java.rmi.RemoteException
IsPrimary
.
state
- int
java.rmi.RemoteException
- If error communicating with remote object.void setForeignKeys(AssociationList list) throws java.rmi.RemoteException
ForeignKeys
list to be list
. Objects of which can be of type:
list
- AssociationList
java.rmi.RemoteException
- If error communicating with remote object.void setForeignKeys(AssociationList inObjects, int state) throws java.rmi.RemoteException
inObjects
- AssociationListstate
- int
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 |