Class Template
java.lang.Object
net.officefloor.tutorial.databasehttpserver.Template
Provides logic for the template.
- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRow(Row row, Connection connection, net.officefloor.server.http.ServerHttpConnection http) voiddeleteRow(String id, Connection connection, net.officefloor.server.http.ServerHttpConnection http) Row[]getRows(Connection connection)
-
Constructor Details
-
Template
public Template()
-
-
Method Details
-
getRows
- Throws:
SQLException
-
addRow
public void addRow(Row row, Connection connection, net.officefloor.server.http.ServerHttpConnection http) throws SQLException, IOException - Throws:
SQLExceptionIOException
-
deleteRow
public void deleteRow(@HttpQueryParameter("id") String id, Connection connection, net.officefloor.server.http.ServerHttpConnection http) throws SQLException, IOException - Throws:
SQLExceptionIOException
-