Package com.powsybl.powerfactory.db
Class DataObjectBuilder
- java.lang.Object
-
- com.powsybl.powerfactory.db.DataObjectBuilder
-
public class DataObjectBuilder extends Object
- Author:
- Geoffroy Jamgotchian
-
-
Constructor Summary
Constructors Constructor Description DataObjectBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createAttribute(String className, String attributeName, int type, String description)
void
createClass(String name)
void
createObject(long id, String className)
DataObjectIndex
getIndex()
void
setDoubleAttributeValue(long objectId, String attributeName, double value)
void
setDoubleMatrixAttributeValue(long objectId, String attributeName, int rowCount, int columnCount, List<Double> value)
void
setDoubleVectorAttributeValue(long objectId, String attributeName, List<Double> value)
void
setIntAttributeValue(long objectId, String attributeName, int value)
void
setIntVectorAttributeValue(long objectId, String attributeName, List<Integer> value)
void
setLongAttributeValue(long objectId, String attributeName, long value)
void
setLongVectorAttributeValue(long objectId, String attributeName, List<Long> value)
void
setObjectAttributeValue(long objectId, String attributeName, long otherObjectId)
void
setObjectParent(long id, long parentId)
void
setObjectVectorAttributeValue(long objectId, String attributeName, List<Long> otherObjectsIds)
void
setStringAttributeValue(long objectId, String attributeName, String value)
void
setStringVectorAttributeValue(long objectId, String attributeName, List<String> value)
-
-
-
Method Detail
-
getIndex
public DataObjectIndex getIndex()
-
createClass
public void createClass(String name)
-
createAttribute
public void createAttribute(String className, String attributeName, int type, String description)
-
createObject
public void createObject(long id, String className)
-
setObjectParent
public void setObjectParent(long id, long parentId)
-
setIntAttributeValue
public void setIntAttributeValue(long objectId, String attributeName, int value)
-
setLongAttributeValue
public void setLongAttributeValue(long objectId, String attributeName, long value)
-
setDoubleAttributeValue
public void setDoubleAttributeValue(long objectId, String attributeName, double value)
-
setStringAttributeValue
public void setStringAttributeValue(long objectId, String attributeName, String value)
-
setObjectAttributeValue
public void setObjectAttributeValue(long objectId, String attributeName, long otherObjectId)
-
setIntVectorAttributeValue
public void setIntVectorAttributeValue(long objectId, String attributeName, List<Integer> value)
-
setLongVectorAttributeValue
public void setLongVectorAttributeValue(long objectId, String attributeName, List<Long> value)
-
setDoubleVectorAttributeValue
public void setDoubleVectorAttributeValue(long objectId, String attributeName, List<Double> value)
-
setStringVectorAttributeValue
public void setStringVectorAttributeValue(long objectId, String attributeName, List<String> value)
-
setObjectVectorAttributeValue
public void setObjectVectorAttributeValue(long objectId, String attributeName, List<Long> otherObjectsIds)
-
-