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

titan.lightbatis.table.ITableSchemaManager Maven / Gradle / Ivy

There is a newer version: 1.2.0
Show newest version
/**
 * 
 */
package titan.lightbatis.table;

import java.util.List;

/**
 * 表结构管理
 * @author lifei
 *
 */
public interface ITableSchemaManager {

	/**
	 * 查找数据库中指定的表的结构
	 * @param tableName
	 * @return
	 */
	public abstract TableSchema getTable(String tableName);

	/**
	 * 获取当前 DataSource 中所有表结构
	 * @return
	 */
	public abstract List listTables();


	/*
	 * 获取下一个自增长的ID
	 */
	abstract Long nextId();
	
	/**
	 * 批量获取下一个自增长的ID
	 * @return
	 */
	abstract Long[] nextIds(int size);

	static ITableSchemaManager getInstance() {
		return DataSourceTableSchemaManager.manager;
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy