Questions tagged [setstring]
25 questions
0
votes
1 answer
How Set a Text into a JProgress Bar?
I tired to set a text into a Jprogress bar by using setString method.. But it wasn't... So what do i do for that.. here is my code...
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
class MyFrame extends JFrame{
…

Risith Ravisara
- 41
- 6
0
votes
1 answer
SQL with variable in LIKE statement: Invalid column Index
I'm using Oracle.
PreparedStatement pstmt = con.prepareStatement("SELECT * FROM BookLoanInfo WHERE title LIKE '%?%' ORDER BY bid");
ResultSet rs;
String bookstring = scan.nextLine();
try{
pstmt.clearParameters();
pstmt.setString(1,…

Daniel Richter
- 73
- 1
- 5
0
votes
1 answer
Hibernate query.setString don't work
Now I using hql in query.
The code is:
return session.createQuery(
"from Company com "
+ " where com.comId = "
+ ":comId and com.phoneNumber = :phoneNumber")
…

mengya
- 1
- 1
0
votes
2 answers
how to pass sql commands from Java
I am trying to pass a SQL command where a row has to be deleted from the database.
I m using setString(index, value) and invoking the method in the main class. But when I pass the parameter to the method in the main class nothing happens in the…

user3752579
- 11
0
votes
1 answer
Prepared Statement setter in JDBCCursor Item Reader
I am setting the value of String something like this:
ps.setString(1, "'Schema.tablename.Columnname','Schema.tablename.ColumnName'");
Then the prepared statement is setting the value as a blank string ('').
Do I need escape characters here? I…

Sivanagaiah
- 153
- 3
- 10
0
votes
2 answers
MySQL registrer data with setString data, but not with getParameter
I had a question regarding this before, but I got something of it to work with help from someone. That is really nice. The code is here:
0
votes
0 answers
Set label title from mouseEntered in objective-c
I have this code in my NSButton subclass:
-(void)mouseEntered:(NSEvent *)theEvent{
NSLog(@"ENTER");
NSString *myString = @"foo";
[myTextField setStringValue:myString];
}
-(IBAction)changeStringValue:(id)sender{
NSString *myString =…

Val K.
- 113
- 1
- 10
0
votes
2 answers
Java query with setString unable to insert bit type
Here is the issue
I'm using Netbeans and MySQL latest version
I'm using the BIT(1) Field type in MySQL to manage the Boolean types in my app
When storing Data in the data base if I use this code everything works well
PreparedStatement st =…

Ayoub Ben Hassine
- 1
- 1
- 3
-1
votes
1 answer
The method setString(int, String) in the type PreparedStatement is not applicable for the arguments (int, String[])
I know that setString permits to insert a value in specified position,
now I want get checkbox values from the jsp page in order to pass it to the database.
I defined the variable of checkbox as a String array since it may handle one or more…
user11114695
-1
votes
4 answers
Throwing exception as : Attempt to mutate immutable object with setString
I am passing an array from one ViewController to another by [NSUserDefaults standardUserDefaults].and i am retrieving array in second view controller and while i try to update a string value it throws an Exception as below
Attempt to mutate…

Grey_Code
- 454
- 1
- 4
- 20