org.frameworkset.tran.plugin.mongocdc.MongoDBCDCData Maven / Gradle / Ivy
package org.frameworkset.tran.plugin.mongocdc;
/**
* Copyright 2023 bboss
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import com.mongodb.client.model.changestream.UpdateDescription;
import org.frameworkset.tran.cdc.CDCData;
import java.util.List;
/**
*
Description:
*
* Copyright (c) 2023
* @Date 2023/5/18
* @author biaoping.yin
* @version 1.0
*/
public class MongoDBCDCData extends CDCData {
private String collection;
private String database;
private String position;
private long clusterTime;
private long wallTime;
private String id;
private UpdateDescription updateDescription;
private List removedFields;
public String getCollection() {
return collection;
}
public void setCollection(String collection) {
this.collection = collection;
}
public String getPosition() {
return position;
}
public void setPosition(String position) {
this.position = position;
}
public String getDatabase() {
return database;
}
public void setDatabase(String database) {
this.database = database;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public long getClusterTime() {
return clusterTime;
}
public void setClusterTime(long clusterTime) {
this.clusterTime = clusterTime;
}
public long getWallTime() {
return wallTime;
}
public void setWallTime(long wallTime) {
this.wallTime = wallTime;
}
public UpdateDescription getUpdateDescription() {
return updateDescription;
}
public void setUpdateDescription(UpdateDescription updateDescription) {
this.updateDescription = updateDescription;
}
public List getRemovedFields() {
return removedFields;
}
public void setRemovedFields(List removedFields) {
this.removedFields = removedFields;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy