OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 17 | Rev 41 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17 Rev 25
Line 19... Line 19...
19
import static org.openconcerto.sql.model.SQLBase.quoteIdentifier;
19
import static org.openconcerto.sql.model.SQLBase.quoteIdentifier;
20
import org.openconcerto.sql.model.graph.Path;
20
import org.openconcerto.sql.model.graph.Path;
21
import org.openconcerto.utils.CollectionUtils;
21
import org.openconcerto.utils.CollectionUtils;
22
import org.openconcerto.utils.CompareUtils;
22
import org.openconcerto.utils.CompareUtils;
23
import org.openconcerto.utils.ExceptionUtils;
23
import org.openconcerto.utils.ExceptionUtils;
-
 
24
import org.openconcerto.xml.JDOMUtils;
24
import org.openconcerto.xml.XMLCodecUtils;
25
import org.openconcerto.xml.XMLCodecUtils;
25
 
26
 
26
import java.sql.DatabaseMetaData;
27
import java.sql.DatabaseMetaData;
27
import java.sql.ResultSet;
28
import java.sql.ResultSet;
28
import java.sql.SQLException;
29
import java.sql.SQLException;
Line 279... Line 280...
279
 
280
 
280
    public String toXML() {
281
    public String toXML() {
281
        if (this.xml == null) {
282
        if (this.xml == null) {
282
            final StringBuilder sb = new StringBuilder(2048);
283
            final StringBuilder sb = new StringBuilder(2048);
283
            sb.append("<field name=\"");
284
            sb.append("<field name=\"");
284
            sb.append(this.getName());
285
            sb.append(JDOMUtils.OUTPUTTER.escapeAttributeEntities(this.getName()));
285
            sb.append("\" >");
286
            sb.append("\" >");
286
            sb.append(this.type.toXML());
287
            sb.append(this.type.toXML());
287
            sb.append(XMLCodecUtils.encodeSimple(this.metadata));
288
            sb.append(XMLCodecUtils.encodeSimple(this.metadata));
288
            sb.append("<infoSchema>");
289
            sb.append("<infoSchema>");
289
            sb.append(XMLCodecUtils.encodeSimple(this.infoSchemaCols));
290
            sb.append(XMLCodecUtils.encodeSimple(this.infoSchemaCols));