• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Data Conversion clarification.

 
Daryl Fong
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am stucked with the requirements on the assignment.
What I found is the FieldInfo class has insufficient information for a proper DB ie. lacking of datatype support. Should I modify the class ? This may take too much time to fully implement an operational DB.
Otherwise, how do you keep track of the field's datatype ie. date, String, time etc.
Thanks.
 
Jerry Pulley
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Daryl,
The Data class stores only <code>String</code> data. I've read a lot of posts on this issue in other forums; everyone seems to agree that you do any necessary conversion on the client.
jply
 
Jeff Holmes
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have considered both implememnting the conversion on the Client or building into the DB a type that is ID'd in the FieldInfo class. I'm sure either way is acceptable to the project, support why. personally I incorporated the data types in the FieldInfo and accoutn for them in the DB. I found this to be easier more robust and not have to check data coming out of the DB for being correct data type. If I had a person writing this for a business purpose I would expect the data types to be built into the DB, wouldn't you???
[This message has been edited by Jeff Holmes (edited November 06, 2000).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic