


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Class: DATABASE SYSTEMS; Subject: COMPUTER SCIENCE; University: Texas A&M University; Term: Unknown 1989;
Typology: Assignments
1 / 4
This page cannot be seen from the preview
Don't miss anything!



public int getInt(String fldname) { if (scanningS1) if (s1.hasField(fldname)) return s1.getInt(fldname); return s2.getInt(fldname); }
new transaction: 1 creating new database transaction 1 committed new transaction: 2 1 2003 Dinosaur 2 2004 Isle of M 3 1997 Character 4 1994 Paula Abd 5 2004 The Rise 5 MOVIE records inserted. 6 1997 Sick 7 1992 8 Man 8 2004 What the 9 1991 Class of 10 2001 Fighter 5 MOVIE records inserted. 1 2003 Dinosaur 2 2004 Isle of M 3 1997 Character
4 1994 Paula Abd 5 2004 The Rise 6 1997 Sick 7 1992 8 Man 8 2004 What the 9 1991 Class of 10 2001 Fighter transaction 2 committed
public boolean dropTable(String tblname, Transaction tx) { return tblmgr .dropTable(tblname, tx); }
public boolean dropTable(String tblname, Transaction tx) { boolean tblDropped = false ;
// drop the table from tblcat RecordFile tcatfile = new RecordFile(tcatInfo, tx); while (tcatfile.next()){ if (tcatfile.getString("tblname").equals((Object) tblname)){ tcatfile.delete(); tblDropped = true ; break ; } } tcatfile.close(); if (tblDropped){ RecordFile fcatfile = new RecordFile(fcatInfo, tx); while (fcatfile.next()) {
if (fcatfile.getString("tblname").equals((Object) tblname)) fcatfile.delete(); } fcatfile.close();
this .pred = pred; this .ordbyflds = ordbyflds; } /**
//Step 3.5: Add a sort plan for the order by clause if (data.ordbyflds() != null ) p = new SortPlan(p, data.ordbyflds(), tx);