Package org.eclnt.jsfserver.streamstore
Class StreamStoreJDBC
java.lang.Object
org.eclnt.jsfserver.streamstore.StreamStoreJDBC
- All Implemented Interfaces:
IStreamStore
Streamstore implementation that directly works with JDBC. The JDBC connection
is provided by an interface IJDBCConnectionProvider - that internally is defined
by a definition in the system.xml configuration file.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckIfStreamExists(String path, boolean withError) getContainedFolders(String path, boolean withError) getContainedStreams(String path, boolean withError) voidremoveStream(String path, boolean withError) protected IJDBCConnectionProvider2Central method for retrieving connection provider.voidsetConnectionProvider(IJDBCConnectionProvider2 connectionProvider) Explicitly set connection provider - e.g. to use this class in JUnit testing.void
-
Field Details
-
NULLOBJECT
-
-
Constructor Details
-
StreamStoreJDBC
public StreamStoreJDBC()
-
-
Method Details
-
setConnectionProvider
Explicitly set connection provider - e.g. to use this class in JUnit testing. By default the connection provider is read from system.xml configuration. -
getConnectionProvider
-
getContainedStreams
- Specified by:
getContainedStreamsin interfaceIStreamStore
-
getContainedFolders
- Specified by:
getContainedFoldersin interfaceIStreamStore
-
readUTF8
- Specified by:
readUTF8in interfaceIStreamStore
-
readUTF8
-
writeUTF8
- Specified by:
writeUTF8in interfaceIStreamStore
-
removeStream
- Specified by:
removeStreamin interfaceIStreamStore
-
checkIfStreamExists
- Specified by:
checkIfStreamExistsin interfaceIStreamStore
-
retrieveConnectionProvider
Central method for retrieving connection provider.
-