Try this one: o.ea_guid As CLASSGUID, o.Object_type As CLASSTYPE,
'Behaviour' As Usage, o.name As ElementName,
o.Object_Type As ElementType, o.stereotype As ElementStereotype,
'' As Diagram, o.ea_guid
FROM t_operation op, t_object o
WHERE
op.EA_GUID = '<Search Term>' AND
#DB=JET# op.Behaviour = o.EA_GUID #DB=JET#
#DB=ORACLE# Cast(op.Behaviour As Varchar2(38)) = o.EA_GUID #DB=ORACLE#
#DB=ORACLE#
/* --- Find State Operation from Class operation (do,entry,exit) --- */
#DB=ORACLE#
UNION
SELECT
op.ea_guid, 'Operation', 'Operation Class<--> State', op.name,
Type, op.stereotype, '', op.ea_guid
FROM t_operation op
WHERE
#DB=JET# op.Behaviour = '<Search Term>' #DB=JET#
#DB=ORACLE#
Cast(op.Behaviour As Varchar2(38)) = '<Search Term>'
#DB=ORACLE#
#DB=ORACLE#
/* --- Find Class Operation from State operation (do,entry,exit) --- */
#DB=ORACLE#
UNION
SELECT
op.ea_guid, 'Operation', 'Operation Class<--> State', op.name,
op.Type, op.stereotype,'', op.ea_guid
FROM t_operation opState, t_operation op
WHERE
opState.ea_guid = '<Search Term>' AND
#DB=JET# opState.Behaviour = op.ea_guid #DB=JET#
#DB=ORACLE# Cast(op.Behaviour As Varchar2(38)) = op.ea_guid #DB=ORACLE#
#DB=SQLSVR#
/* --- Find Call Action -------------------------------------------- */
#DB=SQLSVR#
UNION
SELECT
o.ea_guid, o.Object_Type, 'Call Action', o.name,
o.Object_Type, o.stereotype,'', o.ea_guid
FROM t_operation op, t_object o
WHERE
o.Classifier_GUID = '<Search Term>'
AND o.Classifier_GUID = op.ea_GUID
#DB=SQLSVR#
/* --- Find return type of method----------------------------------- */
#DB=SQLSVR#
UNION
SELECT
o.ea_guid, o.Object_Type, 'ReturnType', o.name,
o.Object_Type, o.stereotype,'', o.ea_guid
FROM t_operation op, t_object o, t_object o1
WHERE
op.EA_GUID = '<Search Term>' AND
#DB=JET# Format(o.Object_ID) = op.Classifier #DB=JET#
#DB=ORACLE# o.Object_ID = op.Classifier #DB=ORACLE#
#DB=SQLSRV# Usage in Sequence Diagram #DB=SQLSRV#
AND op.object_id = o1.object_id
UNION
SELECT
c.ea_guid, c.connector_type, 'Sequence', c.name, 'Operation',
o.stereotype,d.name, c.ea_guid
FROM
t_connector c, t_object o, t_operation op,
t_diagram d, t_diagramlinks dl
WHERE
c.end_object_id = o.object_id AND o.object_id = op.object_id AND
'<Search Term>' = op.ea_guid AND dl.diagramID = d.diagram_ID AND
dl.connectorID = c.connector_id
UNION
SELECT
c.ea_guid, c.connector_type, 'Sequence', c.name,
'Operation', o.stereotype, d.name, c.ea_guid
FROM
t_connector c, t_object o1, t_object o, t_operation op,
t_diagram d, t_diagramlinks dl
WHERE
c.end_object_id = o1.object_id AND o1.object_id = o.object_id AND
o.object_id = op.object_id AND '<Search Term>' = op.ea_guid AND
dl.diagramID = d.diagram_ID AND dl.connectorID = c.connector_id
Order By 3,4
You need to create a search with the SQL builder. Type "SELECT " manually and paste the rest of above SQL (somehow pasting a whole SQL confuses EA...). In this form you must supply the ea_guid of the operation for the search.
q.