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.0.2
Show newest version
package com.litongjava.model.dsn;

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

@Data
@NoArgsConstructor
@AllArgsConstructor
public class JdbcInfo {
  //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