Object Diagrams that support user define type (create type....and subtypes
Hello it would be very nice to be able to use user define types in a diagram, at this time oracle, ibm db2 9 and sql server 2005 suport sql ansi 2003 and to use all this potential we have to take tecnology foward. My sugestion is create object diagram that can help design all this funtionability, rational rose has the oracle8 addin this will give you an exact idea of what i am asking.
Thanks for your atention and let me know if you are planing to do this.
Perhaps this is not the right forum please tell me where I can send this as a future requests
JDeveloper has a UML class diagram with transformation into a Java class diagram - are you looking for anything beyond that?
Similar Messages
-
Is it possible to have user defined field in pick and pack manager
HI,
I would like to know whether it is possible to have user defined field in pick and pack manager row level.
Manage user defined field there is only provision for <b>pick list</b> and not for <b>Pick and pack</b>.
Regards
KrishnaThe Pick and Pack Manger doesn't relate to any specific table (nothing saved to the database), so it does not make any sense having a userdefiend field on it. I would guess that you could add a column and bind it to a userdatasource (not a SAP database field), but if this make any sense depends on what you are trying to achive...
-
Revision: 15220
Revision: 15220
Author: [email protected]
Date: 2010-04-05 10:29:52 -0700 (Mon, 05 Apr 2010)
Log Message:
Fix static initialization order in OSMFPlayer, so that the Log doesn't create TraceLoggers and DebugLoggers.
Modified Paths:
osmf/trunk/apps/samples/framework/OSMFPlayer/src/OSMFPlayer.asshak wrote:
I've followed the first method with the mpd daemon and everything worked fine .
THanks for all your help everyone !
The add of MPD : ALL to hosts.allow seems to solved it .
Thanks again!
Nice.
Please mark threads as [SOLVED] when they are. You can do so by editing the opening post. -
Does Map Support User-Defined Object As Key?
Hi,
Map m = new HashMap();
m.put(myobj1, "Hello");
m.put(myobj2, "World");
I'm using my own object as the key for the map.
Since the key is a user-defined object, I would need to overload the equality operator in order to get the value.
Now, if I would to do something like this:
MyObj myObj = (MyObj)m.get(myobj3);
I found out that the equality operator for MyObj never even executes (by printing out some message). But if I would to retrieve using the original myobj1 and myobj2 object, then only the equality operator would get executed.
If I would to do the above using the String object instead of MyObj, the equality operator works fine.
I can't seemed to find a reason for the above behaviour. Any ideas?
Thanks in advance.In a hashmap, the object is located/stored by calculating its hash code. Therefore, you need to also override the hashCode() method of the Object class so that the same objects return the same hashCode, so that you can retrieve your objects.
-
ORA-22979: cannot INSERT object view REF or user-defined REF
I'm getting this error when trying to insert a parent_type object into an object table. The parent object contains a nested table of parent object references.
CREATE TYPE cl_ArgList AS TABLE OF REF cl_Expression
CREATE TYPE cl_Expression AS OBJECT (
args cl_ArgList;
Somehow the system-generated parent object REF that is returned from one STATIC function (using MAKE_REF) turns into a incompatible REF by the time it is passed to aother STATIC function and used in the constructor of the nested table for a new args instance.
Does anybody know how this might be happening?
Is there any way to test if a REF is a valid system-generated REF vs. a user-defined REF?
I don't even know what a user-defined REF is, how I might be getting one, and what's wrong with it anyway. Shouldn't strong-typing ensure that the REF is okay if it is of the appropriate type?
Glenn.Okay, solved that.
FYI the problem is that the nested table arguments (REF cl_Expression) have to be SCOPED REFs, ie. constrained to refer only to objects in a particular table (although I don't really understand why).
Then of course the trick is how to constrain the arguments in the nested table, because you can't do it in the CREATE TYPE statement. You also can't do it when you create the containing table, when you define how the nested table is stored:
CREATE TABLE <containing table> OF cl_Expression (
NESTED TABLE args STORE AS t_args
Instead you have to modify the nested table properties after it has been created:
ALTER TABLE t_args ADD (SCOPE FOR (column_value) IS t_Induhvidual);
'column_value' is the actual syntax, not your own column name.
But you probably knew that ;-) -
In XML Gateway Responsibility How to add User defined Trading Partner type.
Hi,
We have a requirements to add user defind Trading Partner Type apart from the default trading partner type.
How to do this? If any one know , kinldy let me explain it
ThanksI looked it up in the mean time ...
The docs state that you only can use simple data type or java.util.list or AttributeList (which is a wrapper for any viewRow). So I guess you have to somehow flatten your complex data type or create a custom VO which holds it.
http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcextservices.htm#CJAEHFJD
Scroll down to 11.2.3
Timo -
Does SQL Server agent/IIS plugin support User-Defined metrics?
Hi,
Does anyone know if there is a way to add a user-defined metric that connects to a SQL Server database?
ThanksRecently, I released a full MySQL plug-in, for example - http://www.pythian.com/blogs/mysql-plug-in-for-oracle-grid-control
For me it's not very difficult but it takes some time to get used to.
I did presentations on creating Management plug-ins and couple articles in IOUG SELECT Magazine. The latest presentation and whitepaper is here - http://www.pythian.com/blogs/466/ioug-collaborate-07-oracle-10g-grid-control
Official extensibility guide has much more details and is priceless reference but, still, not everything is documented there. -
How xpsdrv support user defined paper size
hi,I am developing a xpsdrv,the xpsdrv has inculde some system paper like A4.But I need paper defined by users themself.
so I add
*Option: CUSTOMSIZE
*rcNameID: =USER_DEFINED_SIZE_DISPLAY
*Name: "Custom size"
*MinSize: PAIR(1200, 4800)
*MaxSize: PAIR(32400, 19200)
*MaxPrintableWidth: 32400
*MinLeftMargin: 0
to the gpd file,but after install,no "user defined" button and no "user defined" dialog appear. the "user defined" button or "user defined" dialog should program by myself? how program user defined
paper size in xpsdrv?This printer does not support custom size papers. We need to use only those papers which are available in the drop down for paper size in the software. Open below link to see the list of paper sizes supported by this printer:
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02231304&cc=us&lc=en&dlc=en&product=4066377&tmp...
Say "Thanks" by clicking the Kudos Star in the post that helped you.
Please mark the post that solves your problem as "Accepted Solution" -
User defined field in SD and its link to Value field in COPA (??)
Dear All,
We have created one "Z" field i.e. user defined field and its in VBRP Table. This is a quantity field. to update the values in this field we have used an exit in sales and distribution module. Now, by defining this exit values are correctly populated in VPRP table on line item basis.
Requirement here is we need to get this field in COPA, for same i have carried out the quantity field assignment to value field (KE4M).
Even after this configuration profitability segment is not updated.
Regards,
Sayujya
Edited by: sayu on Mar 15, 2010 10:13 AMIn the past I did something similar and had to use function module EXIT_SAPLKEAB_001 in enhancement COPA0002 to populate the field. To use this exit you'll first need to add a user exit id to your valuation strategy (transaction KE4U). The help on the function module is pretty good, but if you run into a problem let me know.
thanks, -
How to grant user permission to create "Credential" and "Proxies"
Hi Team,
Kindly let me know how to grant permission for user to create "Credential" and "Proxies" on server:
Thanks in advance
SantoshCan I revoke this permissions once I grant?
You can use DROP and REVOKE commands to do the opposite.
USE [msdb]
GO
ALTER ROLE [SQLAgentOperatorRole] DROP MEMBER [TestLogin1]
GO
USE [msdb]
GO
ALTER ROLE [SQLAgentReaderRole] DROP MEMBER [TestLogin1]
GO
USE [msdb]
GO
ALTER ROLE [SQLAgentUserRole] DROP MEMBER [TestLogin1]
GO
use [master]
GO
REVOKE ALTER ANY CREDENTIAL TO [TestLogin1] AS [sa]
GO
Cheers,
Vaibhav Chaudhari
[MCTS],
[MCP] -
User define function - data type integer
All,
I am defining a udf. I can not select integer data type for an argument.
did anyone facer this issue.
regin UDF all the parameters are of the type String only. You can not change them. This is becaue, XI interanlly represents them as strings and maintains the Qs for contexts etc. So you have to type cast them manually to integers inside the UDF.
VJ -
Type, create outlines and merging questions
Hi,
I have type which I then I created outlines. Then I have this shape (a rectangle frame), I want to merge the two so I can bring an image into the combined shape. I cannot figure out how to merge the outlines text with this frame - is this even possible to do in ID? I know how to do it in Illustrator using the pathfinder but I'd really like to get this done in ID.
Hope I explained this OK?
Thanks!
KimCheck out the InDesign Secrets Blog. A post (below) discusses some of this.
Also, Branislav posted a link to his transparency effects PDF that may assist you in the comments for this blog.
http://indesignsecrets.com/turn-any-object-into-a-transparency-mask.php
HTH
-mt
PS: While this doesn't cover the use of the pathfinder to make a complex image frame, per your initial post, this may in fact be an easier route to accomplish your task. -
Deploying c# procedure with user-defined type
Hi
I've written a c# procedure which makes use of some Oracle user-defined types (c# classes generated using the wizard).
I will be calling the procedure from an Oracle package and one of the out parameters needs to be one of my user defined Oracle objects (basically a record object). My problem is when I come to deploy the package, it tells me "... does not contain any .NET stored procedures that can be deployed to Oracle"
If I change the user defined type (out param) to something like an Int32 or string, it works fine. AFAIK the latest version of ODT/ODAC supports user defined types. For Info I've 11g Client , .Net v4 & VS2010
quick example of procedure entry point.
works:
public static void GetOrderCost(int OrderNr, out Int32 orderCost )
Not work:
public static void GetOrderCost(int OrderNr, out ORDER_RECORD orderCost ) - Note: ORDER_RECORD is the class created using the class generation wizard.
I've spent 2 days now trying to get this to work, perhaps its not possible or perhaps my setup is not quite right but any help gratefully received.
Ianthink I have found some small print which scuppers my plan. Good if some one could confirm and nicer if someone could suggest a workaround (without resorting to writing the UDT to a Oracle table)
Oracle User-Defined Type (UDT) Support
UDTs are not supported within a context connection but they are supported with a client connection. UDTs are not supported as parameters to .NET stored procedures.
Source:
http://docs.oracle.com/cd/E14435_01/win.111/e10927/extenRest.htm#CJAHJBJI
So you can use UDT's within the body of the procedure (and can read them off the DB) but as yet its not possible to use them as parameters. -
Using user-defined data types in Forms 6i
When I use the following code in Oracle Forms 6i
PROCEDURE test IS
prcl prcl_ty;
BEGIN
prcl := prcl.setParcel('xxx-xx-xxxx');
END;
I get 'Error 801'. However the above does work in SQL editor. The online help says PL/SQL8 client-side program units cannot support Oracle 8 object-related functionality and I suspect this is the reason I get the error from Forms. Is there a work-around for this.
The TYPE is defined as:
CREATE OR REPLACE
TYPE PRCL_TY AS OBJECT
(parcel VARCHAR2(11),
MEMBER FUNCTION getBook RETURN VARCHAR2,
MEMBER FUNCTION getMap RETURN VARCHAR2,
MEMBER FUNCTION getItem RETURN VARCHAR2,
MEMBER FUNCTION getItem_NS RETURN VARCHAR2,
MEMBER FUNCTION getSplit RETURN VARCHAR2,
MEMBER FUNCTION find RETURN VARCHAR2,
MEMBER FUNCTION find (yr in VARCHAR2) RETURN VARCHAR2,
MEMBER FUNCTION isValid RETURN BOOLEAN,
MEMBER FUNCTION toString RETURN VARCHAR2,
MEMBER FUNCTION toString (par IN VARCHAR2) RETURN VARCHAR2,
STATIC FUNCTION setParcel (istr IN VARCHAR2 DEFAULT '000-00-000A') RETURN prcl_ty) -- to be used as a constructor
NOT FINAL
CREATE OR REPLACE
TYPE BODY PRCL_TY AS
MEMBER FUNCTION getBook RETURN VARCHAR2 IS
BEGIN
return substr(self.parcel,1,3);
END;
MEMBER FUNCTION getMap RETURN VARCHAR2 IS
BEGIN
return substr(self.parcel,4,2);
END;
MEMBER FUNCTION getItem RETURN VARCHAR2 IS
BEGIN
return substr(self.parcel,6);
END;
MEMBER FUNCTION getItem_NS RETURN VARCHAR2 IS
BEGIN
return substr(self.parcel,6,3);
END;
MEMBER FUNCTION getSplit RETURN VARCHAR2 IS
BEGIN
return substr(self.parcel,9,1);
END;
MEMBER FUNCTION find RETURN VARCHAR2 IS
found varchar2(1);
BEGIN
begin
select 'x'
into found
from casrp
where cp_book_num = self.getBook
and cp_map_num = self.getMap
and cp_item_num = self.getItem
and rownum = 1;
return 'CASRP';
exception
when NO_DATA_FOUND then
begin
select 'x'
into found
from pro_prop
where pp_book_num = self.getBook
and pp_map_num = self.getMap
and pp_item_num = self.getItem
and rownum = 1
and NOT EXISTS (select 'x'
from cncl_prcl
where cr_book_num = self.getBook
and cr_book_num = self.getMap
and cr_book_num = self.getItem
and rownum = 1);
return 'PRO_PROP';
exception
when NO_DATA_FOUND then
return '';
end;
end;
END;
MEMBER FUNCTION find (yr IN VARCHAR2) RETURN VARCHAR2 IS
found varchar2(1);
BEGIN
begin
select 'x'
into found
from casrp
where cp_book_num = self.getBook
and cp_map_num = self.getMap
and cp_item_num = self.getItem
and cp_tax_yr = yr
and rownum = 1;
return 'CASRP';
exception
when NO_DATA_FOUND then
begin
select 'x'
into found
from pro_prop
where pp_book_num = self.getBook
and pp_map_num = self.getMap
and pp_item_num = self.getItem
and pp_tax_yr = yr
and rownum = 1
and NOT EXISTS (select 'x'
from cncl_prcl
where cr_book_num = self.getBook
and cr_book_num = self.getMap
and cr_book_num = self.getItem
and cr_tax_yr = yr
and rownum = 1);
return 'PRO_PROP';
exception
when NO_DATA_FOUND then
return '';
end;
end;
END;
MEMBER FUNCTION isValid RETURN BOOLEAN IS
i number;
BEGIN
for i in 1..8 loop
if substr(parcel,i,1) not between '0' and '9' then
return FALSE;
end if;
end loop;
if nvl(substr(parcel,9,1),'#') not between 'A' and 'Z' and
nvl(substr(parcel,9,1),'#') != '#' then
return FALSE;
end if;
return TRUE;
END;
MEMBER FUNCTION toString RETURN VARCHAR2 IS
BEGIN
return self.toString('-');
END;
MEMBER FUNCTION toString (par IN VARCHAR2) RETURN VARCHAR2 IS
BEGIN
return self.getBook||par|| self.getMap||par|| self.getItem;
END;
STATIC FUNCTION setParcel (istr IN VARCHAR2 DEFAULT '000-00-000A') RETURN prcl_ty IS
len number;
pos number;
lastch varchar2(1);
temp varchar2(30);
invalid_format exception;
pragma exception_init(invalid_format,-9001);
BEGIN
temp := upper(istr);
-- Find 1st occurance of '-'. If not in correct postion, pad book num with zeros.
pos := instr(temp,'-',1,1);
if pos > 0 then
if pos != 4 then
temp := lpad(substr(temp,1,pos-1),3,'0')||substr(temp,pos);
end if;
-- Find 2nd occurance of '-'. If not in correct postion, pad map num with zeros.
pos := instr(temp,'-',1,2);
if pos != 7 then
temp := substr(temp,1,4)||lpad(substr(temp,5,1),2,'0')||substr(temp,pos);
end if;
-- Pad item num
len := length(temp);
lastch := substr(temp,len);
temp := substr(temp,1,7)||lpad(substr(temp,8,len-1),3,'0');
if lastch between 'A' and 'Z' then
temp := temp||lastch;
end if;
end if;
temp := replace(temp,'-','');
if prcl_ty(temp).isValid then
return (prcl_ty(temp));
else
raise invalid_format;
end if;
END;
END;
Rich Hall
[email protected]You are correct in your assumptions. Client side PLSQL does not support user defined types like the one you are trying to use.
There are no workarounds I am afraid. -
Access result set in user define type of table
here is the situation. I have a stored procedure that dequeues messages of a AQ and passes them as an OUT parameter in a collection of a user defined type. The same type used to define the queues. The java code executes properly but seems like we don't/can't access the result set. We don't receive any erros but don't know how to access the results. I've included relevant parts of the problem.
I know this should be doable but........Can someone please tell us what we are doing wrong....thanks in advance.
-----create object type
create type evt_ot as object(
table_name varchar(40),
table_data varchar(4000));
---create table of object types.
create type msg_evt_table is table of evt_ot;
----create queue table with object type
begin
DBMS_AQADM.CREATE_QUEUE_TABLE (
Queue_table => 'etlload.aq_qtt_text',
Queue_payload_type => 'etlload.evt_ot');
end;
---create queues.
begin
DBMS_AQADM.CREATE_QUEUE (
Queue_name => 'etlload.aq_text_que',
Queue_table => 'etlload.aq_qtt_text');
end;
Rem
Rem Starting the queues and enable both enqueue and dequeue
Rem
EXECUTE DBMS_AQADM.START_QUEUE (Queue_name => 'etlload.aq_text_que');
----create procedure to dequeue an array and pass it OUT using msg_evt_table ---type collection.
create or replace procedure test_aq_q (
i_array_size in number ,
o_array_size out number ,
text1 out msg_evt_table) is
begin
DECLARE
message_properties_array dbms_aq.message_properties_array_t :=
dbms_aq.message_properties_array_t();
msgid_array dbms_aq.msgid_array_t;
dequeue_options dbms_aq.dequeue_options_t;
message etlload.msg_evt_table;
id pls_integer := 0;
retval pls_integer := 0;
total_retval pls_integer := 0;
ctr number :=0;
havedata boolean :=true;
java_exp exception;
no_messages exception;
pragma EXCEPTION_INIT (java_exp, -24197);
pragma exception_init (no_messages, -25228);
BEGIN
DBMS_OUTPUT.ENABLE (20000);
dequeue_options.wait :=0;
dequeue_options.correlation := 'event' ;
id := i_array_size;
-- Dequeue this message from AQ queue using DBMS_AQ package
begin
retval := dbms_aq.dequeue_array(
queue_name => 'etlload.aq_text_que',
dequeue_options => dequeue_options,
array_size => id,
message_properties_array => message_properties_array,
payload_array => message,
msgid_array => msgid_array);
text1 := message;
o_array_size := retval;
EXCEPTION
WHEN java_exp THEN
dbms_output.put_line('exception information:');
WHEN no_messages THEN
havedata := false;
o_array_size := 0;
end;
end;
END;
----below is the java code....
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Struct;
import oracle.jdbc.driver.OracleCallableStatement;
import oracle.jdbc.driver.OracleTypes;
public class TestOracleArray {
private final String SQL = "{call etlload.test_aq_q(?,?,?)}";//array size, var name for return value, MessageEventTable
private final String driverClass = "oracle.jdbc.driver.OracleDriver";
private final String serverName = "OurServerName";
private final String port = "1500";
private final String sid = "OurSid";
private final String userId = "OurUser";
private final String pwd = "OurPwd";
Connection conn = null;
public static void main(String[] args){
TestOracleArray toa = new TestOracleArray();
try {
toa.go();
} catch (InstantiationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalAccessException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (ClassNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
private void go() throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException{
Class.forName(driverClass).newInstance();
String url = "jdbc:oracle:thin:@"+serverName+":"+port+":"+sid;
conn = DriverManager.getConnection(url,userId,pwd);
OracleCallableStatement stmt = (OracleCallableStatement)conn.prepareCall(SQL);
//set 1 input
stmt.setInt(1, 50);
//register out 1
stmt.registerOutParameter(2, OracleTypes.NUMERIC);
//register out 2
stmt.registerOutParameter(3, OracleTypes.ARRAY, "MSG_EVT_TABLE");
* This code returns a non-null ResultSet but there is no data in the ResultSet
* ResultSet rs = stmt.executeQuery();
* rs.close();
* Tried all sorts of combinations of getXXXX(1);
* All return the same error Message: Invalid column index
* So it appears that the execute statment returns no data.
stmt.execute();
Struct myObject = (Struct)stmt.getObject(1);
stmt.close();
conn.close();
}Hi,
Sorry but I'd refer you to the following sections (and code samples/snippets) in my book:
Mapping User-Defined Object Types (AD) to oracle.sql.STRUCT in section 3.3, shows how to pass user defined types as IN, OUT,IN/OUT
JMS over Streams/AQ in the Database: shows how to consume AQ
message paylod in section 4.2.4
CorporateOnine, in section 17.2, show how to exchanges user defined type objects b/w AQ and JMS
All these will hopefully help you achieve what you are trying to do.
Kuassi
Maybe you are looking for
-
Can anyone advise I have no video on FaceTime, this occurs whether I am sending or receiving FaceTime
-
My iMac can discover WiFi but won't connect how do i fix this?
My iMac will discover WiFi connections, i type in the right password but it wont connect how do i fix this?
-
HT1222 hi i can not updat the latetsr version of my itines, it keeps coming up with a error
i have tried to updat eth elatest itunes keeps coming up with a error, has anyone had any problems updating th elatest version
-
Call EJB in WLS 7.0SP2 from WLS 5.1 SP13
Hello, I am trying to call an EJB deployed on WLS 7.0SP2 from a WLS 5.1 SP13. There are issues from 19 Dec 2002 in "weblogic.developer.interest.rmi-iiop" newsgroup that are supossed to established a summary on this interoperability. The solution seem
-
IMovie suddenly erased ALL my work. How do I retrieve it back?
I was working on an english project of a photo essay. The computer was lagging so I decided to restart it. But once I opened iMovie, ALL of my 2 days of work was just suddenly erased, disappered, vanished. I had some deleted parts of that but it won'