Article View: comp.sys.next.programmer
Article #1084Re: DBKit API questions
From: William Shipley
Date: Fri, 04 Sep 1992 00:58
Date: Fri, 04 Sep 1992 00:58
29 lines
1580 bytes
1580 bytes
Michael Brill wrote: > Help DBKit Gods! > > I have a field in a Sybase database that is a long int representing date&time > (result of time() function). > [and he wants to] > (A) Display & edit both the date and time in separate columns, or else > if I can't split 1 Sybase field into 2 DBKit attributes, then I'd > settle for: > (B) Display & edit the date portion of the field The Oracle has pondered your question carefully, and speaks thusly: What you'd really like to do here is use the custom object interface in DBKit. You can't, however, because of a SybaseAdaptor bug. Another way to do this would be to create a custom Association subclass, which converts your int to a date or time string on the fly. You'd then hook two of these custom Associations to the integer date property, and you'd be rocking. The trick is to hook up all of your associations in IB, and then replace the date ones with your custom versions at run time. -William Shipley The Omni Group DBKit consulting PS: You owe the oracle a "Ren and Stimpy LOVE DBKit" T-shirt.
Technical Details
Message-ID:
<1992Sep4.005823.8849@u.washington.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!uwm.edu!ogicse!news.u.washington.edu!newsReferences:
<+alnfk#.yikes@netcom.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!uwm.edu!ogicse!news.u.washington.edu!news From: wjs@blorf.cpac.washington.edu (William Shipley) Newsgroups: comp.sys.next.programmer Subject: Re: DBKit API questions Message-ID: <1992Sep4.005823.8849@u.washington.edu> Date: 4 Sep 92 00:58:23 GMT Article-I.D.: u.1992Sep4.005823.8849 References: <+alnfk#.yikes@netcom.com> Sender: news@u.washington.edu (USENET News System) Organization: University of Washington Lines: 29