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

com.mycomm.dao.dao4comm.orm.MySession Maven / Gradle / Ivy

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mycomm.dao.dao4comm.orm;

import com.mycomm.dao.dao4comm.ResultHelp;
import com.mycomm.dao.dao4comm.util.MyQueryCondition;
import org.springframework.jdbc.core.JdbcTemplate;

/**
 *
 * @author jw362j
 */
public interface MySession {

    public long getCount(Class clz);

    public long save(Object object);

    public int[] saveList(Object[] object);

    public void delete(Class clz, long theId);

    public void deleteList(Class clz, long[] theId);

    public Object find(Class clz, long theid);
    public Object find(Class clz, long theid,boolean forceReload);
    
    public Object[] findByIds(Class clz, long[] theId);
    
    public long[] findIDs(Class clz, MyQueryCondition condition);

    public ResultHelp find(Class clz, MyQueryCondition condition);

    public int halfUpdate(Object obj, String colums);

    public int[] halfUpdates(Object[] obj, String colums);

    public int halfUpdate(Object obj, String colums[]);

    public int[] halfUpdates(Object[] objs, String colums[]);

    public int update(Object obj);

    public int[] updates(Object[] entity);

    public void checkTableExist(Class object);

    public JdbcTemplate getJdbcTemplate();
}