1 24 25 package org.objectweb.cjdbc.controller.cache.result; 26 27 import org.objectweb.cjdbc.common.i18n.Translate; 28 import org.objectweb.cjdbc.common.log.Trace; 29 import org.objectweb.cjdbc.common.sql.SelectRequest; 30 import org.objectweb.cjdbc.controller.cache.result.entries.AbstractResultCacheEntry; 31 import org.objectweb.cjdbc.controller.virtualdatabase.ControllerResultSet; 32 33 41 public abstract class CacheBehavior 42 { 43 Trace logger = Trace.getLogger(CacheBehavior.class.getName()); 44 45 protected CacheBehavior() 46 { 47 logger.debug(Translate.get("cachebehavior.new.action", getType())); 48 } 49 50 55 public String getType() 56 { 57 return this.getClass().getName(); 58 } 59 60 71 public abstract AbstractResultCacheEntry getCacheEntry( 72 SelectRequest sqlQuery, ControllerResultSet result, 73 AbstractResultCache cache); 74 75 81 public abstract String getXml(); 82 } | Popular Tags |