Package org.apache.ibatis.session

Examples of org.apache.ibatis.session.SqlSession.commit()


  public void insert(SnapshotSourceDto dto) {
    SqlSession session = mybatis.openSession(false);
    try {
      session.getMapper(SnapshotSourceMapper.class).insert(dto);
      session.commit();
    } finally {
      MyBatis.closeQuietly(session);
    }
  }
View Full Code Here


  void insert(SnapshotDataDto snapshotData) {
    SqlSession session = mybatis.openSession(false);
    try {
      insert(session, snapshotData);
      session.commit();
    } finally {
      MyBatis.closeQuietly(session);
    }
  }
View Full Code Here

  public void setProperty(PropertyDto property) {
    SqlSession session = mybatis.openSession(false);
    try {
      setProperty(property, session);
      session.commit();
    } finally {
      MyBatis.closeQuietly(session);
    }
  }
View Full Code Here

  public void deleteProjectProperty(String key, Long projectId) {
    SqlSession session = mybatis.openSession(false);
    try {
      deleteProjectProperty(key, projectId, session);
      session.commit();
    } finally {
      MyBatis.closeQuietly(session);
    }
  }
View Full Code Here

  public void deleteProjectProperties(String key, String value) {
    SqlSession session = mybatis.openSession(false);
    try {
      deleteProjectProperties(key, value, session);
      session.commit();
    } finally {
      MyBatis.closeQuietly(session);
    }
  }
View Full Code Here

  public void deleteGlobalProperties() {
    SqlSession session = mybatis.openSession(false);
    PropertiesMapper mapper = session.getMapper(PropertiesMapper.class);
    try {
      mapper.deleteGlobalProperties();
      session.commit();

    } finally {
      MyBatis.closeQuietly(session);
    }
  }
View Full Code Here

  public void deleteGlobalProperty(String key) {
    SqlSession session = mybatis.openSession(false);
    try {
      deleteGlobalProperty(key, session);
      session.commit();
    } finally {
      MyBatis.closeQuietly(session);
    }
  }
View Full Code Here

  public void insert(LoadedTemplateDto loadedTemplateDto) {
    SqlSession session = mybatis.openSession(false);
    try {
      insert(loadedTemplateDto, session);
      session.commit();
    } finally {
      MyBatis.closeQuietly(session);
    }
  }
View Full Code Here

  public void deleteAllProperties(String key) {
    SqlSession session = mybatis.openSession(false);
    PropertiesMapper mapper = session.getMapper(PropertiesMapper.class);
    try {
      mapper.deleteAllProperties(key);
      session.commit();

    } finally {
      MyBatis.closeQuietly(session);
    }
  }
View Full Code Here

    if (!newKey.equals(oldKey)) {
      SqlSession session = mybatis.openSession(false);
      PropertiesMapper mapper = session.getMapper(PropertiesMapper.class);
      try {
        mapper.renamePropertyKey(oldKey, newKey);
        session.commit();

      } finally {
        MyBatis.closeQuietly(session);
      }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.