com.webmethods.portal.service.meta2.thing
Interface IThingID

All Superinterfaces:
Cloneable, IURI, Serializable

public interface IThingID
extends IURI


Field Summary
static int THINGID_WIDTH
          defines the size of string versions of the dbID (ex:0000012134)
 
Method Summary
 boolean exists()
          Does this ID exist in the system? Warning will always result in a DB call, use sparingly
 int getDBState()
          gets thing state as it exists in the DB warning will always result in a DB call, use sparingly
 IMetaContext getMetaContext()
          get the meta context for this thing
 IThing getThing()
           
 void initialize(String uri)
          Initialize this thingID via URI string Do not call directly, use PortalSystem.acquireURI(java.lang.String)
 boolean isValid()
          false if not a valid ID
 String toString()
          The URI of this thingID
 
Methods inherited from interface com.webmethods.portal.system.IURI
clone, getSegment, getSegments, getSegments, getServiceName, getSize
 

Field Detail

THINGID_WIDTH

static final int THINGID_WIDTH
defines the size of string versions of the dbID (ex:0000012134)

See Also:
Constant Field Values
Method Detail

getMetaContext

IMetaContext getMetaContext()
get the meta context for this thing

Returns:
IMetaContext

isValid

boolean isValid()
false if not a valid ID

Returns:
boolean

getThing

IThing getThing()
Returns:
instantiated thing, or null if invalid ID or xtype ID

getDBState

int getDBState()
gets thing state as it exists in the DB warning will always result in a DB call, use sparingly

See Also:
com.webmethods.portal.service.meta2.thing.IThingState

exists

boolean exists()
Does this ID exist in the system? Warning will always result in a DB call, use sparingly


toString

String toString()
The URI of this thingID

Specified by:
toString in interface IURI
Overrides:
toString in class Object
Returns:
string representation
See Also:
IURI, Object

initialize

void initialize(String uri)
                throws PortalException
Initialize this thingID via URI string Do not call directly, use PortalSystem.acquireURI(java.lang.String)

Specified by:
initialize in interface IURI
Parameters:
uri -
Throws:
PortalException - if invalid URI
See Also:
IURI