com.jk.data.dynamic.dataaccess.JKVirtualDynamicDataAccess Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jk-framework-data Show documentation
Show all versions of jk-framework-data Show documentation
This contains a set of API's that ease the database programming with Java, in both: JDBC and JPA Persisitnce).
package com.jk.data.dynamic.dataaccess;
//package com.jk.db.test.dynamic.dataaccess;
//
//import java.util.List;
//import java.util.Vector;
//
//import com.jk.db.test.datasource.JKDataSource;
//import com.jk.metadata.core.EntityMetadata;
//import com.jk.metadata.core.Record;
//
//public class JKVirtualDynamicDataAccess extends JKDynamicDataAccess {
// List records = new Vector<>();
//
// public JKVirtualDynamicDataAccess(EntityMetadata entityMeta,JKDataSource datasource) {
// super(entityMeta,datasource);
// }
//
// @Override
// public int insertRecord(Record record) {
// records.add(record);
// record.setIdValue(records.size());
// return records.size();
// }
//
// @Override
// public void deleteRecord(Object recordId) {
// int index = 0;
// for (Record rec : records) {
// if (rec.getIdValue() == recordId) {
// records.remove(index);
// return;
// }
// index++;
// }
// }
//
// @Override
// public List lstRecords() {
// return records;
// }
//
// public void updateRecord(final Record record) {
//
// }
//
//}