All Packages Class Hierarchy This Package Previous Next Index
Class JBMSTours.inserters.InsertHotels
java.lang.Object
|
+----JBMSTours.inserters.InsertHotels
- public class InsertHotels
- extends Object
- implements Inserters
Look at the Source.
This class inserts the hotels
(the Hotels table).
-
InsertHotels()
-
-
confirmInsert(Connection)
-
-
createSQLScript(Connection)
-
-
extractDataForReInsert(Connection)
- A home-made method for exporting data.
-
fullHotelEntry(int, String, int, int, String, String, int)
-
-
fullHotelEntry(int, String, int, int, String, String, int, int, int)
- Enters a single hotel into the database.
-
insert(Connection)
- Inserts a large amount of flight data.
-
prepareStatements(Connection)
-
InsertHotels
public InsertHotels()
insert
public boolean insert(Connection conn) throws SQLException
- Inserts a large amount of flight data.
- Parameters:
- conn - the name of the connection
- Throws: SQLException
- Thrown if there is a SQL error.
prepareStatements
public boolean prepareStatements(Connection conn) throws SQLException
fullHotelEntry
protected int fullHotelEntry(int id,
String name,
int cid,
int level,
String normalrate,
String highseasonrate,
int rooms,
int highseasonbegin,
int highseasonend) throws SQLException
- Enters a single hotel into the database.
- Throws: SQLException
- Thrown if there is a SQL error.
fullHotelEntry
protected int fullHotelEntry(int id,
String name,
int cid,
int level,
String normalrate,
String highseasonrate,
int rooms) throws SQLException
confirmInsert
public void confirmInsert(Connection conn) throws SQLException
extractDataForReInsert
public void extractDataForReInsert(Connection conn) throws SQLException
- A home-made method for exporting data.
- Parameters:
- conn - the connection to the database
- Throws: SQLException
- Thrown if there is a SQL error.
createSQLScript
public boolean createSQLScript(Connection conn) throws SQLException
All Packages Class Hierarchy This Package Previous Next Index