Thread: [Modeling-cvs] ProjectModeling/Modeling/doc/UserGuide DefiningaModel.tex,1.25,1.26
Status: Abandoned
Brought to you by:
sbigaret
From: <sbi...@us...> - 2003-08-26 20:05:06
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/doc/UserGuide In directory sc8-pr-cvs1:/tmp/cvs-serv22482/Modeling/doc/UserGuide Modified Files: DefiningaModel.tex Log Message: Added type info. for PyModel-datetime, integer, float, string, PK and FK Index: DefiningaModel.tex =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/doc/UserGuide/DefiningaModel.tex,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** DefiningaModel.tex 26 Aug 2003 19:38:35 -0000 1.25 --- DefiningaModel.tex 26 Aug 2003 20:04:58 -0000 1.26 *************** *** 856,860 **** \lineiv{width}{\code{int}}{\code{0}}{} \lineiv{scale}{\code{int}}{\code{0}}{} ! \lineiv{defaultValue}{}{\code{None}}{} \lineiv{usedForLocking}{\code{int}}{\code{0}}{} \lineiv{displayLabel}{\code{string}}{\code{''}}{} --- 856,860 ---- \lineiv{width}{\code{int}}{\code{0}}{} \lineiv{scale}{\code{int}}{\code{0}}{} ! \lineiv{defaultValue}{~}{\code{None}}{} \lineiv{usedForLocking}{\code{int}}{\code{0}}{} \lineiv{displayLabel}{\code{string}}{\code{''}}{} *************** *** 873,888 **** The component \class{ADateTime} redefines the following defaults: ! \begin{longtableiii}{p{3cm}p{4cm}p{7cm}}{code}{Prop.}{Default}{Comment} ! \lineiii{name}{\emph{no default}}{The \code{name} is the only mandatory arguments when instanciating a \class{ADateTime}. Once set, it should not be changed} ! \lineiii{type}{\code{'DateTime'}}{} ! \lineiii{externalType}{\code{TIMESTAMP}}{Be warned: not all database supports \code{TIMESTAMP}. If this is the case, you'll probably have to redefine this default value in your PyModel. Discussion on supported SQL datatypes can be found at section~\ref{attributes-props}.} ! \lineiii{defaultValue}{\code{None}}{} ! \lineiii{usedForLocking}{\code{1}}{} ! \end{longtableiii} \begin{notice} --- 873,888 ---- The component \class{ADateTime} redefines the following defaults: ! \begin{longtableiv}{p{3cm}p{1.5cm}p{4cm}p{5.5cm}}{code}{Prop.}{Type}{Default}{Comment} ! \lineiv{name}{\code{string}}{\emph{no default}}{The \code{name} is the only mandatory arguments when instanciating a \class{ADateTime}. Once set, it should not be changed} ! \lineiv{type}{\code{string}}{\code{'DateTime'}}{} ! \lineiv{externalType}{\code{string}}{\code{TIMESTAMP}}{Be warned: not all database supports \code{TIMESTAMP}. If this is the case, you'll probably have to redefine this default value in your PyModel. Discussion on supported SQL datatypes can be found at section~\ref{attributes-props}.} ! \lineiv{defaultValue}{~}{\code{None}}{} ! \lineiv{usedForLocking}{\code{int}}{\code{1}}{} ! \end{longtableiv} \begin{notice} *************** *** 896,910 **** The component \class{AFloat} redefines the following defaults: ! \begin{longtableiii}{p{3cm}p{4cm}p{7cm}}{code}{Prop.}{Default}{Comment} ! \lineiii{name}{\emph{no default}}{The \code{name} is the only mandatory ! arguments when instanciating a \class{AFloat}. Once set, it should not be ! changed} ! \lineiii{type}{\code{'string'}}{} ! \lineiii{externalType}{\code{'NUMERIC'}}{} ! \lineiii{precision}{\code{15}}{} ! \lineiii{scale}{\code{5}}{} ! \lineiii{defaultValue}{\code{0.0}}{} ! \lineiii{usedForLocking}{\code{1}}{} ! \end{longtableiii} \begin{notice} --- 896,910 ---- The component \class{AFloat} redefines the following defaults: ! \begin{longtableiv}{p{3cm}p{1.5cm}p{4cm}p{5.5cm}}{code}{Prop.}{Type}{Default}{Comment} ! \lineiv{name}{\code{string}}{\emph{no default}}{The \code{name} is the only ! mandatory arguments when instanciating a \class{AFloat}. Once set, it should ! not be changed} ! \lineiv{type}{\code{string}}{\code{'string'}}{} ! \lineiv{externalType}{\code{string}}{\code{'NUMERIC'}}{} ! \lineiv{precision}{\code{int}}{\code{15}}{} ! \lineiv{scale}{\code{int}}{\code{5}}{} ! \lineiv{defaultValue}{~}{\code{0.0}}{} ! \lineiv{usedForLocking}{\code{int}}{\code{1}}{} ! \end{longtableiv} \begin{notice} *************** *** 918,930 **** The component \class{AFloat} redefines the following defaults: ! \begin{longtableiii}{p{3cm}p{4cm}p{7cm}}{code}{Prop.}{Default}{Comment} ! \lineiii{name}{\emph{no default}}{The \code{name} is the only mandatory arguments when instanciating a \class{AInteger}. Once set, it should not be changed} ! \lineiii{type}{\code{'int'}}{} ! \lineiii{externalType}{\code{'INTEGER'}}{} ! \lineiii{defaultValue}{\code{0}}{} ! \lineiii{usedForLocking}{\code{1}}{} ! \end{longtableiii} \begin{notice} --- 918,930 ---- The component \class{AFloat} redefines the following defaults: ! \begin{longtableiv}{p{3cm}p{1.5cm}p{4cm}p{5.5cm}}{code}{Prop.}{Type}{Default}{Comment} ! \lineiv{name}{\code{string}}{\emph{no default}}{The \code{name} is the only mandatory arguments when instanciating a \class{AInteger}. Once set, it should not be changed} ! \lineiv{type}{\code{string}}{\code{'int'}}{} ! \lineiv{externalType}{\code{string}}{\code{'INTEGER'}}{} ! \lineiv{defaultValue}{~}{\code{0}}{} ! \lineiv{usedForLocking}{\code{int}}{\code{1}}{} ! \end{longtableiv} \begin{notice} *************** *** 938,954 **** The component \class{AFloat} redefines the following defaults: ! \begin{longtableiii}{p{3cm}p{4cm}p{7cm}}{code}{Prop.}{Default}{Comment} ! \lineiii{name}{\emph{no default}}{The \code{name} is the only mandatory ! arguments when instanciating a \class{AString}. Once set, it should not be ! changed} ! \lineiii{type}{\code{'string'}}{No matter whether you run python2.1 (where ! \code{type('').__name__=='string'}) or python2.2 (where \code{type('').__name__=='str'}), you should always use 'string' for a character type.} ! \lineiii{externalType}{\code{'VARCHAR'}}{} ! \lineiii{width}{\code{255}}{} ! \lineiii{defaultValue}{\code{''}}{} ! \lineiii{usedForLocking}{\code{1}}{} ! \end{longtableiii} \begin{notice} --- 938,954 ---- The component \class{AFloat} redefines the following defaults: ! \begin{longtableiv}{p{3cm}p{1.5cm}p{4cm}p{5.5cm}}{code}{Prop.}{Type}{Default}{Comment} ! \lineiv{name}{\code{string}}{\emph{no default}}{The \code{name} is the only ! mandatory arguments when instanciating a \class{AString}. Once set, it should ! not be changed} ! \lineiv{type}{\code{string}}{\code{'string'}}{No matter whether you run ! python2.1 (where \code{type('').__name__=='string'}) or python2.2 (where \code{type('').__name__=='str'}), you should always use 'string' for a character type.} ! \lineiv{externalType}{\code{string}}{\code{'VARCHAR'}}{} ! \lineiv{width}{\code{int}}{\code{255}}{} ! \lineiv{defaultValue}{~}{\code{''}}{} ! \lineiv{usedForLocking}{\code{int}}{\code{1}}{} ! \end{longtableiv} \begin{notice} *************** *** 962,977 **** The component \class{AFloat} redefines the following defaults: ! \begin{longtableiii}{p{3cm}p{4cm}p{7cm}}{code}{Prop.}{Default}{Comment} ! \lineiii{name}{\emph{no default}}{The \code{name} is the only mandatory ! arguments when instanciating a \class{APrimaryKey}. Once set, it should not be ! changed} ! \lineiii{isClassProperty}{\code{0}}{} ! \lineiii{isRequired}{\code{1}}{You should not change this default, nor ! overwrite it: a primary key should be mandatory.} ! \lineiii{defaultValue}{\code{None} if \code{isClassProperty} is false, ! \code{0} otherwise}{} ! \lineiii{doc}{\code{'Primary Key'}}{} ! \lineiii{usedForLocking}{\code{0}}{} ! \end{longtableiii} \begin{notice} --- 962,977 ---- The component \class{AFloat} redefines the following defaults: ! \begin{longtableiv}{p{3cm}p{1.5cm}p{4cm}p{5.5cm}}{code}{Prop.}{Type}{Default}{Comment} ! \lineiv{name}{\code{string}}{\emph{no default}}{The \code{name} is the only ! mandatory arguments when instanciating a \class{APrimaryKey}. Once set, it ! should not be changed} ! \lineiv{isClassProperty}{\code{int}}{\code{0}}{} ! \lineiv{isRequired}{\code{int}}{\code{1}}{You should not change this default, ! nor overwrite it: a primary key should be mandatory.} ! \lineiv{defaultValue}{~}{\code{None} if \code{isClassProperty} is ! false, \code{0} otherwise}{} ! \lineiv{doc}{\code{string}}{\code{'Primary Key'}}{} ! \lineiv{usedForLocking}{\code{int}}{\code{0}}{} ! \end{longtableiv} \begin{notice} *************** *** 985,998 **** The component \class{AFloat} redefines the following defaults: ! \begin{longtableiii}{p{3cm}p{4cm}p{7cm}}{code}{Prop.}{Default}{Comment} ! \lineiii{name}{\emph{no default}}{The \code{name} is the only mandatory ! arguments when instanciating a \class{AForeignKey}. Once set, it should not be ! changed} ! \lineiii{isClassProperty}{\code{0}}{} ! \lineiii{isRequired}{\code{0}}{} ! \lineiii{defaultValue}{\code{None}}{} ! \lineiii{doc}{\code{'Foreign Key'}}{} ! \lineiii{usedForLocking}{\code{0}}{} ! \end{longtableiii} \begin{notice} --- 985,998 ---- The component \class{AFloat} redefines the following defaults: ! \begin{longtableiv}{p{3cm}p{1.5cm}p{4cm}p{5.5cm}}{code}{Prop.}{Type}{Default}{Comment} ! \lineiv{name}{\code{string}}{\emph{no default}}{The \code{name} is the only ! mandatory arguments when instanciating a \class{AForeignKey}. Once set, it ! should not be changed} ! \lineiv{isClassProperty}{\code{int}}{\code{0}}{} ! \lineiv{isRequired}{\code{int}}{\code{0}}{} ! \lineiv{defaultValue}{~}{\code{None}}{} ! \lineiv{doc}{\code{string}}{\code{'Foreign Key'}}{} ! \lineiv{usedForLocking}{\code{int}}{\code{0}}{} ! \end{longtableiv} \begin{notice} |