All Downloads are FREE. Search and download functionalities are using the official Maven repository.

internal.org.springframework.content.jpa.io.MySQLBlobResource Maven / Gradle / Ivy

There is a newer version: 3.0.15
Show newest version
package internal.org.springframework.content.jpa.io;

import org.springframework.content.jpa.io.AbstractBlobResource;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.transaction.PlatformTransactionManager;

public class MySQLBlobResource extends AbstractBlobResource {

	public MySQLBlobResource(Object id, JdbcTemplate template, PlatformTransactionManager txnMgr) {
		super(id, template, txnMgr);
	}

	@Override
	protected String getSelectBlobSQL(Object id) {
		return "SELECT id, 'content' as content FROM BLOBS WHERE id='" + id + "'";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy