Class PostgresSequentialSequentialFileDriver
java.lang.Object
org.apache.activemq.artemis.jdbc.store.drivers.AbstractJDBCDriver
org.apache.activemq.artemis.jdbc.store.file.JDBCSequentialFileFactoryDriver
org.apache.activemq.artemis.jdbc.store.file.PostgresSequentialSequentialFileDriver
-
Field Summary
Fields inherited from class org.apache.activemq.artemis.jdbc.store.file.JDBCSequentialFileFactoryDriver
appendToLargeObject, appendToLargeObjectResultSetConcurrency, appendToLargeObjectResultSetType, copyFileRecord, createFile, createFileAutogeneratedKeys, createFileColumnNames, deleteFile, readLargeObject, renameFile, selectFileByFileName, selectFileNamesByExtensionFields inherited from class org.apache.activemq.artemis.jdbc.store.drivers.AbstractJDBCDriver
connectionProvider, sqlProvider -
Constructor Summary
ConstructorsConstructorDescriptionPostgresSequentialSequentialFileDriver(JDBCConnectionProvider connectionProvider, SQLProvider provider) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateFile(JDBCSequentialFile file) Creates a new database row representing the supplied file.voidloadFile(JDBCSequentialFile file) Loads an existing file.protected voidintreadFromFile(JDBCSequentialFile file, ByteBuffer bytes) Reads data from the file (at file.readPosition) into the byteBuffer.intwriteToFile(JDBCSequentialFile file, byte[] data, boolean append) Persists data to this files associated database mapping.Methods inherited from class org.apache.activemq.artemis.jdbc.store.file.JDBCSequentialFileFactoryDriver
calculateReadLength, copyFileData, createSchema, deleteFile, destroy, getFileID, getMaxSize, listFiles, openFile, renameFileMethods inherited from class org.apache.activemq.artemis.jdbc.store.drivers.AbstractJDBCDriver
createTable, getJdbcConnectionProvider, getSqlProvider, setJdbcConnectionProvider, setSqlProvider, start, stop
-
Constructor Details
-
PostgresSequentialSequentialFileDriver
- Throws:
SQLException
-
PostgresSequentialSequentialFileDriver
public PostgresSequentialSequentialFileDriver(JDBCConnectionProvider connectionProvider, SQLProvider provider)
-
-
Method Details
-
prepareStatements
protected void prepareStatements()- Overrides:
prepareStatementsin classJDBCSequentialFileFactoryDriver
-
createFile
Description copied from class:JDBCSequentialFileFactoryDriverCreates a new database row representing the supplied file.- Overrides:
createFilein classJDBCSequentialFileFactoryDriver- Throws:
SQLException
-
loadFile
Description copied from class:JDBCSequentialFileFactoryDriverLoads an existing file.- Overrides:
loadFilein classJDBCSequentialFileFactoryDriver- Throws:
SQLException
-
writeToFile
Description copied from class:JDBCSequentialFileFactoryDriverPersists data to this files associated database mapping.- Overrides:
writeToFilein classJDBCSequentialFileFactoryDriver- Throws:
SQLException
-
readFromFile
Description copied from class:JDBCSequentialFileFactoryDriverReads data from the file (at file.readPosition) into the byteBuffer.- Overrides:
readFromFilein classJDBCSequentialFileFactoryDriver- Throws:
SQLException
-