Class DefaultPreparedStatementsFactory
java.lang.Object
org.apache.velocity.runtime.resource.loader.DefaultPreparedStatementsFactory
- All Implemented Interfaces:
PreparedStatementsFactory
Stock
PreparedStatementsFactory: one fresh connection per prepare(String),
closed with the holder. Pooling and statement caching, if needed, belong to the configured
DataSource / JDBC driver.- Since:
- 2.5
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.velocity.runtime.resource.loader.PreparedStatementsFactory
PreparedStatementsFactory.StatementHolder -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.velocity.runtime.resource.loader.PreparedStatementsFactory
clear, release, setLogger
-
Constructor Details
-
DefaultPreparedStatementsFactory
public DefaultPreparedStatementsFactory()
-
-
Method Details
-
init
- Specified by:
initin interfacePreparedStatementsFactory
-
prepare
- Specified by:
preparein interfacePreparedStatementsFactory- Throws:
SQLException
-