Search in sources :

Example 31 with Qualifier

use of com.ramussoft.common.Qualifier in project ramus by Vitaliy-Yakovchuk.

the class ChartPlugin method createChartSets.

private Qualifier createChartSets() {
    Qualifier qualifier = engine.createSystemQualifier();
    qualifier.setName(QUALIFIER_CHART_SETS);
    Attribute attribute = StandardAttributesPlugin.getAttributeNameAttribute(engine);
    qualifier.getAttributes().add(attribute);
    qualifier.getSystemAttributes().add(StandardAttributesPlugin.getHierarchicalAttribute(engine));
    qualifier.setAttributeForName(attribute.getId());
    engine.updateQualifier(qualifier);
    return qualifier;
}
Also used : Attribute(com.ramussoft.common.Attribute) Qualifier(com.ramussoft.common.Qualifier)

Example 32 with Qualifier

use of com.ramussoft.common.Qualifier in project ramus by Vitaliy-Yakovchuk.

the class ChartPlugin method createCharts.

private Qualifier createCharts() {
    Qualifier qualifier = engine.createSystemQualifier();
    qualifier.setName(QUALIFIER_CHARTS);
    Attribute attribute = StandardAttributesPlugin.getAttributeNameAttribute(engine);
    qualifier.getAttributes().add(attribute);
    qualifier.getSystemAttributes().add(StandardAttributesPlugin.getHierarchicalAttribute(engine));
    qualifier.setAttributeForName(attribute.getId());
    engine.updateQualifier(qualifier);
    return qualifier;
}
Also used : Attribute(com.ramussoft.common.Attribute) Qualifier(com.ramussoft.common.Qualifier)

Example 33 with Qualifier

use of com.ramussoft.common.Qualifier in project ramus by Vitaliy-Yakovchuk.

the class ChartPlugin method createChartLinks.

private Qualifier createChartLinks() {
    Qualifier qualifier = engine.createSystemQualifier();
    qualifier.setName(QUALIFIER_CHART_LINKS);
    qualifier.getSystemAttributes().add(chartInSetX);
    qualifier.getSystemAttributes().add(chartInSetY);
    qualifier.getSystemAttributes().add(chartInSetWidth);
    qualifier.getSystemAttributes().add(chartInSetHeight);
    qualifier.getSystemAttributes().add(chartSet);
    qualifier.getSystemAttributes().add(chart);
    engine.updateQualifier(qualifier);
    return qualifier;
}
Also used : Qualifier(com.ramussoft.common.Qualifier)

Example 34 with Qualifier

use of com.ramussoft.common.Qualifier in project ramus by Vitaliy-Yakovchuk.

the class QualifierImporterImpl method createQualifier.

private Qualifier createQualifier(Qualifier sourceQualifier, Row row) {
    Qualifier res = engine.getQualifierByName(sourceQualifier.getName());
    if (res == null) {
        Qualifier q = StandardAttributesPlugin.getQualifiersQualifier(engine);
        RowSet rs = new RowSet(engine, q, new Attribute[] {});
        Row parent = findParent(rs, row.getParent());
        if ((parent != null) && (parent.getElement() == null))
            parent = null;
        if ((parent != null) && (engine.getElements(StandardAttributesPlugin.getQualifier(engine, parent.getElement()).getId()).size() > 0))
            parent = null;
        Element element = rs.createRow(parent).getElement();
        res = StandardAttributesPlugin.getQualifier(engine, element);
        res.setName(sourceQualifier.getName());
        engine.updateQualifier(res);
        rs.close();
    }
    return res;
}
Also used : Element(com.ramussoft.common.Element) RowSet(com.ramussoft.database.common.RowSet) Qualifier(com.ramussoft.common.Qualifier) Row(com.ramussoft.database.common.Row)

Example 35 with Qualifier

use of com.ramussoft.common.Qualifier in project ramus by Vitaliy-Yakovchuk.

the class NFunction method checkAllAttributes.

private void checkAllAttributes() {
    Qualifier qualifier = getQualifier();
    IDEF0Plugin.checkIDEF0Attributes(engine, qualifier);
}
Also used : Qualifier(com.ramussoft.common.Qualifier)

Aggregations

Qualifier (com.ramussoft.common.Qualifier)157 Attribute (com.ramussoft.common.Attribute)72 Element (com.ramussoft.common.Element)59 ArrayList (java.util.ArrayList)45 Engine (com.ramussoft.common.Engine)22 Row (com.ramussoft.database.common.Row)17 Row (com.ramussoft.pb.Row)14 List (java.util.List)12 Hashtable (java.util.Hashtable)11 QualifierEvent (com.ramussoft.common.event.QualifierEvent)10 ResultSet (java.sql.ResultSet)9 SQLException (java.sql.SQLException)9 AttributeType (com.ramussoft.common.AttributeType)8 RowSet (com.ramussoft.database.common.RowSet)8 DataPlugin (com.ramussoft.pb.DataPlugin)8 NFunction (com.ramussoft.pb.data.negine.NFunction)8 AttributeEvent (com.ramussoft.common.event.AttributeEvent)7 Journaled (com.ramussoft.common.journal.Journaled)7 RowMapper (com.ramussoft.jdbc.RowMapper)7 IEngine (com.ramussoft.common.IEngine)6