MelSQLv10.jar melConnectPoolv11.jar melConnectPoolv11.jar
MelSQLv10.jar melSQLv10.zip melConnectPoolv11.jar melConnectPoolv11.zip melSQLServerReleaseV10.jar melSQLServerReleaseV10.zip

Method Summary - MelSQLv10.jar
void   melSQL_init(String hostname, int port)
 µ¥ÀÌÅͺ£À̽º¸¦ ÃʱâÈ­ÇÕ´Ï´Ù. ÇØ´ç È£½ºÆ® Á¤º¸¿Í Æ÷Æ®¸¦ ÀÔ·ÂÇÕ´Ï´Ù.
 To initialize the database. Enter the host and port information.
void   setAccount(String id, String password)
 µ¥ÀÌÅͺ£À̽º Á¢¼ÓÀ» À§ÇÑ Á¢¼Ó °èÁ¤À» ¼³Á¤ÇÕ´Ï´Ù.
 Access for the database connection is set up your account.
String[]   getAccount()
 µ¥ÀÌÅͺ£À̽º Á¢¼ÓÀ» À§ÇÑ °èÁ¤ Á¤º¸¸¦ ¾ò¾î ¿É´Ï´Ù.
 Database connection information, get yourself an account for.
void   setDatabase(String dbname)
 Á¢¼ÓÇÒ µ¥ÀÌÅͺ£À̽ºÀÇ À̸§À» ÁöÁ¤ÇÕ´Ï´Ù.
 Specifies the name of the database is accessible.
String   getDatabase()
 Á¢¼ÓÀ» ÁöÁ¤ÇÑ µ¥ÀÌÅͺ£À̽ºÀÇ À̸§À» ¾ò¾î ¿É´Ï´Ù.
 The name of the specified database connection to get yourself.
void   setQuery(String query)
 ÁúÀǾ ÁöÁ¤ ÇÕ´Ï´Ù.
 To specify queries.
String   getQuery()
 ÁúÀǾî Á¤º¸¸¦ ¾ò¾î¿É´Ï´Ù.
 Get query to get information.
void   melSQLExecute()
 melSQL µ¥ÀÌÅͺ£À̽º¿¡°Ô ÁúÀǾ ½ÇÇàÇÏ°Ô ÇÕ´Ï´Ù.
 melSQL query to the database must be running.
String[][]   melSQLResult()
 ÁúÀǾ ´ëÇÑ °á°ú°ªÀ» ÀÌÂ÷¿ø ¹è¿­·Î ¹Þ¾Æ ¿É´Ï´Ù.
 Results for the query, into a two-dimensional array.
int   getAffectedRows()
 ÁúÀǾîÀÇ °á°ú°ª¿¡ ´ëÇØ ¿µÇâÀ» ¹ÞÀº Á¤º¸ÀÇ À妽º¸¦ ¹Þ¾Æ ¿É´Ï´Ù.
 Queries about the impact on the result of information received, into the index.


public void melSQL_init(String hostname, int port)
µ¥ÀÌÅͺ£À̽º ºÎºÐ¿¡ ´ëÇØ¼­ Á¢±ÙÀ» À§ÇÑ ÇØ´ç È£½ºÆ®ÀÇ Á¤º¸¿Í Æ÷Æ® Á¤º¸¸¦ ÀÔ·ÂÇÏ¿© ÃʱâÈ­¸¦ ½ÇÇà ÇÕ´Ï´Ù.
MelSQLv10 mel = new MelSQLv10();
mel.melSQL_init("192.168.0.7", 4600);

Access to the database for that part of the host and port information, enter information to run the initialization.
MelSQLv10 mel = new MelSQLv10 ();
mel.melSQL_init ("192.168.0.7", 4600);

public void setAccount(String id, String password)
ÃʱâÈ­ÇÑ ÀÌÈÄ melSQL¿¡ Á¢¼ÓÇϱâ À§ÇÑ °èÁ¤-¾ÆÀ̵ð, ÆÐ½º¿öµå-À» ÁöÁ¤ÇÕ´Ï´Ù.
MelSQLv10 mel = new MelSQLv10();
mel.melSQL_init("192.168.0.7", 4600);
mel.setAccount("engtest", "1004"); //- ¾ÆÀ̵ð, ÆÐ½º¿öµå ÀÔ·Â

After initializing an account for access to melSQL - ID and password - Specify.
MelSQLv10 mel = new MelSQLv10 ();
mel.melSQL_init ("192.168.0.7", 4600);
mel.setAccount ("engtest", "1004"); / / - ID, Password

public String[] getAccount()
ÀÌ¹Ì ÁöÁ¤µÈ Á¢¼Ó °èÁ¤ Á¤º¸¸¦ 1Â÷¿ø ¹è¿­·Î ¾ò¾î¿É´Ï´Ù. ¾ò¾î ¿Â °á°ú°ªÀº [0] - ¾ÆÀ̵ð, [1] - ÆÐ½º¿öµå ÇüÅÂÀÔ´Ï´Ù.
mel.melSQL_init("192.168.0.7", 4600);
mel.setAccount("engtest", "1004");
String [] getaccount = mel.getAccount();
String id = getaccount[0];
String password = getaccount[1];

Already given access to account information, get yourself one-dimensional array. Results obtained for the whole [0] - User ID, [1] - the password is in the form.
mel.melSQL_init ("192.168.0.7", 4600);
mel.setAccount ("engtest", "1004");
String [] getaccount = mel.getAccount ();
String id = getaccount [0];
String password = getaccount [1];

public void setDatabase(String dbname)
»ç¿ëÇÒ µ¥ÀÌÅͺ£À̽º À̸§À» ÁöÁ¤ÇÕ´Ï´Ù. ¶ÇÇÑ µ¥ÀÌÅͺ£À̽º¸¦ º¯°æÀ» ÇÊ¿äÇÒ ¶§µµ »ç¿ëÀÌ µË´Ï´Ù.
mel.melSQL_init("192.168.0.7", 4600);
mel.setAccount("engtest", "1004");
mel.setDatabase("engtest");
//-- º¯°æÇÒ¶§´Â..
mel.setAccount("hantest", "1004");
mel.setDatabase("hantest");

Used to specify the database name. In addition to changes to the database will be used when needed.
mel.melSQL_init ("192.168.0.7", 4600);
mel.setAccount ("engtest", "1004");
mel.setDatabase ("engtest");
// - When you do change ..
mel.setAccount ("hantest", "1004");
mel.setDatabase ("hantest");

public String getDatabase()
ÇöÀç Á¢¼ÓÀ» ¿ä±¸ÇÑ µ¥ÀÌÅͺ£À̽ºÀÇ À̸§À» °¡Áö°í ¿É´Ï´Ù. º¯°æ½Ã¿¡´Â setDatabase(String dbname)À» »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.
mel.setAccount("engtest", "1004");
mel.setDatabase("engtest");
String getdbname = mel.getDatabase();

Current connection with the name of the database gets asked. In case of change setDatabase (String dbname) are available.
mel.setAccount ("engtest", "1004");
mel.setDatabase ("engtest");
String getdbname = mel.getDatabase ();

public void setQuery(String query)
ÁúÀǾî Á¤º¸¸¦ ÁöÁ¤ÇÕ´Ï´Ù. ¶ÇÇÑ º¯°æ½Ã¿¡µµ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ÁúÀǾ ½ÇÇà½Ã¿¡´Â melSQLExcute() ÇÔ¼ö¸¦ »ç¿ëÇÏ¿©¾ß ÁúÀǾ ½ÇÇàµË´Ï´Ù.
mel.setDatabase("engtest");
String query = "select * from people where age > 20 and age <= 40 ";
mel.setQuery(query);
Query language to specify the information. In addition, even when change is available. When you run queries melSQLExcute () function will be executed query.
mel.setDatabase ("engtest");
String query = "select * from people where age> 20 and age <= 40";
mel.setQuery (query);

public String getQuery()
ÁöÁ¤µÈ ÁúÀǾî Á¤º¸¸¦ ¾ò¾î¿É´Ï´Ù. °¡Áö°í ¿Â ÁúÀǾî´Â String ŸÀÔÀ¸·Î ¸®ÅÏ ¹Þ½À´Ï´Ù.
mel.setDatabase("engtest");
String query = "select * from people where age > 20 and age <= 40 ";
mel.setQuery(query);
String reQuery = mel.getQuery();

Gets the specified query to get information. Query returns a String type brought to the subject.
mel.setDatabase ("engtest");
String query = "select * from people where age> 20 and age <= 40";
mel.setQuery (query);
String reQuery = mel.getQuery ();

public void melSQLExecute()
setQuery()¸¦ ÅëÇØ ÁöÁ¤µÈ ÁúÀǾîÀÇ ½ÇÇàÀ» ÇÕ´Ï´Ù. ½ÇÇà¿¡¸¸ ¼öÇàµÇ°í ½ÇÇà¿¡ ´ëÇÑ °á°ú°ªÀº ¾Æ·¡ melSQLResult()¸¦ ÅëÇØ 2Â÷¿ø ¹è¿­°ªÀ¸·Î ¸®ÅÏ ¹Þ°Ô µË´Ï´Ù.
mel.setDatabase("engtest");
String query = "select * from people where age > 20 and age <= 40 ";
mel.setQuery(query);
mel.melSQLExecute();

setQuery () is specified via the execution of queries. Run Run is performed only for the result in the following melSQLResult () through the two-dimensional array of values ??will be returned to.
mel.setDatabase ("engtest");
String query = "select * from people where age> 20 and age <= 40";
mel.setQuery (query);
mel.melSQLExecute ();

public String[][] melSQLResult()
melSQLExecute()¸¦ ÅëÇØ ó¸®µÈ Á¤º¸¿¡ ´ëÇÑ °á°ú°ªÀ» 2Â÷¿ø ¹è¿­°ªÀ¸·Î ¸®ÅÏ ¹Þ¾Æ¿É´Ï´Ù. ¹è¿­¿¡ ´ëÇÑ Ã³¸®´Â TestMelSQL.java ¸¦ ÅëÇØ È®ÀÎ ÇϽñ⠹ٶø´Ï´Ù.
String query = "select * from people where age > 20 and age <= 40 ";
mel.setQuery(query);
mel.melSQLExecute();
String[][] getReturn = mel.melSQLResult();

melSQLExecute () the result of the information is processed through a two-dimensional array of values returned to retrieve them. For an array of processing, please check with the TestMelSQL.java.
String query = "select * from people where age> 20 and age <= 40";
mel.setQuery (query);
mel.melSQLExecute ();
String [][] getReturn = mel.melSQLResult ();

public int getAffectedRows()
setQuery() ¿Í melSQLExecute()¸¦ ÅëÇØ ½ÇÇàµÈ ÁúÀǾ ´ëÇØ ¿µÇâÀ» ¹ÞÀº Á¤º¸ÀÇ °¹¼ö¸¦ ¹Þ¾Æ ¿Ã ¼ö ÀÖ½À´Ï´Ù. ¸®ÅϰªÀº Á¤¼öÇüÀÔ´Ï´Ù.
String query = "select * from people where age > 20 and age <= 40 ";
mel.setQuery(query);
mel.melSQLExecute();
String[][] getReturn = mel.melSQLResult();
int getAffected = mel.getAffectedRows();

setQuery () and melSQLExecute () for queries executed through a number of affected information can be obtained. The return value is an integer.
String query = "select * from people where age> 20 and age <= 40";
mel.setQuery (query);
mel.melSQLExecute ();
String [] [] getReturn = mel.melSQLResult ();
int getAffected = mel.getAffectedRows ();



  Sample TestMelSQL.java DownLoad   ETC:  InsertMelSQL.java  UpdateMelSQL.java  DeleteMelSQL.java