com.poscoict.glueframework.dao.sequence
Interface GlueSequence

All Known Implementing Classes:
GlueAltibaseSequence, GlueDB2Sequence, GlueHsqlSequence, GlueOracleSequence, GluePostgreSQLSequence, GlueTiberoSequence

public interface GlueSequence

DB Sequence °ªÀ» ¼­ºñ½ºÇÏ´Â ÀÎÅÍÆäÀ̽º. Activity Class¿¡¼­ ´ÙÀ½°ú °°ÀÌ »ç¿ëÇÒ ¼ö ÀÖ´Ù.

 GlueSequence sequence = getDao().getSequence();
 String nextval = sequence.getNextStringValue("sq_emp_audit"); // DB Sequence Name
 
 List args = new ArrayList();
 args.add(nextval);
 args.add(nextval);
 GlueParameter<List> param = new GlueParameter<List>(args);
 
 int dml = getDao().insertByQueryStatement("insert into emp_audit(empno, seq) values (?, ?)", param);
 logger.logInfo("DML Size: " + dml);
 
 


Method Summary
 int getNextIntValue(String sequenceName)
          int ŸÀÔÀÇ Next Sequence °ªÀ» ¾ò´Â´Ù.
 long getNextLongValue(String sequenceName)
          long ŸÀÔÀÇ Next Sequence °ªÀ» ¾ò´Â´Ù.
 String getNextStringValue(String sequenceName)
          String ŸÀÔÀÇ Next Sequence °ªÀ» ¾ò´Â´Ù.
 

Method Detail

getNextLongValue

long getNextLongValue(String sequenceName)
long ŸÀÔÀÇ Next Sequence °ªÀ» ¾ò´Â´Ù.

Parameters:
sequenceName - DB Sequence Name
Returns:
long ŸÀÔÀÇ Next Sequence °ª

getNextIntValue

int getNextIntValue(String sequenceName)
int ŸÀÔÀÇ Next Sequence °ªÀ» ¾ò´Â´Ù.

Parameters:
sequenceName - DB Sequence Name
Returns:
int ŸÀÔÀÇ Next Sequence °ª

getNextStringValue

String getNextStringValue(String sequenceName)
String ŸÀÔÀÇ Next Sequence °ªÀ» ¾ò´Â´Ù.

Parameters:
sequenceName - DB Sequence Name
Returns:
String ŸÀÔÀÇ Next Sequence °ª


Copyright © 2013–2014 POSCO ICT SWÁ¦Ç°±â¼úÆÀ. All rights reserved.