How do you make a java application shutdown and automatically restart itself?
The reason for this is I have an application I maintain - it's run from a network drive and sometimes the users leave an instance running for months at a time. When I release an update I would like each instance to...
I'm trying to write an update app which needs to modify a table in the embedded Derby Db, but I get
java.lang.IllegalArgumentException: node to traverse cannot be null!
The code concerned is:
Query q = this.entityManager1.createQuery("alter table jobrecords add column enginesize int not...
I have a Jtable thats bound to a DB table. Sometime the database can be updated and the model of the table changes but the displayed data doesn't.
At the moment I have to cause a manual refresh by unbinding the table then rebinding it, which seems to me to be a really ugly solution.
Is there...
I've got a small test program set up to try and resolve this problem but I'm at a loss now. I have a jTable that has two columns - each of type double.
The table uses a cell editor that selects all the contents on edit. (it also disables the editing on a mouse click to prevent masking of the...
Hi,
I've got an embedded Derby DB and I use entity beans with namedqueries.
One of which is:
@NamedQuery(name = "Vehicles.findbymotmonth", query = "SELECT v FROM Vehicles v WHERE MONTH(v.lastmotdate) = :monthnumber")
If I use the IDE to send this command to the database it works fine...
I have a java entity class that is bound to a MS Access database using the persistance API.
The db has a table 'customers' with the primary key field set to autonumber. However, my entity bean does not update the pk correctly or at all (depends on what I set the GeneratedValue param to.
If I...
I'm writing a bit of code that uses win32 events quite a lot. I've been told that this introduces a lot of overhead and can be quite slow but I can't find any definative information on this. Does anyone have any opinions or information regarding overhead/performance when using events?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.