private void createConstraints() {
		if (table.cardinality > 0) {
			write("ALTER TABLE " + table.name + " ADD CONSTRAINT UC_" + table.name + " UNIQUE (" + this.table.columns.get(0).name);
			for (int i = 1; i < this.table.cardinality; i++) {
				write("," + this.table.columns.get(i).name);
			}
			writeLine(");");
			writeLine("/");
			skipLine();
		}
		
		for (UniqueConstraint uniqueConstraint:table.uniqueConstraints) {
			write("ALTER TABLE " + table.name + " ADD CONSTRAINT UC_" + uniqueConstraint.name + " UNIQUE (" + uniqueConstraint.columns.get(0).name);
			for (int i = 1; i < uniqueConstraint.columns.size(); i++) {
				write("," + uniqueConstraint.columns.get(i).name);
			}
			writeLine(");");
			writeLine("/");
			skipLine();
		}
		
	}
private void createConstraints() {
		if (table.cardinality > 0) {
			write("ALTER TABLE " + table.name + " ADD CONSTRAINT UC_" + table.name + " UNIQUE (" + this.table.columns.get(0).name);
			for (int i = 1; i < this.table.cardinality; i++) {
				write("," + this.table.columns.get(i).name);
			}
			writeLine(");");
			writeLine("/");
			skipLine();
		}
		
		for (UniqueConstraint uniqueConstraint:table.uniqueConstraints) {
			write("ALTER TABLE " + table.name + " ADD CONSTRAINT UC_" + uniqueConstraint.name + " UNIQUE (" + uniqueConstraint.columns.get(0).name);
			for (int i = 1; i < uniqueConstraint.columns.size(); i++) {
				write("," + uniqueConstraint.columns.get(i).name);
			}
			writeLine(");");
			writeLine("/");
			skipLine();
		}
		
	}
private void createConstraints ( ) { if ( table . cardinality > 0 ) { write ( "ALTER TABLE " + table . name + " ADD CONSTRAINT UC_" + table . name + " UNIQUE (" + this . table . columns . get ( 0 ) . name ) ; for ( int i = 1 ; i < this . table . cardinality ; i ++ ) { write ( "," + this . table . columns . get ( i ) . name ) ; } writeLine ( ");" ) ; writeLine ( "/" ) ; skipLine ( ) ; } for ( UniqueConstraint uniqueConstraint : table . uniqueConstraints ) { write ( "ALTER TABLE " + table . name + " ADD CONSTRAINT UC_" + uniqueConstraint . name + " UNIQUE (" + uniqueConstraint . columns . get ( 0 ) . name ) ; for ( int i = 1 ; i < uniqueConstraint . columns . size ( ) ; i ++ ) { write ( "," + uniqueConstraint . columns . get ( i ) . name ) ; } writeLine ( ");" ) ; writeLine ( "/" ) ; skipLine ( ) ; } }
/*
create constraints
/ * create constraints