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

org.ibatis.client.Cache Maven / Gradle / Ivy

Go to download

The jBATIS persistence framework will help you to significantly reduce the amount of Java code that you normally need to access a relational database. iBATIS simply maps JavaBeans to SQL statements using a very simple XML descriptor.

The newest version!
/*-
 * Copyright 2012 Owl Group
 * All rights reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *    http://www.apache.org/licenses/LICENSE-2.0
 */

package org.ibatis.client;

import com.ibatis.sqlmap.engine.cache.FlushListener;

/**
 * Cache
 * 

* Date: 2015-08-10,15:41:15 +0800 * * @author Song Sun * @version 1.0 */ public interface Cache extends FlushListener { enum Nul { Null } /** * This is used to represent null objects that are returned from the cache so that they can be cached, too. */ Object NULL_OBJECT = Nul.Null; String getId(); void flush(); T getObject(Object key); void putObject(Object key, T value); long getRequests(); long getHits(); long getFlushs(); long getPeriodMillis(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy