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

com.litongjava.model.dsn.JdbcInfo Maven / Gradle / Ivy

There is a newer version: 1.1.5
Show newest version
package com.litongjava.model.dsn;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class JdbcInfo implements java.io.Serializable {

  private static final long serialVersionUID = 458198790934789146L;

  //jdbc:postgresql://192.168.3.9/uh_courses
  private String url, user, pswd;

  /**
   * mysql,oracle,postgresql,sqlite
   * @return
   */
  public String getDbType() {
    return url.split(":")[1];
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy