(1) In the plus-in example
Why do I need to require to
import com.electrotank.electroserver5.extensions.BasePlug in;
import com.electrotank.electroserver5.extensions.api.valu e.EsObject;
import com.electrotank.electroserver5.extensions.api.valu e.EsObjectRO;
----------------------
(2) Do I need to re-Develop with the JDBC connection to a class?
like:
jConnect.db.Host("localhost");
jConnect.db.UserName("sqlUName");
jConnect.db.Password("mypassword");
jConnect.db.select("*");
jConnect.db.where("uID", "1234");
jConnect.db.from("myTable");
jConnect.db.join("profileTable", "profileTable.uID = myTable.uID", "INNER");
jConnect.db.limit(1);
result = jConnect.db.query();
(3) I am confused getting started to connect the database
Where to set the MySQL host/username/password/database?
it need to create a *.sql file every time to query a DB?
(4) how can I connect the Component if I have a Pure handle database class, so that I dont need to re-write the *.sql like in the sample? I wanna to set that jConnect to a component and use on all other plug-in or class?


Reply With Quote
