How To Store dom4j.Document Object in MySQL Database?
Hi Everyone, i am currently using dom4j to create an xml document object i wish to hold the object in a mysql database using jdbc, however the document object does not implement serializable, i am having difficulty in storing the document object as a BLOB object within the database, any suggestions?
any help or advice would be greatly appreciated
Thanks
Convert the Document object to String and store the XML string in MySQL database.
Similar Messages
-
How to update transaction data automatically into MySQL database using PI
Dear All,
With reference to subject matter I want a sincere advice regarding how to update transaction data automatically into MySQL database using PI. Is there any link available where I can get step-by-step process.
Ex: I have a MYSQL database in my organization. Whenever a delivery created in SAP some fields like DO Number, DO quantity, SO/STO number should get updated in MYSQL database automatically.
This scenario is related to updation of transactional data into MYSQL DB and I want your suggestions pertaining to same issue.
Thanks and Regards,
Chandra SekharHi .
Develop a sceanrio between SAP to Database system,When the data updates in SAP Tables read the data and update it in DATA Base using JDBC adapter,but there will be some delay in updating data in MySQL.
serach in sdn for IDOC-TOJDBC sceannario,many documents available for the same.
Regards,
Raja Sekhar -
How does J2SE 1.4 connect to Mysql database?
Could anyone please tell me how to connect J2SE 1.4 to MySql database?
I tried to modify "CreateCoffees.java", I don't know how to replace the following two statements:
url = "jdbc:mySubprotocol:myDataSource" and
Class:forName( myDriver:ClassName);
Thank you in advance.
RaysonIt depends on the JDBC driver you are using. If you don't have one for MySQL try out the MMMySQL driver at http://mmmysql.sourceforge.net/. The doc with it explains how to connect to a database.
Col -
How i can Create Master Repository with MySQL Database?
How i can Create Master Repository with MySQL Database? i need to using MySQL Database to Master & Work Repository.
I try to add mysql libary jar file to drivers . But , can't display MySQL Technology in Database List for Create Master Repository ?
Please..
Edited by: MadoatZ on Feb 19, 2011 1:47 AMCreation of ODI master repository is limited to few relational databases only. Check certification matrix for ODI 11g
Oracle 10.2.0.4+
Oracle 11.1.0.7+
Oracle 11.2.0.1+
Microsoft SQL Server 2005
Microsoft SQL Server 2008
IBM DB2/UDB 9.7 and later FixPaks
IBM DB2/400 (V5R4+)
Hypersonic SQL 1.7.3+
Sybase AS Enterprise 15.0.x
thanks -
How to add a ChartOfAccounts object into the database.
how to add a ChartOfAccounts object into the database. please shows sample code
thanksDim CoA As SAPbobsCOM.ChartOfAccounts
CoA = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oChartOfAccounts)
CoA.Code = 11223344
CoA.ExternalCode = "a1234"
CoA.ForeignName = "f Test Account"
CoA.Name = "Test Account"
CoA.AccountType = SAPbobsCOM.BoAccountTypes.at_Other
CoA.ActiveAccount = SAPbobsCOM.BoYesNoEnum.tYES
CoA.FatherAccountKey = 100001
If CoA.Add <> 0 Then
MessageBox.Show(oCompany.GetLastErrorDescription)
Else
MessageBox.Show("Added Account")
End If
Remember the father account key must be a valid account number in the company where you are trying to add the new account. (The G/L Account code seen in the SBO client) -
How to create a Document object from a string.
If I use the following code, the input String cannot contain "\n", otherwise, it generates errors.
in the following code, inputXMLString is a String object that has xml content.
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document document = builder.parse(new InputSource(new StringReader(inputXMLString))); How can I create a Document object from a string with "\n" in the string?
Thanks.If I use the following code, the input String cannot
contain "\n", otherwise, it generates errors.That's going to be a huge surprise to thousands of people who process XML containing newline characters every day without errors.
Perhaps your newline characters are in the middle of element names, or something else that causes your XML to be not well-formed. I'm just guessing here, though, because you didn't say what errors you were getting. -
How to store word document in SAP
Hi Friends,
How to store and retrive word document in SAP?
Thanks & Regards,
Vallamuthu.MHi,
Check for the SAP ArchiveLink & BDS feature which SAP is providing . I think it will help you.
Regards
Maneesh Chandran -
How to use change document object ?
Friends,
I am learning to use the Change Document object for one of my Z table. I have created a change doc object using SCDO. I have now written a test report in which i am issuing the SELECT statement for fetching old and new values from the Z table and passing them to the FM generated by SCDO.
I am not able to see the changes in the CDHDR and CDPOS tables. I am doubtful abt the values being passed to the FM. Here are the values i am passing:
CALL FUNCTION 'YTEST_WRITE_DOCUMENT'
EXPORTING
objectid = 'YTEST'
tcode = 'se38'
utime = sy-uzeit
udate = sy-datum
username = sy-uname
PLANNED_CHANGE_NUMBER = ' '
OBJECT_CHANGE_INDICATOR = 'U'
PLANNED_OR_REAL_CHANGES = ' '
NO_CHANGE_POINTERS = ' '
UPD_ICDTXT_YTEST = 'U'
n_ztest_cle = wa_ztest_cle
o_o_ztest_cle = o_ztest_cle
UPD_ZTEST_CLE = ' '
tables
icdtxt_ytest = itab_cdtxt.
Is the object ID the same as the Change Document Object name ??
Please help.
Thanks,
Ram.Well, i found a way out for the problem i was facing. I was not setting the "UPD_ZTEST_CLE " FM parameter. When i set it to 'U', the changes got reflected in the CDHDR and CDPOS tables.
Can i reward myself as i solved this by myself ??? -
How to store measurement data in a single database row
I have to store time-data series into a database and do some analysis using Matlab later. Therefore the question might be more a database question rather than Diadem itself. Nevertheless I'm interested if anyone has some best practices for this issue.
I have a database which holds lifecycle records for certain components of same nature and different variants. Depending on the variant I have test setups which record certain data. There is a common set of component properties and a varying number of environmental measurements to be included. Also the duration of data acquisition varies across the variants.
Therefore having tables appears to be non-optimal solution for storing the data because the needed number of columns is unknown. Additionally I cannot create individual tables for each sample of a variant. This would produce to many tables.
So there are different approaches I have thought of:
Saving the TDM and TDX files as text respectively as BLOB
This makes it necessary to use intermediate files.
Saving the data as XML text
I don’t know yet if I can process XML data in Matlab
Has anybody an advice on that problem?
Regards
ChrisChris
Sorry for the lateness in replying to your post.
I have done quite a bit of using a Database to store test results. (In my case this was Oracle DB, using a system called ASAM-ODS)
My 2 Cents:
Three functions were needed by users for me. 1) To search and find the tests, and 2) To take the list of Tests and process the data into a report/output summary. 2) If the file size is large, then being able to import the data quickly into analysis tool speeds up processing.
1) Searching for test results. This all depends on what parameters are of value for searching. In practice this is a smaller list of values(usually under 20), but I have had great difficulty getting users to agree on what these parameters are. They tend to want to search for anything. The organization of the searching parameters has direct relationship to how you can search. The NI Datafinder does a nice job of searching for parameters, so long as the parameter data are stored in properties of Channel Groups or Channels. It does not search or index if the values are in channel values.
Another note: Given these are searchable parameters, it helps greatly if these parameters have a controlled entry, so that the parameters are consistent over all tests, and not dependent on free form entry by each operator. Searching becomes impossible if the operators enter dates/ names in wildly different formats.
2) Similar issue exists if put values into databases. (I will use the database terms of Table and column(Parameter) and Row (instance of Data that would be one test record.)
The sql select statement, can do fast finds, if store the searchable parameters in rows of a table. Where would have one row for each Test Record. The files I worked with have more than 2000 parameters. Making a table that would store all of these, and be able to search for all of these, makes a very large number of rows. I did not like this approach, as it has substantial maintenance time, and when changes are made, things get ugly quick.
3)This is where having the file format be something that the analysis tool can quickly load up is beneficial. Especially if the data files are large. In DIAdem's case, it reads TDM,TDMS files very quickly into the dataportal. It can also read in the MDF or HDF files, but these are hierarchical structures that require custom code to traverse the information, and get the information into dataportal to use in Analysis /reporting. (Takes more time to read data, but have much more flexibility in the data structure than the two level tdm/tdms format.)
My personal preferences
I would not want to put the test data into a Table row. Each of the columns would be fixed and the table would be very wide in columns.
>
I personally like to put the test Data into a file, like TDMS, MDF, or HDF and then the database would have a entry for the reference to the attachment. The values that are in the database is just the parameters that are used for test Searching, either in datafinder or in sql commands in the user interface.
Hopefully these comments help your tasks some.
Respectfully,
Paul
tdmsmith.com -
How to assign values to JTable using mysql database
how to assign value to JTable using mysql...
Search the forum. You use the values of the "ResultSet" to create a "DefaultTableModel" which you then add to the "JTable".
I'll let you pick the search keywords to use, which I've suggested above. You can also throw in my userid if you want to specifically look for my solution. -
How to Store PDF files In the Oracle Database?
Hi All,
It is required for me to store the PDF files in the Database and retrieve it back whenever necessary.
Also I need to store it with some security. So no one can read the content of the file.
Please give me solution to these problems.
Thanksvasav wrote:
Hi All,
It is required for me to store the PDF files in the Database and retrieve it back whenever necessary.Why not save the files to disk and store a link to the file in the database instead?
Also I need to store it with some security. So no one can read the content of the file.Authenticate users requesting files.
Please give me solution to these problems.There are many possible solutions for your requirements. -
How to insert Integer array in a MySql DataBase
Now i am doing one swing application,in that i have List box,My doubt is ,How to insert the mutiple seleted value into database.
http://java.sun.com/docs/books/tutorial/jdbc/
-
How to connect .... MYSQL database via JSP
Hello,
I am not able to connect mysql database via JSP... everytime i try to connect the database i get the following error .....
"java.lang.NoClassDefFoundError: org/aspectj/lang/Signature" ..
my jsp code is ....
<%@ page import = "java.sql.*" %>
<%
Connection conn = null;
Statement smt = null;
ResultSet rs = null;
%>
<%
Class.forName("com.mysql.jdbc.Driver").newInstance();
conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/mydatabase","username" ,"password");
smt = conn.createStatement();
rs = smt.executeQuery("select * from table");
out.println("output is "+ rs.getString("my field"));
rs.close();
%>
I have installed ............
jdk1.5.0_02
MySQL Server 4.1
there are two jar files .. i tried with both jar files ..
mysql-connector-java-3.1.8-bin.jar
mysql-connector-java-3.1.8-bin-g.jar
tomcat server 5.5.9
my path .... is
C:\Program Files\Java\jdk1.5.0_02\bin;C:\jakarta-tomcat-5.5.9\bin;C:\program files\mysql\mysql server 4.1\bin;
any help on this error ..at the earliest ..
... am worried ..bcoz my deadlines is getting closer .....
.. step by step .. procedure .. could be helpful ..
anilFind out the JAR which contains the class and add it
to WEB-INF/classes directory for your web application.WEB-INF/classes directory ..means ..C:\jakarta-tomcat-5.5.9\common\classes .. is that the one i need to keep my jar files ....???????????
well i have downloaded .. mysql database connector from the website "http://www.mysql.com/products/connector/j/ " .. and i have downloaded MySQL Connector/J 3.1..under which i have downloaded "Source and Binaries (zip)" ..
anil -
How to create ssas cube by using MySQL Database
please tell me step by step process to create ssas cube by using MySQL database in my system, i have Sqlserver 2008 enterprise edition and MySql5.0
There is an OLEDB provider for MySQL which you can get from here
https://cherrycitysoftware.com/ccs/Providers/ProvMySQL.aspx otherwise you can also use SSIS to push the data straight into the Analysis Services database without needing to stage it in SQL Server. Also, as you can load data into AS using XMLA you could
also write your own loader to extract data using ODBC and push it into AS using XMLA, essentially what I suspect SSIS does. However those latter solutions don't allow you to create a database on top of MySQL because you need an OLEDB (or .net) provider for
that.
In the simplest case, install the OLEDB provider and then in AS create a Data Source connection using that provider. Once you have done that you should be able to create a Data Source View using that connection enabling you to import the schema definitions
for the tables/views in the MySQL database. From there you build dimensions and cubes etc. about which there is plenty of information on the web.
http://bi-logger.blogspot.com/ -
Custom component - how to store java Properties object in ucm environment
Hi Experts,
I am developing a custom component.
my custom component code is reading a properties file and load in Properties object. Everytime this custom Service is called, properties file is read from file system and new Properties Object is created.
Is there any way to load the Properties object once and store somewhere in UCM context ? (just like we do in JSP using application object"
thanks!!
Edited by: user4884609 on Jul 12, 2010 3:01 PMI'd say there are quite a few ways how to do it, but many of them have nothing in common with UCM.
- I'd opt for the only "UCM" way I' aware of: as a part of custom component you can create your own properties file (it's also called environment variables) as a part of your custom component. You can, then, easily read (and write?) properties from/to the file.
- The first option could have disadvantage, if there are too many properties. In this case you could use Java serialization - it should be UCM independent
- Another option is to create your properties in the database - it is a bit similar to the first option, but it's more robust. Plus, you may use features of the database if you want to have some additional logic in you properties.
- Note that you can also create a static object, which could be initialized e.g during class load
Maybe you are looking for
-
Create a contract with its premise with a BAPI
Hello People, My doubt is as follows: I need to create massive contracts in CRM '07 that replicates in IS-U, use the role to which he BAPI_BUSPROCESSND_CREATEMULTI step various parameters (see the final code), the problem lies in the allocation of th
-
How do i track all the apps installed on my iphone using icloud
How do i track all the apps installed on my iphone using icloud
-
HT5012 Why do I have a onavo profile on my iPhone 3GS issued by go daddy?
I just saw I have a signing certificate in my iPhone 3GS general profile tab. What is this
-
i am using TWO PCI 6229 cards (2*2 counters, DMA Channels), OS-winXP, LabVIEW 2009 SP1. now using 3 counters (1. edge counter, 2 and 3 for semiperiod measurements). i can run the edge counter alone without problem. but i cant run all the 3 counters i
-
Search function that can work in AIR
I have a AIR App. It's just a html site. I would like to have search capability to search file names if not content...