Java and database [closed] - java

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
English is not my first language, so sorry if there is a mistake in the grammar.
My question is, I have a database where I have bills, so when the bills are paid, I put a C of cancel in the table. Now, I am trying to do something in java, I want my jtable show me the bills that are not yet paid. I can import everything from the database to the jtable, but, what I need to do is import just the bills that are not paid?
Thanks

assuming you are using JDBC
you should write something like
SELECT * FROM TABLE_NAME WHERE BILL_PAYED <> 'C'

Related

How can I monitor the changes in database? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I want to monitor changes that occur in the database. Say, for instance when an item is removed from the database. I want to be able to use an interface to monitor such changes and create an alert of how many no of items are left in the database . Every 5 min or so. Is there any plugin for java, or some kind of interface or something else? I will be grateful for the help.
Best Option Use DDL TRIGGER as it is DB change event meaning
CREATE DDL TRIGGER
ON DB AFTER DELETE AS
"YOUR ACTION STATEMENT" ;

Get additional attributes when returning members of a group [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Currently, I can get back a list of users from an Active Directory group but I would like to return more than just their CN/name. How would I do this?
For example, I have an AD group with 20 members. I can get their names but I would also like to return their job title in the output as well.
In fact, you can get their DNs from the group. To get any other attribute, you need to do an additional query (getAttributes) for each member.

Insert space between numbers and letters in currency formatted text [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have a string "eur0.99", it can be "eur123.0" or "som0.10", or "0.99usd", or "123.34any" or something like that. How can I simply insert a space between the price and letters without making a huge nasty messy code?
You can use
System.out.println(input.replaceAll("(?<=[A-Za-z])(?=[0-9])|(?<=[0-9])(?=[A-Za-z])", " "));
Ideone Demo

How can I devide a class java into many classes? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have a main class with over 600 lines code :/ ! my app contains a toolbar,menubar and a field to draw a network nodes
how can I devide my main class and what criteria to choose fo dividing ?
Good evening,
if I understand your question well, I may advice you to read the "Clean Code " of Robert C.Martin. It is a great agile book, that can help your to divide your code.
Good luck

Listview in Java [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I need to make a listview like the pic shows, but in Java.
E.G. from Delphi Listview
I've tried to use JList but it didn't work quite right, I couldn't make columns, just rows. Could someone help me?
Try using JTable and do your own research for how to use JTable.

Categories

Resources