Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 9th, 2005, 09:57 AM
mateoc15's Avatar
mateoc15 mateoc15 is offline
C A R D S
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2004
Location: The 'Ville
Posts: 783 mateoc15 User rank is Sergeant (500 - 2000 Reputation Level)mateoc15 User rank is Sergeant (500 - 2000 Reputation Level)mateoc15 User rank is Sergeant (500 - 2000 Reputation Level)mateoc15 User rank is Sergeant (500 - 2000 Reputation Level)mateoc15 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 9 h 53 m 52 sec
Reputation Power: 12
Generic data type?

I realize that PL/SQL is not object oriented (what a shame, eh?) but I was wondering if there is a generic field/data type. For instance, in MFC C++ there is a generic CObject that everything is derived from, and you can pass CObjects in and out of a function and cast it as necessary outside of the function. There is also a void* type that can be used similarly. Is there a way to declare a field in a table as a generic type and then handle the typing later in the code?

Thanks!
__________________
Reinventing the wheel again

Reply With Quote
  #2  
Old December 9th, 2005, 10:05 AM
shammat shammat is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Oct 2003
Location: Munich, Bavaria
Posts: 1,045 shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 8 h 9 m 14 sec
Reputation Power: 68
Well PL/SQL (like Oracle itself) does support limited object oriented stuff. And thus there is such a thing as an Object. But this would require that you define all your tables based on Objects as well (AFAIK), which is probably not what you want.

For details have a look at:

http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/toc.htm

Reply With Quote
  #3  
Old December 15th, 2005, 02:55 PM
xpi0t0s xpi0t0s is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 19 xpi0t0s User rank is Private First Class (20 - 50 Reputation Level)xpi0t0s User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 13 m 51 sec
Reputation Power: 0
AnyData could be what you're after.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > Generic data type?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT