datasource

Firebase database Not equal request - Alternative solution (for iOS)

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-27 07:26:46
问题 I am using Firebase database with a Json structure to manage users' comments. { "post-comments" : { "post-id-1" : { "comment-id-11" : { "author" : "user1", "text" : "Hello world", "uid" : "user-id-2" },.... } I would like to pull all the comments but excluding the current user's one. In SQL this will be translated into: Select * from post-comments where id !="user-id-2" I understand that Firebase database does not offer a way to excludes nodes based on the presence of a value (ie: user id !=

How to use same JRBeanCollectionDataSource on multiple sub reports? [duplicate]

谁说胖子不能爱 提交于 2019-11-27 07:22:24
问题 This question already has an answer here: Multiple Subreports in Main Report using same datasource 1 answer How to use the same datasource twice in JasperReports/iReport 2 answers Jasperreports - two subreports, same jrxml, same pojo datasource 1 answer I call two subreports with same datasource, however when I print this report, only my 1st sub-report is populated with table. This is how I pass the statsData1 to report. List<BasicStats> summaryList = new ArrayList<>(); summaryList.add(new

java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver : Am I loading the right driver?

自古美人都是妖i 提交于 2019-11-27 07:11:18
问题 When I run the following snippet to connect to datasource to get the data out through queries : try { String driver = "com.microsoft.jdbc.sqlserver.SQLServerDriver"; Class.forName(driver); String Url = "jdbc:sqlserver://localhost:1433;databaseName=movies"; Connection connection = DriverManager.getConnection(Url,"sa", "xxxxxxx); // Context initContext = new InitialContext(); // Context envContext = (Context)initContext.lookup("java:comp/env"); // DataSource ds = (DataSource)envContext.lookup("

Kendo UI Dynamically Change Datasource String (XML)

雨燕双飞 提交于 2019-11-27 07:01:45
问题 I have a Kendo Grid that binds to an XML DataSource. How can I have the DataSource change, based off the selection of a drop down list. Example: //Create DataSource var gridDataSource = new kendo.data.DataSource({ transport: { read: [DropDownListValue] + ".xml", dataType: "xml" } }); gridDataSource.read(); function createGrid(){ var grid = $("#grid").kendoGrid({ dataSource: gridDataSource }... }; Where [DropDownListValue] is a drop down list on my form. In this example if [DropDownListValue]

Where should the JDBC driver JAR files reside on a Tomcat deployment with a datasource?

风流意气都作罢 提交于 2019-11-27 06:55:17
问题 I have java web application using Spring, Hibernate, Tomcat7 & MySql. I use Datasource for database operations. I am not very clear about what is the standard location to load the jar files ( Tomcat-jdbc.jar & Mysql-connector.jar ) from? It works if I keep BOTH the jars either in CATALINA_HOME/lib/ or webapps/myApp/WEB-INF/lib . But I was told to use only the Tomcat-jdbc from CATALINA_HOME/lib/ and mysql-connector.jar from /WEB-INF/lib/ , which gives a ClassNotFound Exception for Sql Driver .

How to use encrypted password in apache BasicDataSource?

坚强是说给别人听的谎言 提交于 2019-11-27 06:50:42
At present i am keeping the password [ unencrypted ] in a property file. This password get placed as is in the configuration xml using ant. [ The configuration xml is for datasource, it is creating the object of dbcp.BasicDataSource ] Now, is it possible that after the ant target the password is copied in encrypted form. Heard the Jasypt can do that! Till now i haven't tried this. But, the problem doesn't end here. BasicDataSource do not accept encrypted password. Is there any replacement for BasicDatasource. FYI: I am using Spring, if that matters. With Spring there is a better way: use the

Spring boot JNDI datasource lookup failure - Name comp/env/jdbc not found in context “java:”

三世轮回 提交于 2019-11-27 06:14:03
问题 I have setup a spring boot (v 1.1.9) application to deploy as a WAR file. And I'm trying to integrate this web application with an existing data service module (added as a maven dependency). Environment trying to deploy: WebSphere Application Server 8.5.5.4 The issue I'm facing is an application start-up failure when try to look-up a JNDI dataSource ( jdbc/fileUploadDS ) as below within the dependent data service module. @Configuration @Profile("prod") public class JndiDataConfig implements

Why do we use a DataSource instead of a DriverManager?

[亡魂溺海] 提交于 2019-11-27 04:57:22
问题 I am reading the Java JDBC specification (vr. 4) and I encountred this statement: DataSource — this interface was introduced in the JDBC 2.0 Optional Package API. It is preferred over DriverManager because it allows details about the underlying data source to be transparent to the application What I am trying to understand is what the difference is between a Connection and a DataSource, and why it exists. I mean, the block above says that the details about a datasource is transparent to the

Unable to find the requested .Net Framework Data Provider in Visual Studio 2010 Professional

岁酱吖の 提交于 2019-11-27 04:29:02
Why am I getting "Unable to find the requested .Net Framework Data Provider" when trying to setup a new datasource in Visual Studio 2010 Professional? My stats: Windows 7 64bit 16gig RAM Visual Studio 2010 Professional SQL Server 2008 (server A, full admin rights) SQL Server 2008 (server B, full admin rights) I have started a test ASP.NET application and when I try to add a new data source, I get: Unable to find the requested .Net Framework Data Provider. It may not be installed. I have .NET 4 installed. When I build the connection and click "Test Connection" it tests successful. SQL Server

Using a list as a data source for DataGridView

送分小仙女□ 提交于 2019-11-27 04:22:06
I've extracted the setting names and their respective values out of a configuration file into an ordered dictionary. The dictionary contains keys and values which are of the ICollection class. I want to bind that data and display it in a DataGridView. I've tried copying the strings to arrays and displaying those arrays, but when I ran the program the columns were blank and it did not seem to be binded at all. I've also attempted to set the DataGridView source directly to one the ordered dictionary collections (keys or values), but that also did not result in anything I wanted; the columns were