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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkIfStreamExists
(String path, boolean withError) getContainedFolders
(String path, boolean withError) getContainedStreams
(String path, boolean withError) void
removeStream
(String path, boolean withError) protected IJDBCConnectionProvider2
Central method for retrieving connection provider.void
setConnectionProvider
(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:
getContainedStreams
in interfaceIStreamStore
-
getContainedFolders
- Specified by:
getContainedFolders
in interfaceIStreamStore
-
readUTF8
- Specified by:
readUTF8
in interfaceIStreamStore
-
readUTF8
-
writeUTF8
- Specified by:
writeUTF8
in interfaceIStreamStore
-
removeStream
- Specified by:
removeStream
in interfaceIStreamStore
-
checkIfStreamExists
- Specified by:
checkIfStreamExists
in interfaceIStreamStore
-
retrieveConnectionProvider
Central method for retrieving connection provider.
-