Usuniecie getIfFromDB()

This commit is contained in:
Agnieszka Janicka 2016-06-04 23:45:37 +02:00
parent 81ed68172e
commit 038d508f6e
6 changed files with 2 additions and 13 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -28,10 +28,7 @@ public void delFromDB(){
public void editInDB(){ public void editInDB(){
}; };
@Override
public void setIdFromDB(){
//String query = "SELECT id FROM albums WHERE musican LIKE " + this.getISBN() +";";
}
public void setMusican(String s){ public void setMusican(String s){
this.musican = s; this.musican = s;

View File

@ -34,10 +34,7 @@ public void editInDB(){
/*public void insertQuery(){ /*public void insertQuery(){
System.out.println("INSERT INTO books VALUES('NULL', '" +name + "', '" + authorName + "', '" + authorSurname + "', '"+ publishing + "', '"+ year + "', '"+ ISBN + "', '"+ category + "');"); System.out.println("INSERT INTO books VALUES('NULL', '" +name + "', '" + authorName + "', '" + authorSurname + "', '"+ publishing + "', '"+ year + "', '"+ ISBN + "', '"+ category + "');");
}*/ }*/
@Override
public void setIdFromDB(){
String query = "SELECT id FROM books WHERE isbn LIKE " + this.getISBN() +";";
}
public void setPublishing(String s){ public void setPublishing(String s){
this.publishing = s; this.publishing = s;
} }

View File

@ -28,8 +28,3 @@ public void editInDB(){
/*public void insertQuery(){ /*public void insertQuery(){
System.out.println("INSERT INTO books VALUES('NULL', '" +name + "', '" + authorName + "', '" + authorSurname + "', '"+ publishing + "', '"+ year + "', '"+ ISBN + "', '"+ category + "');"); System.out.println("INSERT INTO books VALUES('NULL', '" +name + "', '" + authorName + "', '" + authorSurname + "', '"+ publishing + "', '"+ year + "', '"+ ISBN + "', '"+ category + "');");
}*/ }*/
@Override
public void setIdFromDB(){
// String query = "SELECT id FROM books WHERE isbn LIKE " + this.getISBN() +";";
}
}