home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / dbkit / types.h < prev   
Text File  |  1992-03-27  |  772b  |  35 lines

  1. /*
  2. **      types.h
  3. **      Database Kit, Release 3.0
  4. **      Copyright (c) 1992, NeXT Computer, Inc.  All rights reserved. 
  5. */
  6.  
  7.  
  8. #import <objc/objc.h>
  9.  
  10. @class DBValue;
  11.  
  12. /*
  13. ** DBTypes is a grouping of an expression type, an objective-C type, and
  14. **  (optionally) the type that this object had in the database.
  15. **
  16. ** The objcType is how the value of the object is actually stored (and coerced,
  17. **  if necessary).  The databaseTypeName is a string that represents the
  18. **  type that the object has in the database; an example might be "Number".
  19. **  The databaseType is complet$    hadaptor dependent.
  20. **
  21. */
  22.  
  23. @protocol DBTypes
  24.  
  25. - (const char*)objcType;
  26. - (const char*)objcClassName;
  27. - (const char*)databaseType;
  28.  
  29. - (BOOL)matchesType:(id<DBTypes>)aType;
  30.  
  31. - (BOOL)isEntity;
  32.  
  33. @end
  34.  
  35.