Package com.cxy.redisclient.dto

Source Code of com.cxy.redisclient.dto.ContainerKeyInfo

package com.cxy.redisclient.dto;

import com.cxy.redisclient.domain.ContainerKey;

public class ContainerKeyInfo {
  private int id;
  private String serverName;
  private int db;
  private ContainerKey container;
 
  public ContainerKeyInfo() {
    super();
    this.id = -1;
    this.db = -1;
    this.container = new ContainerKey("");
  }
  public int getId() {
    return id;
  }
  public void setId(int id) {
    this.id = id;
  }
  public int getDb() {
    return db;
  }
  public void setDb(int db) {
    this.db = db;
  }
  public ContainerKey getContainer() {
    return container;
  }
  public String getContainerStr() {
    return container == null?"":container.getContainerKey();
  }
  public String getContainerOnly() {
    return container == null?"":container.getContainerOnly();
  }
  public void setContainer(ContainerKey container) {
    this.container = container;
  }
  public void setContainer(ContainerKey container, String key) {
    String con = container == null?"":container.getContainerKey();
    this.container = new ContainerKey(con + key);
  }
  public String getServerName() {
    return serverName;
  }
  public void setServerName(String serverName) {
    this.serverName = serverName;
  }
}
TOP

Related Classes of com.cxy.redisclient.dto.ContainerKeyInfo

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.