public IndiciesInfo loadIndicies() throws DotDataException {
return loadIndicies(DbConnectionFactory.getConnection());
}
public IndiciesInfo loadIndicies(Connection conn) throws DotDataException {
IndiciesInfo info=cache.get();
if(info==null) {
//build it once
synchronized (this.getClass()) {
if(conn == null){
conn = DbConnectionFactory.getConnection();
}
info=cache.get();
if(info==null) {
info=new IndiciesInfo();
DotConnect dc = new DotConnect();
dc.setSQL("SELECT index_name,index_type FROM indicies");
List<Map<String,Object>> results=dc.loadResults(conn);
for(Map<String,Object> rr : results) {
String name=(String)rr.get("index_name");