Package com.ocient.util
Interface RowTransformerFactory
- All Known Implementing Classes:
NullRowTransformerFactory,ResultSetExtractor,WriteThroughResultSetExtractor
public interface RowTransformerFactory
Factory interface for creating and managing
RowTransformer instances. The design pattern
typically involves acquiring a transformer when needed and then releasing it back to the factory
when it's no longer in use, enabling resource pooling.-
Method Summary
Modifier and TypeMethodDescriptionacquire()Acquires and returns aRowTransformerinstance.voidrelease(RowTransformer transformer) Releases aRowTransformerinstance back to the factory.
-
Method Details
-
acquire
RowTransformer acquire()Acquires and returns aRowTransformerinstance. -
release
Releases aRowTransformerinstance back to the factory. This method should be called when the transformer is no longer needed.- Parameters:
transformer- The non-nullRowTransformerinstance, previously obtained from this factory.
-