Package com.ptc.netmarkets.model
Class NmOid
java.lang.Object
com.ptc.netmarkets.model.NmOid
- All Implemented Interfaces:
Externalizable,Serializable,Cloneable
- Direct Known Subclasses:
ChangeableObjectBean,NmSimpleOid
Supported API: true
Extendable: true
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNmOid()
Supported API: trueDeprecated.Use NmOid.newNmOid( String ) insteadNmOid(String type, ObjectIdentifier oid)
Supported API: trueNmOid(ObjectIdentifier oid) Create an NmOid from an ObjectIdentifier.
Supported API: trueNmOid(Persistable p) Create an NmOid from a Persistable.
Supported API: trueNmOid(VersionForeignKey verId) Create an NmOid from a VersionForeignKey.
Supported API: true -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.since 10.1 M010Deprecated.This api has been deprecated as it squashes the NotAutorizedException.gets the parent container of the object
Supported API: trueDeprecated.This api has been deprecated as it squashes the NotAutorizedException and returns null in case of that exception.Gets the parent containerRef of the object.Deprecated.This api has been deprecated as it squashes the NotAutorizedException and returns null in case of that exception.Get object associated with the NmOid ObjectIdentifier.getOid()Deprecated.This api has been deprecated as it squashes the NotAutorizedException.Gets the ObjectIdentifier that this NmOid represents.Class<?>Get the class referenced by this oid.
Supported API: trueThe name of the class referenced by this oid.
Supported API: trueDeprecated.This api has been deprecated as it squashes the NotAutorizedException and returns null in case of that exception.Get object associated with the NmOid ObjectIdentifier.Gets the object reference as a String.
Supported API: trueInflates the referenced object (typically from the database) Supported API: truegetSCM()Gets the shared container map.
Supported API: trueGets the value of the attribute: sharedContainer.getType()Deprecated.UsegetReferencedClass()orisA(Class)getVerId()Gets the VersionForeignKey that this NmOid represents.getWtRef()Gets the value of the attribute: wtRef.static booleanDetermines if the object references an instance of the class provided.booleanDetermines if the object references is an instance of the class provided.
Supported API: truebooleanWhether or not the object reference is inflated.
Supported API: truebooleanisShared()
Supported API: truebooleanGets the value of the attribute: sharedFrom.booleanGets the value of the attribute: sharedTo.booleanisVerOid()return boolean of if this NmOid object represents a Version ref or a specific Instance ref.static NmOidConstructs an NmOid from a string
Supported API: truestatic NmOidConstructs an NmOid from a ObjectIdentifier.
Supported API: truevoidsetAdditionalInfo(HashMap a_AdditionalInfo) Deprecated.since 10.1 M010voidSets the parent containerRef of the object does not persist the change, just aviods a db hit next time this oid is asked for its containerref
Supported API: truevoidsetOid(ObjectIdentifier objId) Sets the ObjectIdentifier that this NmOid represents.voidSets the object or reference to the object on the NmOid
Supported API: truevoidsetSCM(SharedContainerMap ascm) Sets the shared container map.
Supported API: truevoidsetSharedContainer(NmOid a_SharedContainer) Sets the value of the attribute: sharedContainer.voidsetSharedFrom(boolean a_SharedFrom) Sets the value of the attribute: sharedFrom.voidsetSharedTo(boolean a_SharedTo) Sets the value of the attribute: sharedTo.voidSets the value of the attribute: type.voidsetVerId(VersionForeignKey verId) Sets the VersionForeignKey that this NmOid represents.voidsetWtRef(WTReference a_WtRef) Sets the value of the attribute: wtRef.
-
Constructor Details
-
NmOid
public NmOid()
Supported API: true -
NmOid
Supported API: true- Parameters:
type-oid-- Throws:
WTException
-
NmOid
Deprecated.Use NmOid.newNmOid( String ) instead
Supported API: true- Parameters:
nmOidStr-- Throws:
WTException
-
NmOid
Create an NmOid from an ObjectIdentifier.
Supported API: true- Parameters:
oid- object identifier- Throws:
WTException- if oid is invalid
-
NmOid
Create an NmOid from a VersionForeignKey.
Supported API: true- Parameters:
verId- version foreign key- Throws:
WTException- if version foreign key is invalid
-
NmOid
Create an NmOid from a Persistable.
Supported API: true- Parameters:
p- the persistable- Throws:
WTException- if the persistable is invalid
-
-
Method Details
-
getType
Deprecated.UsegetReferencedClass()orisA(Class)Gets the value of the attribute: type.
Supported API: true- Returns:
- String
-
setType
Sets the value of the attribute: type.
Supported API: true- Parameters:
a_Type-
-
getRefObject
Inflates the referenced object (typically from the database) Supported API: true- Returns:
- Object
- Throws:
WTException
-
setRef
Sets the object or reference to the object on the NmOid
Supported API: true- Parameters:
a_Ref-- Throws:
WTException
-
getAdditionalInfo
Deprecated.since 10.1 M010Gets the value of the attribute: additionalInfo. Generic map of additional attributes
Supported API: true- Returns:
- HashMap
-
setAdditionalInfo
Deprecated.since 10.1 M010Sets the value of the attribute: additionalInfo.
Supported API: true- Parameters:
a_AdditionalInfo-
-
getWtRef
Gets the value of the attribute: wtRef.
Supported API: true- Returns:
- WTReference
-
setWtRef
Sets the value of the attribute: wtRef.
Supported API: true- Parameters:
a_WtRef-- Throws:
WTException
-
getOid
Deprecated.This api has been deprecated as it squashes the NotAutorizedException. UsegetOidObject()instead.Gets the ObjectIdentifier that this NmOid represents.
Supported API: true- Returns:
- ObjectIdentifier
-
getOidObject
Gets the ObjectIdentifier that this NmOid represents.
Supported API: true- Returns:
- ObjectIdentifier
-
setOid
Sets the ObjectIdentifier that this NmOid represents.
Supported API: true- Parameters:
objId-- Throws:
WTException
-
getVerId
Gets the VersionForeignKey that this NmOid represents.
Supported API: true- Returns:
- VersionForeignKey
-
setVerId
Sets the VersionForeignKey that this NmOid represents.
Supported API: true- Parameters:
verId-- Throws:
WTException
-
newNmOid
Constructs an NmOid from a string
Supported API: true- Parameters:
oidStr- oid string- Returns:
- oid
- Throws:
WTException- should never be thrown
-
newNmOid
Constructs an NmOid from a ObjectIdentifier.
Supported API: true- Parameters:
oi- object identifier- Returns:
- the object oid
- Throws:
WTException- if oid can not be constructed from the provided identifier
-
getContainer
Deprecated.This api has been deprecated as it squashes the NotAutorizedException. UsegetContainerObject()instead.Gets the parent container of the object.
Supported API: true- Returns:
- the container
- Throws:
WTException- should not be thrown as exceptions get squashed
-
getContainerObject
gets the parent container of the object
Supported API: true- Returns:
- the container
- Throws:
WTException- if an exception occurs getting the container reference
-
getContainerRef
Deprecated.This api has been deprecated as it squashes the NotAutorizedException and returns null in case of that exception. UsegetContainerReference()instead.Gets the parent containerRef of the object.
Supported API: true- Returns:
- Throws:
WTException
-
getContainerReference
Gets the parent containerRef of the object.
Supported API: true- Returns:
- WTContainerRef object
- Throws:
WTException
-
setContainerRef
Sets the parent containerRef of the object does not persist the change, just aviods a db hit next time this oid is asked for its containerref
Supported API: true- Parameters:
aref- the container ref
-
getSCM
Gets the shared container map.
Supported API: true- Returns:
- the shared container map
-
isRefInflated
Whether or not the object reference is inflated.
Supported API: true- Returns:
- true if the object is inflated, false it if is not
- Throws:
WTException- should not be thrown
-
getLatestIteration
Deprecated.This api has been deprecated as it squashes the NotAutorizedException and returns null in case of that exception. UsegetLatestIterationObject()instead.Get object associated with the NmOid ObjectIdentifier. Differs from getRef in that getRef does not return the latest iteration.
Supported API: true- Returns:
- the latest iteration of the object
- Throws:
WTException- should not be thrown as this squashes exceptions
-
getLatestIterationObject
Get object associated with the NmOid ObjectIdentifier. Differs from getRef in that getRef does not return the latest iteration.
Supported API: true- Returns:
- Object the latest iteration of the object
- Throws:
WTException- if the object can not be retrieved
-
getReferencedIteration
Deprecated.This api has been deprecated as it squashes the NotAutorizedException and returns null in case of that exception. UsegetReferencedIterationObject()instead.Get object associated with the NmOid ObjectIdentifier. Differs from getRef in that getRef does not return the latest iteration.
Supported API: true- Returns:
- the referenced iteration of the object
- Throws:
WTException- should not be thrown as this squashes exceptions
-
getReferencedIterationObject
Get object associated with the NmOid ObjectIdentifier. Differs from getRef in that getRef does not return the latest iteration.
Supported API: true- Returns:
- Object
- Throws:
WTException
-
isVerOid
public boolean isVerOid()return boolean of if this NmOid object represents a Version ref or a specific Instance ref. Using the getRef() method on a Version Ref will return latest. *
Supported API: true- Returns:
- true is the backing object reference is a version reference, false otherwise
-
getReferencedClass
Get the class referenced by this oid.
Supported API: true- Returns:
- the class referenced by this oid
-
getReferencedClassString
The name of the class referenced by this oid.
Supported API: true- Returns:
- the name of the class referenced by this oid
-
isA
Determines if the object references is an instance of the class provided.
Supported API: true- Parameters:
aClass- class to check- Returns:
- true if the object references is an instance of the class provided, false otherwise
-
getReferenceString
Gets the object reference as a String.
Supported API: true- Returns:
- the object reference as a String
- Throws:
WTException- if there is a problem getting the reference string
-
isA
Determines if the object references an instance of the class provided. Static version ofisA(Class).
Supported API: true- Parameters:
aClass- class to checknmOid- the oid to check the class of- Returns:
-