Skip to content
Snippets Groups Projects
Commit e8271c3b authored by Jan Kožusznik's avatar Jan Kožusznik
Browse files

Reduce visibility

parent 180ab6c1
No related merge requests found
package table_view; package table_view;
public interface JDBCDialect { interface JDBCDialect {
String getDriverClazzName(); String getDriverClazzName();
String getDriverID(); String getDriverID();
String getCreateTable(); String getCreateTable();
......
...@@ -2,7 +2,7 @@ package table_view; ...@@ -2,7 +2,7 @@ package table_view;
import javafx.beans.property.SimpleStringProperty; import javafx.beans.property.SimpleStringProperty;
public class Person { class Person {
private final Long id; private final Long id;
private final SimpleStringProperty firstName; private final SimpleStringProperty firstName;
......
...@@ -9,8 +9,7 @@ import java.sql.Statement; ...@@ -9,8 +9,7 @@ import java.sql.Statement;
import java.util.Collection; import java.util.Collection;
import java.util.LinkedList; import java.util.LinkedList;
class PersonDAO implements AutoCloseable{
public class PersonDAO implements AutoCloseable{
private static final String INSERT_SQL = "INSERT INTO person(first_name, last_name, email) values (?,?,?)"; private static final String INSERT_SQL = "INSERT INTO person(first_name, last_name, email) values (?,?,?)";
......
package table_view; package table_view;
public class PostgresqlJDBCDialect implements JDBCDialect{ class PostgresqlJDBCDialect implements JDBCDialect{
@Override @Override
public String getDriverClazzName() { public String getDriverClazzName() {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment