All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openforis.collect.relational.RDBUpdater Maven / Gradle / Ivy

There is a newer version: 4.0.97
Show newest version
package org.openforis.collect.relational;

import java.io.Closeable;
import java.math.BigInteger;
import java.util.List;

import org.openforis.collect.model.CollectRecord;
import org.openforis.collect.relational.data.ColumnValuePair;
import org.openforis.collect.relational.model.DataColumn;
import org.openforis.collect.relational.model.DataTable;
import org.openforis.concurrency.ProgressListener;

/**
 * @author S. Ricci
 */
public interface RDBUpdater extends Closeable {
	
	void insertEntity(int recordId, 
			Integer parentId, int entityId,
			int entityDefinitionId);

	void insertAttribute(int recordId, 
			Integer parentId, int attributeId,
			int attributeDefinitionId);

	void replaceRecordData(CollectRecord record, ProgressListener progressListener);
	
	void updateEntityData(DataTable dataTable,
			BigInteger pkValue,
			List> columnValuePairs);
	
	void deleteRecordData(int recordId, int rootDefId);

	void deleteEntity(int recordId, int entityId, int definitionId);
	
	void deleteAttribute(int recordId, int attributeId, int definitionId);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy