com.microsoft.bingads.v13.bulk.entities.EntityInfo Maven / Gradle / Ivy
package com.microsoft.bingads.v13.bulk.entities;
import com.microsoft.bingads.v13.internal.bulk.Creator;
import com.microsoft.bingads.v13.internal.bulk.entities.BulkEntityIdentifier;
import com.microsoft.bingads.v13.internal.bulk.entities.SingleRecordBulkEntity;
/**
* Encapsulates the information and creators required for instantiation of blank
* entities of various types
*
*/
class EntityInfo {
private Creator creator;
private String deleteAllColumnName;
private Creator identifierCreator;
/**
* Initializes a new instance of the EntityInfo class.
*
* @param creator A function which creates a instance of the encapsulated
* object
*/
public EntityInfo(Creator creator) {
this(creator, null, null);
}
/**
* Initializes a new instance of the EntityInfo class.
*
* @param creator A function which creates a instance of the encapsulated
* object
* @param deleteAllColumnName The name of the column which indicates whether
* to delete all
*/
public EntityInfo(Creator creator, String deleteAllColumnName) {
this(creator, deleteAllColumnName, null);
}
/**
* Initializes a new instance of the EntityInfo class.
*
* @param creator A function which creates a instance of the encapsulated
* object
* @param deleteAllColumnName The name of the column which indicates whether
* to delete all
* @param identifierCreator A function which creates a instance of an
* identifier for the encapsulated object
*/
public EntityInfo(Creator creator, String deleteAllColumnName, Creator identifierCreator) {
this.creator = creator;
this.deleteAllColumnName = deleteAllColumnName;
this.identifierCreator = identifierCreator;
}
public Creator getCreator() {
return creator;
}
public void setCreator(Creator creator) {
this.creator = creator;
}
public String getDeleteAllColumnName() {
return deleteAllColumnName;
}
public void setDeleteAllColumnName(String deleteAllColumnName) {
this.deleteAllColumnName = deleteAllColumnName;
}
public Creator getIdentifierCreator() {
return identifierCreator;
}
public void setIdentifierCreator(Creator identifierCreator) {
this.identifierCreator = identifierCreator;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy