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

com.litongjava.db.activerecord.OrderedFieldContainerFactory Maven / Gradle / Ivy

There is a newer version: 1.4.7
Show newest version
package com.litongjava.db.activerecord;


import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;

/**
 * 用于支持查询出来的字段次序与 select a, b, c... 的次序一致
 * 
 * 通常用于查询类系统,字段是不确定的,字段显示的次序要与 select
 * 字句保持一致
 * 
 * 用法:
 * arp.setContainerFactory(new OrderedFieldContainerFactory())
 */
@SuppressWarnings({"rawtypes", "unchecked"})
public class OrderedFieldContainerFactory implements IContainerFactory {
	
	public Map getAttrsMap() {
		return new LinkedHashMap();
	}
	
	public Map getColumnsMap() {
		return new LinkedHashMap();
	}
	
	public Set getModifyFlagSet() {
		return new HashSet();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy