datasource

Angular Material Table Dynamic Columns without model

断了今生、忘了曾经 提交于 2019-11-30 07:20:10
I need to use angular material table without model, because I don't know what will come from service. So I am initializing my MatTableDataSource and displayedColumns dynamically in component like that : TableComponent : ngOnInit() { this.vzfPuanTablo = [] //TABLE DATASOURCE //GET SOMETHING FROM SERVICE this.listecidenKisi = this.listeciServis.listecidenKisi; this.listecidenVazife = this.listeciServis.listecidenVazife; //FILL TABLE DATASOURCE var obj = {}; for (let i in this.listecidenKisi ){ for( let v of this.listecidenVazife[i].vazifeSonuclar){ obj[v.name] = v.value; } this.vzfPuanTablo.push

java.lang.ClassNotFoundException: org.apache.tomcat.jdbc.pool DataSourceFactory

守給你的承諾、 提交于 2019-11-30 06:34:01
问题 I'm investigating moving away from an Oracle connection pool and using the Tomcat connection pool. I followed the myriad of example for configuring the <Resource> in Tomcat's /conf/server.xml . I found great info here. However, when I start Tomcat, I get the following error: javax.naming.NamingException: Could not load resource factory class [Root exception is java.lang.ClassNotFoundException: org.apache.tomcat.jdbc.pool DataSourceFactory] I'm using Tomcat 6.0. My <Resource> config in /conf

How to programmatically change databases in Spring with one DataSource?

£可爱£侵袭症+ 提交于 2019-11-30 06:26:22
问题 I'm looking to see what's the best way to use one DataSources in Spring but be able to switch the database from within the Java code? Below are my two DataSources and they go to the same database server but different databases. <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <property name="driverClassName" value="com.sybase.jdbc3.jdbc.SybDataSource" /> <property name="url" value="jdbc:sybase:Tds:10.20.30.40:50/DATABASE_EMS" /> <property name=

DataGridView: Keep selections after datasource is changed?

白昼怎懂夜的黑 提交于 2019-11-30 05:40:19
问题 Is there a way to keep the selected cells of a DataGridView selected after the DataSource is changed? 回答1: You can match what should be selected based on criteria specific to your needs and just set the Select property of either the cell or row to true/false depending on your matching. Here's a simple example you can drop in a newly created winforms project that will illustrate the point. For this example to work make sure you set the DataGridView's SelectionMode = FullRowSelect. If you want

jboss 7 AS datasource for sqlserver

倾然丶 夕夏残阳落幕 提交于 2019-11-30 05:08:10
I run jboss in standalone mode and have set my datasource in the standalone.xml to the following: <datasource jndi-name="MyDenaliDS" pool-name="MyDenaliDs_Pool" enabled="true" jta="true" use-java-context="true" use-ccm="true"> <connection-url> jdbc:sqlserver://myip:1433;databaseName=mydb;integratedSecurity=true </connection-url> <driver> sqljdbc </driver> <security> <user-name> username </user-name> <password> password </password> </security> </datasource> <drivers> <driver name="sqljdbc" module="com.microsoft.sqlserver.jdbc"> <driver-class> com.microsoft.sqlserver.jdbc.SQLServerDataSource <

Adding SQL Server Compact Edition data source to Visual Studio?

一个人想着一个人 提交于 2019-11-30 04:58:03
问题 I want to add a SQL Server Compact edition in my project in Visual Studio 2013.4, but I don't have the data source in my list: Also, I don't have System.Data.Sqlce in my assemblies. How can I add SQL Server Compact data source to my Visual Studio? 回答1: 1: Install the relevant runtime MSI (3.5 SP2 or 4.0) http://www.microsoft.com/en-us/download/details.aspx?id=5783 http://www.microsoft.com/en-us/download/details.aspx?id=30709 2: Install the SQL Server Compact Toolbox VS Extension, and browse

Oracle data-source configuration for Spring

只谈情不闲聊 提交于 2019-11-30 04:55:42
In the Spring framework, how is an Oracle data-source configured? In the context.xml file: <bean id="dataSource" class="oracle.jdbc.pool.OracleDataSource"> <property name="dataSourceName" value="ds"/> <property name="URL" value="jdbc:oracle:thin:@<hostname>:<port_num>:<SID>"/> <property name="user" value="dummy_user"/> <property name="password" value="dummy_pwd"/> </bean> Example of URL: jdbc:oracle:thin:@abc.def.ghi.com:1234:TEAM4 1. Since Oracle JDBC Driver is not in Maven repository , download it from http://www.oracle.com/technetwork/database/features/jdbc/default-2280470.html (for example

MySQL connection validity test in datasource : SELECT 1 or something better?

梦想与她 提交于 2019-11-30 02:58:40
问题 I'm setting up a failover cluster on MySQL, in a master/slave architecture. I'm also configuring my JBoss Datasource, and I'm looking for the better way to test my connection, knowing that it is for Alfresco (which is using Ibatis). Even I praticed MySQL many times, I don't know very well internals mechanisms of execution in MySQL Server. So far, I'm using this query to test my SQL connection (like in this thread : Database Fail Over in Jboss Data sources) SELECT 1; Here the full datasource.

Multiple DataSources with Multiple Transaction Managers in Spring

怎甘沉沦 提交于 2019-11-30 02:37:36
问题 I have three DataSource 's (JDBC) defined in the Junit application context file. Two of them need to be transactionally managed; I do not have to chain any of the methods when using these two data sources (they are entirely independent of each other). I did not have a problem when I used a single transaction manager for dataSource2 , even though dataSource3 was being utilized but not managed in the corresponding methods. Nonetheless, upon needing to also manage methods from various DAO

C# Update combobox bound to generic list

随声附和 提交于 2019-11-30 02:11:00
问题 I have a combobox on my form that is bound to a generic list of string like this: private List<string> mAllianceList = new List<string>(); private void FillAllianceList() { // Add alliance name to member alliance list foreach (Village alliance in alliances) { mAllianceList.Add(alliance.AllianceName); } // Bind alliance combobox to alliance list this.cboAlliances.DataSource = mAllianceList; } The user may then add or remove items in the combobox. I have read elsewhere that by simply adding or