Understanding the Kanji 0.1.5
A tool for understanding the meaning behind the Japanese Kanji characters.
Loading...
Searching...
No Matches
net.samuelcmace.utk.logic.DatabaseWriteConnection Class Reference

The DatabaseConnection child class associated with writing data to the database. More...

Inheritance diagram for net.samuelcmace.utk.logic.DatabaseWriteConnection:
Inheritance graph
Collaboration diagram for net.samuelcmace.utk.logic.DatabaseWriteConnection:
Collaboration graph

Public Member Functions

 DatabaseWriteConnection (String m_dbConnectionString)
 Initializes a new instance of DatabaseWriteConnection.
 
void setNote (int m_cardID, String m_data) throws SQLException
 Set the card's note information, given the primary key and the associated note data.
 
- Public Member Functions inherited from net.samuelcmace.utk.logic.DatabaseConnection
 DatabaseConnection (String m_dbConnectionString)
 Initializes a new instance of DatabaseConnection.
 

Public Attributes

PreparedStatement ActivePreparedStatement
 The statement object associated with writing data to the database.
 
- Public Attributes inherited from net.samuelcmace.utk.logic.DatabaseConnection
Connection ActiveConnection
 The connection object associated with the instance of DatabaseConnection.
 

Protected Member Functions

void finalize ()
 Method called by the Java garbage collector before the object is destroyed.
 
void finalize ()
 Method called by the Java garbage collector before the object is destroyed.
 

Additional Inherited Members

- Protected Attributes inherited from net.samuelcmace.utk.logic.DatabaseConnection
String dbConnectionString
 The JDBC connection string that corresponds to the database.
 
String activeQuery
 The currently active query string used to generate the ActiveResultSet.
 

Detailed Description

The DatabaseConnection child class associated with writing data to the database.

Constructor & Destructor Documentation

◆ DatabaseWriteConnection()

net.samuelcmace.utk.logic.DatabaseWriteConnection.DatabaseWriteConnection ( String  m_dbConnectionString)

Initializes a new instance of DatabaseWriteConnection.

Parameters
m_dbConnectionStringThe JDBC connection string.

Member Function Documentation

◆ finalize()

void net.samuelcmace.utk.logic.DatabaseWriteConnection.finalize ( )
protected

Method called by the Java garbage collector before the object is destroyed.

Although this method is not needed in most java programming, it is needed here to ensure that the database connections are closed before the program exists.

Reimplemented from net.samuelcmace.utk.logic.DatabaseConnection.

◆ setNote()

void net.samuelcmace.utk.logic.DatabaseWriteConnection.setNote ( int  m_cardID,
String  m_data 
) throws SQLException

Set the card's note information, given the primary key and the associated note data.

Parameters
m_cardIDThe primary key that corresponds to the Kanji character in question.
Exceptions
SQLExceptionThrown if there was a database-related connection error.

The documentation for this class was generated from the following file: