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

com.bixuebihui.jdbc.event.ChangeEvent Maven / Gradle / Ivy

Go to download

a fast small database connection pool and a active record flavor mini framework

There is a newer version: 1.15.3.3
Show newest version
package com.bixuebihui.jdbc.event;

import java.util.List;

/**
 * @author xwx
 */
public class ChangeEvent {
    ChangeType changeType;
    String dbName;
    String tableName;
    String keyName;
    List key;

    public ChangeEvent(String databaseName, String tableName, String keyName, List id, ChangeType changeType) {
        this.dbName = databaseName;
        this.tableName = tableName;
        this.keyName =  keyName;
        this.changeType = changeType;
        this.key = id;
    }

    public ChangeType getChangeType() {
        return changeType;
    }

    public void setChangeType(ChangeType changeType) {
        this.changeType = changeType;
    }

    public String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public List getKey() {
        return key;
    }

    public void setKey(List key) {
        this.key = key;
    }

    @Override
    public String toString() {
        return "{" +
                "changeType=" + changeType +
                ", dbName='" + dbName + '\'' +
                ", tableName='" + tableName + '\'' +
                ", keyName='" + keyName + '\'' +
                ", key=" + key +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy