"Variants" in Java

webmasterbeta

New Member
I'm wondering if Java offers a good way to simulate the Visual Basic / COMVariant type. I don't suppose it is possible to have multiple return typesfrom 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'tknow ahead of time whether the column will contain a string, an integertype, a date, etc.--Matthew CromerPresident, SDA Consulting, Inc.matthew@sdaconsulting.<!-- m --><a class="postlink" href="comhttp://www.sdaconsulting.com/(919">comhttp://www.sdaconsulting.com/(919</a><!-- m -->) 274-0074
 
Back
Top