Mercurial > hg > release > thermostat-0.11
view storage/core/src/main/java/com/redhat/thermostat/storage/core/PreparedStatementFactory.java @ 1152:4ba43dcff78e
Implement prepared statements (Part 1).
Reviewed-by: ebaron
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2013-June/007214.html
author | Severin Gehwolf <sgehwolf@redhat.com> |
---|---|
date | Fri, 28 Jun 2013 15:27:50 +0200 |
parents | |
children |
line wrap: on
line source
package com.redhat.thermostat.storage.core; import com.redhat.thermostat.storage.internal.statement.PreparedStatementImpl; /** * Factory for instantiating a {@link PreparedStatement}. * */ public class PreparedStatementFactory { public static PreparedStatement getInstance(Storage storage, StatementDescriptor desc) throws DescriptorParsingException { // This is the sole method in order to avoid leaking impl details of // this OSGi module. Storage implementations will have to use this // factory. return new PreparedStatementImpl(storage, desc); } }