projects
/
hyperobject.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r3527: *** empty log message ***
[hyperobject.git]
/
mop.lisp
diff --git
a/mop.lisp
b/mop.lisp
index 1e83ae30e4ab47f2642dd275859fa4ae2bf14a73..39e58b9b4c49bc4c007ae42d5bdf02539c1309ae 100644
(file)
--- a/
mop.lisp
+++ b/
mop.lisp
@@
-11,7
+11,7
@@
;;;; in Text, HTML, and XML formats. This includes hyperlinking
;;;; capability and sub-objects.
;;;;
;;;; in Text, HTML, and XML formats. This includes hyperlinking
;;;; capability and sub-objects.
;;;;
-;;;; $Id: mop.lisp,v 1.
3 2002/11/29 23:14:31
kevin Exp $
+;;;; $Id: mop.lisp,v 1.
4 2002/12/01 21:07:28
kevin Exp $
;;;;
;;;; This file is Copyright (c) 2000-2002 by Kevin M. Rosenberg
;;;;
;;;;
;;;; This file is Copyright (c) 2000-2002 by Kevin M. Rosenberg
;;;;
@@
-34,6
+34,7
@@
:documentation "Class description")
(version :initarg :version :initform nil
:documentation "Version number for class")
:documentation "Class description")
(version :initarg :version :initform nil
:documentation "Version number for class")
+ (sql-name :initarg :table-name :initform nil :reader sql-name)
;;; The remainder of these fields are calculated one time
;;; in finalize-inheritence.
;;; The remainder of these fields are calculated one time
;;; in finalize-inheritence.
@@
-45,6
+46,10
@@
(class-id :type integer :initform nil :documentation
"Unique ID for the class")
(class-id :type integer :initform nil :documentation
"Unique ID for the class")
+ (create-table-cmd :initform nil :reader create-table-cmd)
+ (create-index-cmds :initform nil :reader create-index-cmds)
+ (drop-table-cmd :initform nil :reader drop-table-cmd)
+
(value-func :initform nil :type function)
(xmlvalue-func :initform nil :type function)
(fmtstr-text :initform nil :type string)
(value-func :initform nil :type function)
(xmlvalue-func :initform nil :type function)
(fmtstr-text :initform nil :type string)
@@
-207,6
+212,23
@@
(otherwise
ho-type)))
(otherwise
ho-type)))
+
+
+(defun ho-type-to-sql-type (sqltype)
+ (ecase sqltype
+ (:string
+ 'string)
+ (:fixnum
+ 'fixnum)
+ (:bigint
+ 'integer)
+ (:short-float
+ 'short-float)
+ (:long
+ 'long-float)
+ (:text
+ 'string)))
+
;;;; Class initialization function
(defun process-subobjects (cl)
;;;; Class initialization function
(defun process-subobjects (cl)
@@
-246,6
+268,7
@@
"Initialize a hyperobject class. Calculates all class slots"
(process-subobjects cl)
(process-views cl)
"Initialize a hyperobject class. Calculates all class slots"
(process-subobjects cl)
(process-views cl)
+ (process-sql cl)
(process-documentation cl))
(process-documentation cl))