on 11-24-2006 12:04 PM
Please check the code that i have sent .
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No one used this generator?
I get this error:
********************
JDBC Connected
TableName===
TMP_TABLE1
TableName===
TMP_TABLE2
TableName===
TMP_TABLE3
In Variable Declarations
JDBC Connected SAPDB
nullError in Getting the MeataData...java.sql.SQLException: [MySQL MaxDB][SQLOD3
2 DLL][MaxDB] Base table not found;-4004 POS(15) Unknown table name:TMP_TABLE1
In Variable Declarations
JDBC Connected SAPDB
nullError in Getting the MeataData...java.sql.SQLException: [MySQL MaxDB][SQLOD3
2 DLL][MaxDB] Base table not found;-4004 POS(15) Unknown table name:TMP_TABLE2
In Variable Declarations
JDBC Connected SAPDB
nullError in Getting the MeataData...java.sql.SQLException: [MySQL MaxDB][SQLOD3
2 DLL][MaxDB] Base table not found;-4004 POS(15) Unknown table name:TMP_TABLE3
Done
***********************
Why first it found the table and after none?
It create the 4 file, connection and ech for Table; but for table the files are really incomplete
I use SAP DB and also MAXDB driver ODBC, same result.
The table are created by NWDS, Java Dictionary project.
What do you suggest?
I get it work now!!!
I was worng on type user to use for JDBC connetcion.
************
JDBC Connected SAPDBU
=========TEST_ANSWERS==========
TEST_EMPLOY_ID VARCHAR () UNICODE
TEST_ORGUNIT_ID VARCHAR () UNICODE
TEST_IDS INTEGER
TEST_IDQ INTEGER
TEST_ANS INTEGER
========================
TEST_EMPLOY_ID,VARCHAR () UNICODE
TEST_ORGUNIT_ID,VARCHAR () UNICODE
TEST_IDS,INTEGER
TEST_IDQ,INTEGER
TEST_ANS,INTEGER
INSERT INTO TEST_ANSWERS VALUES(""'"Obj.getTEST_EMPLOY_ID()"',""'"+Ob
j.getTEST_ORGUNIT_ID()"',"Obj.getTEST_IDS()","Obj.getTEST_IDQ()+","
+Obj.getTEST_ANS())
********************************************
But i guess have others problem!
How many files must create for each TABLE?
How many method create?
I see only "addNewRecord", methed that retraive a SELECT result or do and INSERT must be created?
Doesn´t create method like "getAllRows"
Only this:
public void addNewRecord(com.sap.db.TEST_SCALETX Obj){
try{
Connection con=new ConnectionClass().getConnection();
Statement st=con.createStatement();
int result=st.executeUpdate ("INSERT INTO TEST_SCALETX VALUES("+Obj.getTEST_IDS()+","+"'"+Obj.getTEST_LANG_ID()+"',"+Obj.getTEST_POS()+","+"'"+Obj.getTEST_TEXT()+"'"+")");
}catch(Exception e){ // Test
}
Message was edited by:
Roberto Tagliento
Hi,
It should create methods like following
1.public Collection showAllRecords(){
try{
Connection con=new ConnectionClass().getConnection();
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("select * from TMP_T1");
Vector v=new Vector();
while(rs.next())
{
TMP_T1 Obj=new TMP_T1();
v.add(Obj);
}
return v;
}catch(Exception e){ // Test
return null;}
}
2. public int executeUpdate(String Query) throws Exception{
try{
Connection con=new ConnectionClass().getConnection();
Statement st=con.createStatement();
int rs=st.executeUpdate(Query);
return rs;
}catch(Exception e){ // Test
throw e;}
}
Could you pl verify.
Regards, Anilkumar
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.