Class HandleImpl
- java.lang.Object
-
- io.apicurio.registry.storage.impl.sql.jdb.HandleImpl
-
- All Implemented Interfaces:
Handle,Closeable,AutoCloseable
public class HandleImpl extends Object implements Handle
- Author:
- eric.wittmann@gmail.com
-
-
Constructor Summary
Constructors Constructor Description HandleImpl(Connection connection)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()QuerycreateQuery(String sql)Create a new Query from the given SQL.UpdatecreateUpdate(String sql)Create a new Update statement from the given SQL.
-
-
-
Constructor Detail
-
HandleImpl
public HandleImpl(Connection connection)
Constructor.- Parameters:
connection-
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException- See Also:
Closeable.close()
-
createQuery
public Query createQuery(String sql)
Description copied from interface:HandleCreate a new Query from the given SQL.- Specified by:
createQueryin interfaceHandle- See Also:
Handle.createQuery(java.lang.String)
-
createUpdate
public Update createUpdate(String sql)
Description copied from interface:HandleCreate a new Update statement from the given SQL.- Specified by:
createUpdatein interfaceHandle- See Also:
Handle.createUpdate(java.lang.String)
-
-