All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jk.data.dynamic.dataaccess.JKVirtualDynamicDataAccess Maven / Gradle / Ivy

Go to download

This contains a set of API's that ease the database programming with Java, in both: JDBC and JPA Persisitnce).

There is a newer version: 7.0.0-M7
Show newest version
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) {
//
//	}
//
//}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy