Package cz.o2.proxima.direct.jdbc
Class JdbcDataAccessor
- java.lang.Object
-
- cz.o2.proxima.core.storage.AbstractStorage
-
- cz.o2.proxima.core.storage.AbstractStorage.SerializableAbstractStorage
-
- cz.o2.proxima.direct.jdbc.JdbcDataAccessor
-
- All Implemented Interfaces:
AbstractDataAccessor
,DataAccessor
,java.io.Serializable
public class JdbcDataAccessor extends AbstractStorage.SerializableAbstractStorage implements DataAccessor
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class cz.o2.proxima.core.storage.AbstractStorage
AbstractStorage.SerializableAbstractStorage
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
JdbcDataAccessor(EntityDescriptor entityDesc, java.net.URI uri, java.util.Map<java.lang.String,java.lang.Object> cfg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<BatchLogReader>
getBatchLogReader(Context context)
Retrieve batch log reader.java.util.Optional<RandomAccessReader>
getRandomAccessReader(Context context)
Retrieve random access reader.java.util.Optional<AttributeWriterBase>
getWriter(Context context)
Retrieve writer (if applicable).void
releaseDataSource()
-
Methods inherited from class cz.o2.proxima.core.storage.AbstractStorage
equals, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cz.o2.proxima.core.storage.internal.AbstractDataAccessor
getUri
-
Methods inherited from interface cz.o2.proxima.direct.core.DataAccessor
getCachedView, getCommitLogReader, isAcceptable
-
-
-
-
Constructor Detail
-
JdbcDataAccessor
protected JdbcDataAccessor(EntityDescriptor entityDesc, java.net.URI uri, java.util.Map<java.lang.String,java.lang.Object> cfg)
-
-
Method Detail
-
getWriter
public java.util.Optional<AttributeWriterBase> getWriter(Context context)
Description copied from interface:DataAccessor
Retrieve writer (if applicable).- Specified by:
getWriter
in interfaceDataAccessor
- Parameters:
context
- the serializable context provided by repository- Returns:
- optional
AttributeWriterBase
of this accessor
-
getRandomAccessReader
public java.util.Optional<RandomAccessReader> getRandomAccessReader(Context context)
Description copied from interface:DataAccessor
Retrieve random access reader.- Specified by:
getRandomAccessReader
in interfaceDataAccessor
- Parameters:
context
- serializable context provided by repository- Returns:
- optional
RandomAccessReader
of this accessor
-
getBatchLogReader
public java.util.Optional<BatchLogReader> getBatchLogReader(Context context)
Description copied from interface:DataAccessor
Retrieve batch log reader.- Specified by:
getBatchLogReader
in interfaceDataAccessor
- Parameters:
context
- serializable context provided by repository- Returns:
- optional
BatchLogReader
of this accessor
-
releaseDataSource
public void releaseDataSource()
-
-