Class ExecStatement
- java.lang.Object
-
- com.djrapitops.plan.storage.database.transactions.ExecStatement
-
- All Implemented Interfaces:
Executable
- Direct Known Subclasses:
ExecBatchStatement
public abstract class ExecStatement extends java.lang.Object implements Executable
SQL executing statement that closes appropriate elements.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ExecStatement(java.lang.String sql)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected boolean
callExecute(java.sql.PreparedStatement statement)
boolean
execute(java.sql.Connection connection)
boolean
execute(java.sql.PreparedStatement statement)
java.lang.String
getSql()
abstract void
prepare(java.sql.PreparedStatement statement)
-
-
-
Method Detail
-
execute
public boolean execute(java.sql.Connection connection)
- Specified by:
execute
in interfaceExecutable
-
execute
public boolean execute(java.sql.PreparedStatement statement) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
callExecute
protected boolean callExecute(java.sql.PreparedStatement statement) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
prepare
public abstract void prepare(java.sql.PreparedStatement statement) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getSql
public java.lang.String getSql()
-
-