|
-
"Variants" in Java
I'm wondering if Java offers a good way to simulate the Visual Basic / COM
Variant type. I don't suppose it is possible to have multiple return types
from a single named function, is it.
I've got some Visual Basic architecture that uses variants as return types,
typically for database columns in generic database classes where you don't
know ahead of time whether the column will contain a string, an integer
type, a date, etc.
--
Matthew Cromer
President, SDA Consulting, Inc.
matthew@sdaconsulting.com
http://www.sdaconsulting.com/
(919) 274-0074
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks