Skip to content

Commit

Permalink
Redesigned database
Browse files Browse the repository at this point in the history
- removed trackinfo table
- deleting directory is now faster
  • Loading branch information
tayal007 committed Nov 27, 2016
1 parent e0d8707 commit 52f912c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions nbproject/private/private.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
<file>file:/C:/Users/SANJAY%20TAYAL/Documents/NetBeansProjects/BeatBoxer/src/beatboxer/Search.java</file>
<file>file:/C:/Users/SANJAY%20TAYAL/Documents/NetBeansProjects/BeatBoxer/src/beatboxer/DataBase.java</file>
<file>file:/C:/Users/SANJAY%20TAYAL/Documents/NetBeansProjects/BeatBoxer/src/beatboxer/Directory.java</file>
<file>file:/C:/Users/SANJAY%20TAYAL/Documents/NetBeansProjects/BeatBoxer/src/beatboxer/Show.java</file>
</group>
Expand Down
2 changes: 1 addition & 1 deletion src/beatboxer/Search.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public ObservableList<BBItem> SearchAlbum(String string) {

public ObservableList<BBSong> SearchTrack(String string) {
try {
String sql = "select * from track natural join artist natural join album natural join trackinfo where trackname LIKE ? order by trackname";
String sql = "select * from track natural join artist natural join album where trackname LIKE ? order by trackname";
PreparedStatement statement = con.prepareStatement(sql);
statement.setString(1, "%" + string + "%");
ResultSet res = statement.executeQuery();
Expand Down

0 comments on commit 52f912c

Please sign in to comment.