Académique Documents
Professionnel Documents
Culture Documents
- Idgest idART : int <pi> Integer <M> idforn <pi> Integer <M>
- nomgest Pix-unitaire
: texte Number STOCK
nomfourn T ext
- Qantent T ype-arti
: int T ext -adress-fourn
Idstock : int Float
- designationEnt : int
desi gnation <pi> 1..* -date-fourn
REIP : String Date & T ime
- date ... : Date -fournir
Qantstoc<pi>
: int
+ gestionner () : void -...Soldestoc : int
1,n
+ ajouter () : String - date : Date
1,n
+ supprimer () : String + stocker () : void
+ modifier () : String + ajouter () : String
+
...
idcont
0..1
imprimer () : StringContenir
Integer <M>
+
+
suprimer ()
modifier ()
:
:
String
String NOM : Christian BUSHYBULA
fourni-entree Text + imprimer () : String
...
date-entre Date & Ti me
quanti nte-entre Number PROMOTION : L4 SPECIAL RIT
...
Mon compte
fournir
idf Integer <M>
designation Integer
...
gstion des sortes
- idsortes : int
1,n 1,1
- designation : String
- quantintesort : int
Livrai son- date : Date
idlivr <pi > Integer - reprs <M> : char
date-livr Date &+ Time
ajouter () : String
Identifier_2 <pi> + supprimer () : String
... + modifier () : String
Diagramme de classe
MCD
Articles Fournisseur
idART <pi> Integer <M> idforn <pi > Integer <M>
Pix-unitaire Number nomfourn T ext
T ype-arti T ext adress-fourn Fl oat
designati on <pi> date-fourn Date & T ime
... fournir <pi>
1,n ...
1,n
Contenir
i dcont Integer <M>
fourni-entree T ext
date-entre Date & T ime
quantinte-entre Number
...
fournir
idf Integer <M>
designation Integer
...
1,n 1,1
Livrai son
i dlivr <pi> Integer <M>
date-livr Date & T i me
Identifier_2 <pi>
...
Diagramme de class
GESTION ENTR
- Idgest : int
- nomgest : texte STOCK
- Qantent : int - Idstock : int
- designationEnt : int 1..* - REIP : String
- date : Date - Qantstoc : int
+ gestionner () : void - Soldestoc : int
+ ajouter () : String - date : Date
+ supprimer () : String + stocker () : void
+ modifier () : String + ajouter () : String
+ imprimer () : String 0..1 + suprimer () : String
... + modifier () : String
+ imprimer () : String
...
Génération en JAVA
/*==============================================================*/
/* DBMS name: Sybase SQL Anywhere 11 */
/* Created on: 12/07/2023 23:04:04 */
/*==============================================================*/
if exists(
select 1 from sys.sysindex i, sys.systable t
where i.table_id=t.table_id
and i.index_name='ARTICLES_PK'
and t.table_name='ARTICLES'
) then
drop index ARTICLES.ARTICLES_PK
end if;
if exists(
select 1 from sys.systable
where table_name='ARTICLES'
and table_type in ('BASE', 'GBL TEMP')
) then
drop table ARTICLES
end if;
if exists(
select 1 from sys.sysindex i, sys.systable t
where i.table_id=t.table_id
and i.index_name='CONTENIR_FK'
and t.table_name='CONTENIR'
) then
drop index CONTENIR.CONTENIR_FK
end if;
if exists(
select 1 from sys.sysindex i, sys.systable t
where i.table_id=t.table_id
and i.index_name='CONTENIR2_FK'
and t.table_name='CONTENIR'
) then
drop index CONTENIR.CONTENIR2_FK
end if;
if exists(
select 1 from sys.sysindex i, sys.systable t
where i.table_id=t.table_id
and i.index_name='CONTENIR_PK'
and t.table_name='CONTENIR'
) then
drop index CONTENIR.CONTENIR_PK
end if;
if exists(
select 1 from sys.systable
where table_name='CONTENIR'
and table_type in ('BASE', 'GBL TEMP')
) then
drop table CONTENIR
end if;
if exists(
select 1 from sys.sysindex i, sys.systable t
where i.table_id=t.table_id
and i.index_name='FOURNISSEUR_PK'
and t.table_name='FOURNISSEUR'
) then
drop index FOURNISSEUR.FOURNISSEUR_PK
end if;
if exists(
select 1 from sys.systable
where table_name='FOURNISSEUR'
and table_type in ('BASE', 'GBL TEMP')
) then
drop table FOURNISSEUR
end if;
if exists(
select 1 from sys.sysindex i, sys.systable t
where i.table_id=t.table_id
and i.index_name='FOURNIR_FK'
and t.table_name='LIVRAISON'
) then
drop index LIVRAISON.FOURNIR_FK
end if;
if exists(
select 1 from sys.sysindex i, sys.systable t
where i.table_id=t.table_id
and i.index_name='LIVRAISON_PK'
and t.table_name='LIVRAISON'
) then
drop index LIVRAISON.LIVRAISON_PK
end if;
if exists(
select 1 from sys.systable
where table_name='LIVRAISON'
and table_type in ('BASE', 'GBL TEMP')
) then
drop table LIVRAISON
end if;
/*==============================================================*/
/* Table: ARTICLES */
/*==============================================================*/
create table ARTICLES
(
IDART integer not null,
PIX_UNITAIRE numeric null,
TYPE_ARTI long varchar null,
constraint PK_ARTICLES primary key (IDART)
);
/*==============================================================*/
/* Index: ARTICLES_PK */
/*==============================================================*/
create unique index ARTICLES_PK on ARTICLES (
IDART ASC
);
/*==============================================================*/
/* Table: CONTENIR */
/*==============================================================*/
create table CONTENIR
(
IDART integer not null,
IDLIVR integer not null,
IDCONT integer not null,
FOURNI_ENTREE long varchar null,
DATE_ENTRE timestamp null,
QUANTINTE_ENTRE numeric null,
constraint PK_CONTENIR primary key (IDART, IDLIVR)
);
/*==============================================================*/
/* Index: CONTENIR_PK */
/*==============================================================*/
create unique index CONTENIR_PK on CONTENIR (
IDART ASC,
IDLIVR ASC
);
/*==============================================================*/
/* Index: CONTENIR2_FK */
/*==============================================================*/
create index CONTENIR2_FK on CONTENIR (
IDART ASC
);
/*==============================================================*/
/* Index: CONTENIR_FK */
/*==============================================================*/
create index CONTENIR_FK on CONTENIR (
IDLIVR ASC
);
/*==============================================================*/
/* Table: FOURNISSEUR */
/*==============================================================*/
create table FOURNISSEUR
(
IDFORN integer not null,
NOMFOURN long varchar null,
ADRESS_FOURN float null,
DATE_FOURN timestamp null,
constraint PK_FOURNISSEUR primary key (IDFORN)
);
/*==============================================================*/
/* Index: FOURNISSEUR_PK */
/*==============================================================*/
create unique index FOURNISSEUR_PK on FOURNISSEUR (
IDFORN ASC
);
/*==============================================================*/
/* Table: LIVRAISON */
/*==============================================================*/
create table LIVRAISON
(
IDLIVR integer not null,
IDFORN integer not null,
DATE_LIVR timestamp null,
IDF integer not null,
DESIGNATION integer null,
constraint PK_LIVRAISON primary key (IDLIVR)
);
/*==============================================================*/
/* Index: LIVRAISON_PK */
/*==============================================================*/
create unique index LIVRAISON_PK on LIVRAISON (
IDLIVR ASC
);
/*==============================================================*/
/* Index: FOURNIR_FK */
/*==============================================================*/
create index FOURNIR_FK on LIVRAISON (
IDFORN ASC
);