public void createInsertSql() throws Exception{
final StringBuffer sql_KeyNames = new StringBuffer();
final StringBuffer sql_ValuePlaceHolders = new StringBuffer();
if(rowSet==null){ // fetch ���� sql��: cache���� �Էµ� ���� ���뿡 ��� ������.
ForLoop loopForCacheKeys = new ForLoop(){
String sep = "";
public void logic(Object target) {
String propertyName = (String)target;
sql_KeyNames.append(sep + propertyName);
sql_ValuePlaceHolders.append(sep + "?" + propertyName);
sep =", ";
}
};
loopForCacheKeys.run(cache.keySet());
sqlStmt = "insert into " + getTableName() + "("+ sql_KeyNames +") values (" + sql_ValuePlaceHolders + ")";
}else{ // fetch ���� ��Ȱ��� dao�� insert�� ��Ÿ�����Ϳ��� ã�ƿͼ� ������
String sep = "";
ResultSetMetaData rsMetaData = rowSet.getMetaData();