Ticket #269: Created maven project.

This commit is contained in:
James Muehlner
2013-02-05 22:08:06 -08:00
parent 2a8893213a
commit 0a1740c886
25 changed files with 5537 additions and 0 deletions

View File

@@ -0,0 +1,96 @@
package net.sourceforge.guacamole.net.auth.mysql.dao.guacamole;
import java.util.List;
import net.sourceforge.guacamole.net.auth.mysql.model.guacamole.Connection;
import net.sourceforge.guacamole.net.auth.mysql.model.guacamole.ConnectionExample;
import org.apache.ibatis.annotations.Param;
public interface ConnectionMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int countByExample(ConnectionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int deleteByExample(ConnectionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int deleteByPrimaryKey(Integer connection_id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int insert(Connection record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int insertSelective(Connection record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
List<Connection> selectByExample(ConnectionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
Connection selectByPrimaryKey(Integer connection_id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int updateByExampleSelective(@Param("record") Connection record, @Param("example") ConnectionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int updateByExample(@Param("record") Connection record, @Param("example") ConnectionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int updateByPrimaryKeySelective(Connection record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int updateByPrimaryKey(Connection record);
}

View File

@@ -0,0 +1,97 @@
package net.sourceforge.guacamole.net.auth.mysql.dao.guacamole;
import java.util.List;
import net.sourceforge.guacamole.net.auth.mysql.model.guacamole.ConnectionParameter;
import net.sourceforge.guacamole.net.auth.mysql.model.guacamole.ConnectionParameterExample;
import net.sourceforge.guacamole.net.auth.mysql.model.guacamole.ConnectionParameterKey;
import org.apache.ibatis.annotations.Param;
public interface ConnectionParameterMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int countByExample(ConnectionParameterExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int deleteByExample(ConnectionParameterExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int deleteByPrimaryKey(ConnectionParameterKey key);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int insert(ConnectionParameter record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int insertSelective(ConnectionParameter record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
List<ConnectionParameter> selectByExample(ConnectionParameterExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
ConnectionParameter selectByPrimaryKey(ConnectionParameterKey key);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int updateByExampleSelective(@Param("record") ConnectionParameter record, @Param("example") ConnectionParameterExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int updateByExample(@Param("record") ConnectionParameter record, @Param("example") ConnectionParameterExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int updateByPrimaryKeySelective(ConnectionParameter record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int updateByPrimaryKey(ConnectionParameter record);
}

View File

@@ -0,0 +1,72 @@
package net.sourceforge.guacamole.net.auth.mysql.dao.guacamole;
import java.util.List;
import net.sourceforge.guacamole.net.auth.mysql.model.guacamole.ConnectionPermissionExample;
import net.sourceforge.guacamole.net.auth.mysql.model.guacamole.ConnectionPermissionKey;
import org.apache.ibatis.annotations.Param;
public interface ConnectionPermissionMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int countByExample(ConnectionPermissionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int deleteByExample(ConnectionPermissionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int deleteByPrimaryKey(ConnectionPermissionKey key);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int insert(ConnectionPermissionKey record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int insertSelective(ConnectionPermissionKey record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
List<ConnectionPermissionKey> selectByExample(ConnectionPermissionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int updateByExampleSelective(@Param("record") ConnectionPermissionKey record, @Param("example") ConnectionPermissionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int updateByExample(@Param("record") ConnectionPermissionKey record, @Param("example") ConnectionPermissionExample example);
}

View File

@@ -0,0 +1,72 @@
package net.sourceforge.guacamole.net.auth.mysql.dao.guacamole;
import java.util.List;
import net.sourceforge.guacamole.net.auth.mysql.model.guacamole.SystemPermissionExample;
import net.sourceforge.guacamole.net.auth.mysql.model.guacamole.SystemPermissionKey;
import org.apache.ibatis.annotations.Param;
public interface SystemPermissionMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_system_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int countByExample(SystemPermissionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_system_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int deleteByExample(SystemPermissionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_system_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int deleteByPrimaryKey(SystemPermissionKey key);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_system_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int insert(SystemPermissionKey record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_system_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int insertSelective(SystemPermissionKey record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_system_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
List<SystemPermissionKey> selectByExample(SystemPermissionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_system_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int updateByExampleSelective(@Param("record") SystemPermissionKey record, @Param("example") SystemPermissionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_system_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int updateByExample(@Param("record") SystemPermissionKey record, @Param("example") SystemPermissionExample example);
}

View File

@@ -0,0 +1,120 @@
package net.sourceforge.guacamole.net.auth.mysql.dao.guacamole;
import java.util.List;
import net.sourceforge.guacamole.net.auth.mysql.model.guacamole.User;
import net.sourceforge.guacamole.net.auth.mysql.model.guacamole.UserExample;
import org.apache.ibatis.annotations.Param;
public interface UserMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int countByExample(UserExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int deleteByExample(UserExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int deleteByPrimaryKey(Integer user_id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int insert(User record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int insertSelective(User record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
List<User> selectByExampleWithBLOBs(UserExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
List<User> selectByExample(UserExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
User selectByPrimaryKey(Integer user_id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int updateByExampleWithBLOBs(@Param("record") User record, @Param("example") UserExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int updateByExample(@Param("record") User record, @Param("example") UserExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int updateByPrimaryKeySelective(User record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int updateByPrimaryKeyWithBLOBs(User record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int updateByPrimaryKey(User record);
}

View File

@@ -0,0 +1,72 @@
package net.sourceforge.guacamole.net.auth.mysql.dao.guacamole;
import java.util.List;
import net.sourceforge.guacamole.net.auth.mysql.model.guacamole.UserPermissionExample;
import net.sourceforge.guacamole.net.auth.mysql.model.guacamole.UserPermissionKey;
import org.apache.ibatis.annotations.Param;
public interface UserPermissionMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int countByExample(UserPermissionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int deleteByExample(UserPermissionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int deleteByPrimaryKey(UserPermissionKey key);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int insert(UserPermissionKey record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int insertSelective(UserPermissionKey record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
List<UserPermissionKey> selectByExample(UserPermissionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int updateByExampleSelective(@Param("record") UserPermissionKey record, @Param("example") UserPermissionExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
int updateByExample(@Param("record") UserPermissionKey record, @Param("example") UserPermissionExample example);
}

View File

@@ -0,0 +1,99 @@
package net.sourceforge.guacamole.net.auth.mysql.model.guacamole;
public class Connection {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column guacamole..guacamole_connection.connection_id
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
private Integer connection_id;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column guacamole..guacamole_connection.connection_name
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
private String connection_name;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column guacamole..guacamole_connection.protocol
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
private String protocol;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column guacamole..guacamole_connection.connection_id
*
* @return the value of guacamole..guacamole_connection.connection_id
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public Integer getConnection_id() {
return connection_id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column guacamole..guacamole_connection.connection_id
*
* @param connection_id the value for guacamole..guacamole_connection.connection_id
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setConnection_id(Integer connection_id) {
this.connection_id = connection_id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column guacamole..guacamole_connection.connection_name
*
* @return the value of guacamole..guacamole_connection.connection_name
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public String getConnection_name() {
return connection_name;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column guacamole..guacamole_connection.connection_name
*
* @param connection_name the value for guacamole..guacamole_connection.connection_name
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setConnection_name(String connection_name) {
this.connection_name = connection_name == null ? null : connection_name.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column guacamole..guacamole_connection.protocol
*
* @return the value of guacamole..guacamole_connection.protocol
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public String getProtocol() {
return protocol;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column guacamole..guacamole_connection.protocol
*
* @param protocol the value for guacamole..guacamole_connection.protocol
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setProtocol(String protocol) {
this.protocol = protocol == null ? null : protocol.trim();
}
}

View File

@@ -0,0 +1,502 @@
package net.sourceforge.guacamole.net.auth.mysql.model.guacamole;
import java.util.ArrayList;
import java.util.List;
public class ConnectionExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected String orderByClause;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected boolean distinct;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected List<Criteria> oredCriteria;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public ConnectionExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public String getOrderByClause() {
return orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public boolean isDistinct() {
return distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andConnection_idIsNull() {
addCriterion("connection_id is null");
return (Criteria) this;
}
public Criteria andConnection_idIsNotNull() {
addCriterion("connection_id is not null");
return (Criteria) this;
}
public Criteria andConnection_idEqualTo(Integer value) {
addCriterion("connection_id =", value, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_idNotEqualTo(Integer value) {
addCriterion("connection_id <>", value, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_idGreaterThan(Integer value) {
addCriterion("connection_id >", value, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_idGreaterThanOrEqualTo(Integer value) {
addCriterion("connection_id >=", value, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_idLessThan(Integer value) {
addCriterion("connection_id <", value, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_idLessThanOrEqualTo(Integer value) {
addCriterion("connection_id <=", value, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_idIn(List<Integer> values) {
addCriterion("connection_id in", values, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_idNotIn(List<Integer> values) {
addCriterion("connection_id not in", values, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_idBetween(Integer value1, Integer value2) {
addCriterion("connection_id between", value1, value2, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_idNotBetween(Integer value1, Integer value2) {
addCriterion("connection_id not between", value1, value2, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_nameIsNull() {
addCriterion("connection_name is null");
return (Criteria) this;
}
public Criteria andConnection_nameIsNotNull() {
addCriterion("connection_name is not null");
return (Criteria) this;
}
public Criteria andConnection_nameEqualTo(String value) {
addCriterion("connection_name =", value, "connection_name");
return (Criteria) this;
}
public Criteria andConnection_nameNotEqualTo(String value) {
addCriterion("connection_name <>", value, "connection_name");
return (Criteria) this;
}
public Criteria andConnection_nameGreaterThan(String value) {
addCriterion("connection_name >", value, "connection_name");
return (Criteria) this;
}
public Criteria andConnection_nameGreaterThanOrEqualTo(String value) {
addCriterion("connection_name >=", value, "connection_name");
return (Criteria) this;
}
public Criteria andConnection_nameLessThan(String value) {
addCriterion("connection_name <", value, "connection_name");
return (Criteria) this;
}
public Criteria andConnection_nameLessThanOrEqualTo(String value) {
addCriterion("connection_name <=", value, "connection_name");
return (Criteria) this;
}
public Criteria andConnection_nameLike(String value) {
addCriterion("connection_name like", value, "connection_name");
return (Criteria) this;
}
public Criteria andConnection_nameNotLike(String value) {
addCriterion("connection_name not like", value, "connection_name");
return (Criteria) this;
}
public Criteria andConnection_nameIn(List<String> values) {
addCriterion("connection_name in", values, "connection_name");
return (Criteria) this;
}
public Criteria andConnection_nameNotIn(List<String> values) {
addCriterion("connection_name not in", values, "connection_name");
return (Criteria) this;
}
public Criteria andConnection_nameBetween(String value1, String value2) {
addCriterion("connection_name between", value1, value2, "connection_name");
return (Criteria) this;
}
public Criteria andConnection_nameNotBetween(String value1, String value2) {
addCriterion("connection_name not between", value1, value2, "connection_name");
return (Criteria) this;
}
public Criteria andProtocolIsNull() {
addCriterion("protocol is null");
return (Criteria) this;
}
public Criteria andProtocolIsNotNull() {
addCriterion("protocol is not null");
return (Criteria) this;
}
public Criteria andProtocolEqualTo(String value) {
addCriterion("protocol =", value, "protocol");
return (Criteria) this;
}
public Criteria andProtocolNotEqualTo(String value) {
addCriterion("protocol <>", value, "protocol");
return (Criteria) this;
}
public Criteria andProtocolGreaterThan(String value) {
addCriterion("protocol >", value, "protocol");
return (Criteria) this;
}
public Criteria andProtocolGreaterThanOrEqualTo(String value) {
addCriterion("protocol >=", value, "protocol");
return (Criteria) this;
}
public Criteria andProtocolLessThan(String value) {
addCriterion("protocol <", value, "protocol");
return (Criteria) this;
}
public Criteria andProtocolLessThanOrEqualTo(String value) {
addCriterion("protocol <=", value, "protocol");
return (Criteria) this;
}
public Criteria andProtocolLike(String value) {
addCriterion("protocol like", value, "protocol");
return (Criteria) this;
}
public Criteria andProtocolNotLike(String value) {
addCriterion("protocol not like", value, "protocol");
return (Criteria) this;
}
public Criteria andProtocolIn(List<String> values) {
addCriterion("protocol in", values, "protocol");
return (Criteria) this;
}
public Criteria andProtocolNotIn(List<String> values) {
addCriterion("protocol not in", values, "protocol");
return (Criteria) this;
}
public Criteria andProtocolBetween(String value1, String value2) {
addCriterion("protocol between", value1, value2, "protocol");
return (Criteria) this;
}
public Criteria andProtocolNotBetween(String value1, String value2) {
addCriterion("protocol not between", value1, value2, "protocol");
return (Criteria) this;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated do_not_delete_during_merge Tue Feb 05 15:45:11 PST 2013
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table guacamole..guacamole_connection
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

View File

@@ -0,0 +1,35 @@
package net.sourceforge.guacamole.net.auth.mysql.model.guacamole;
public class ConnectionParameter extends ConnectionParameterKey {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column guacamole..guacamole_connection_parameter.parameter_value
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
private String parameter_value;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column guacamole..guacamole_connection_parameter.parameter_value
*
* @return the value of guacamole..guacamole_connection_parameter.parameter_value
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public String getParameter_value() {
return parameter_value;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column guacamole..guacamole_connection_parameter.parameter_value
*
* @param parameter_value the value for guacamole..guacamole_connection_parameter.parameter_value
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setParameter_value(String parameter_value) {
this.parameter_value = parameter_value == null ? null : parameter_value.trim();
}
}

View File

@@ -0,0 +1,502 @@
package net.sourceforge.guacamole.net.auth.mysql.model.guacamole;
import java.util.ArrayList;
import java.util.List;
public class ConnectionParameterExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected String orderByClause;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected boolean distinct;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected List<Criteria> oredCriteria;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public ConnectionParameterExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public String getOrderByClause() {
return orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public boolean isDistinct() {
return distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andConnection_idIsNull() {
addCriterion("connection_id is null");
return (Criteria) this;
}
public Criteria andConnection_idIsNotNull() {
addCriterion("connection_id is not null");
return (Criteria) this;
}
public Criteria andConnection_idEqualTo(Integer value) {
addCriterion("connection_id =", value, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_idNotEqualTo(Integer value) {
addCriterion("connection_id <>", value, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_idGreaterThan(Integer value) {
addCriterion("connection_id >", value, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_idGreaterThanOrEqualTo(Integer value) {
addCriterion("connection_id >=", value, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_idLessThan(Integer value) {
addCriterion("connection_id <", value, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_idLessThanOrEqualTo(Integer value) {
addCriterion("connection_id <=", value, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_idIn(List<Integer> values) {
addCriterion("connection_id in", values, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_idNotIn(List<Integer> values) {
addCriterion("connection_id not in", values, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_idBetween(Integer value1, Integer value2) {
addCriterion("connection_id between", value1, value2, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_idNotBetween(Integer value1, Integer value2) {
addCriterion("connection_id not between", value1, value2, "connection_id");
return (Criteria) this;
}
public Criteria andParameter_nameIsNull() {
addCriterion("parameter_name is null");
return (Criteria) this;
}
public Criteria andParameter_nameIsNotNull() {
addCriterion("parameter_name is not null");
return (Criteria) this;
}
public Criteria andParameter_nameEqualTo(String value) {
addCriterion("parameter_name =", value, "parameter_name");
return (Criteria) this;
}
public Criteria andParameter_nameNotEqualTo(String value) {
addCriterion("parameter_name <>", value, "parameter_name");
return (Criteria) this;
}
public Criteria andParameter_nameGreaterThan(String value) {
addCriterion("parameter_name >", value, "parameter_name");
return (Criteria) this;
}
public Criteria andParameter_nameGreaterThanOrEqualTo(String value) {
addCriterion("parameter_name >=", value, "parameter_name");
return (Criteria) this;
}
public Criteria andParameter_nameLessThan(String value) {
addCriterion("parameter_name <", value, "parameter_name");
return (Criteria) this;
}
public Criteria andParameter_nameLessThanOrEqualTo(String value) {
addCriterion("parameter_name <=", value, "parameter_name");
return (Criteria) this;
}
public Criteria andParameter_nameLike(String value) {
addCriterion("parameter_name like", value, "parameter_name");
return (Criteria) this;
}
public Criteria andParameter_nameNotLike(String value) {
addCriterion("parameter_name not like", value, "parameter_name");
return (Criteria) this;
}
public Criteria andParameter_nameIn(List<String> values) {
addCriterion("parameter_name in", values, "parameter_name");
return (Criteria) this;
}
public Criteria andParameter_nameNotIn(List<String> values) {
addCriterion("parameter_name not in", values, "parameter_name");
return (Criteria) this;
}
public Criteria andParameter_nameBetween(String value1, String value2) {
addCriterion("parameter_name between", value1, value2, "parameter_name");
return (Criteria) this;
}
public Criteria andParameter_nameNotBetween(String value1, String value2) {
addCriterion("parameter_name not between", value1, value2, "parameter_name");
return (Criteria) this;
}
public Criteria andParameter_valueIsNull() {
addCriterion("parameter_value is null");
return (Criteria) this;
}
public Criteria andParameter_valueIsNotNull() {
addCriterion("parameter_value is not null");
return (Criteria) this;
}
public Criteria andParameter_valueEqualTo(String value) {
addCriterion("parameter_value =", value, "parameter_value");
return (Criteria) this;
}
public Criteria andParameter_valueNotEqualTo(String value) {
addCriterion("parameter_value <>", value, "parameter_value");
return (Criteria) this;
}
public Criteria andParameter_valueGreaterThan(String value) {
addCriterion("parameter_value >", value, "parameter_value");
return (Criteria) this;
}
public Criteria andParameter_valueGreaterThanOrEqualTo(String value) {
addCriterion("parameter_value >=", value, "parameter_value");
return (Criteria) this;
}
public Criteria andParameter_valueLessThan(String value) {
addCriterion("parameter_value <", value, "parameter_value");
return (Criteria) this;
}
public Criteria andParameter_valueLessThanOrEqualTo(String value) {
addCriterion("parameter_value <=", value, "parameter_value");
return (Criteria) this;
}
public Criteria andParameter_valueLike(String value) {
addCriterion("parameter_value like", value, "parameter_value");
return (Criteria) this;
}
public Criteria andParameter_valueNotLike(String value) {
addCriterion("parameter_value not like", value, "parameter_value");
return (Criteria) this;
}
public Criteria andParameter_valueIn(List<String> values) {
addCriterion("parameter_value in", values, "parameter_value");
return (Criteria) this;
}
public Criteria andParameter_valueNotIn(List<String> values) {
addCriterion("parameter_value not in", values, "parameter_value");
return (Criteria) this;
}
public Criteria andParameter_valueBetween(String value1, String value2) {
addCriterion("parameter_value between", value1, value2, "parameter_value");
return (Criteria) this;
}
public Criteria andParameter_valueNotBetween(String value1, String value2) {
addCriterion("parameter_value not between", value1, value2, "parameter_value");
return (Criteria) this;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated do_not_delete_during_merge Tue Feb 05 15:45:11 PST 2013
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table guacamole..guacamole_connection_parameter
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

View File

@@ -0,0 +1,67 @@
package net.sourceforge.guacamole.net.auth.mysql.model.guacamole;
public class ConnectionParameterKey {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column guacamole..guacamole_connection_parameter.connection_id
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
private Integer connection_id;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column guacamole..guacamole_connection_parameter.parameter_name
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
private String parameter_name;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column guacamole..guacamole_connection_parameter.connection_id
*
* @return the value of guacamole..guacamole_connection_parameter.connection_id
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public Integer getConnection_id() {
return connection_id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column guacamole..guacamole_connection_parameter.connection_id
*
* @param connection_id the value for guacamole..guacamole_connection_parameter.connection_id
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setConnection_id(Integer connection_id) {
this.connection_id = connection_id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column guacamole..guacamole_connection_parameter.parameter_name
*
* @return the value of guacamole..guacamole_connection_parameter.parameter_name
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public String getParameter_name() {
return parameter_name;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column guacamole..guacamole_connection_parameter.parameter_name
*
* @param parameter_name the value for guacamole..guacamole_connection_parameter.parameter_name
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setParameter_name(String parameter_name) {
this.parameter_name = parameter_name == null ? null : parameter_name.trim();
}
}

View File

@@ -0,0 +1,492 @@
package net.sourceforge.guacamole.net.auth.mysql.model.guacamole;
import java.util.ArrayList;
import java.util.List;
public class ConnectionPermissionExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table guacamole..guacamole_connection_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected String orderByClause;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table guacamole..guacamole_connection_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected boolean distinct;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table guacamole..guacamole_connection_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected List<Criteria> oredCriteria;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public ConnectionPermissionExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public String getOrderByClause() {
return orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public boolean isDistinct() {
return distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_connection_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table guacamole..guacamole_connection_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andUser_idIsNull() {
addCriterion("user_id is null");
return (Criteria) this;
}
public Criteria andUser_idIsNotNull() {
addCriterion("user_id is not null");
return (Criteria) this;
}
public Criteria andUser_idEqualTo(Integer value) {
addCriterion("user_id =", value, "user_id");
return (Criteria) this;
}
public Criteria andUser_idNotEqualTo(Integer value) {
addCriterion("user_id <>", value, "user_id");
return (Criteria) this;
}
public Criteria andUser_idGreaterThan(Integer value) {
addCriterion("user_id >", value, "user_id");
return (Criteria) this;
}
public Criteria andUser_idGreaterThanOrEqualTo(Integer value) {
addCriterion("user_id >=", value, "user_id");
return (Criteria) this;
}
public Criteria andUser_idLessThan(Integer value) {
addCriterion("user_id <", value, "user_id");
return (Criteria) this;
}
public Criteria andUser_idLessThanOrEqualTo(Integer value) {
addCriterion("user_id <=", value, "user_id");
return (Criteria) this;
}
public Criteria andUser_idIn(List<Integer> values) {
addCriterion("user_id in", values, "user_id");
return (Criteria) this;
}
public Criteria andUser_idNotIn(List<Integer> values) {
addCriterion("user_id not in", values, "user_id");
return (Criteria) this;
}
public Criteria andUser_idBetween(Integer value1, Integer value2) {
addCriterion("user_id between", value1, value2, "user_id");
return (Criteria) this;
}
public Criteria andUser_idNotBetween(Integer value1, Integer value2) {
addCriterion("user_id not between", value1, value2, "user_id");
return (Criteria) this;
}
public Criteria andConnection_idIsNull() {
addCriterion("connection_id is null");
return (Criteria) this;
}
public Criteria andConnection_idIsNotNull() {
addCriterion("connection_id is not null");
return (Criteria) this;
}
public Criteria andConnection_idEqualTo(Integer value) {
addCriterion("connection_id =", value, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_idNotEqualTo(Integer value) {
addCriterion("connection_id <>", value, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_idGreaterThan(Integer value) {
addCriterion("connection_id >", value, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_idGreaterThanOrEqualTo(Integer value) {
addCriterion("connection_id >=", value, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_idLessThan(Integer value) {
addCriterion("connection_id <", value, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_idLessThanOrEqualTo(Integer value) {
addCriterion("connection_id <=", value, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_idIn(List<Integer> values) {
addCriterion("connection_id in", values, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_idNotIn(List<Integer> values) {
addCriterion("connection_id not in", values, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_idBetween(Integer value1, Integer value2) {
addCriterion("connection_id between", value1, value2, "connection_id");
return (Criteria) this;
}
public Criteria andConnection_idNotBetween(Integer value1, Integer value2) {
addCriterion("connection_id not between", value1, value2, "connection_id");
return (Criteria) this;
}
public Criteria andPermissionIsNull() {
addCriterion("permission is null");
return (Criteria) this;
}
public Criteria andPermissionIsNotNull() {
addCriterion("permission is not null");
return (Criteria) this;
}
public Criteria andPermissionEqualTo(String value) {
addCriterion("permission =", value, "permission");
return (Criteria) this;
}
public Criteria andPermissionNotEqualTo(String value) {
addCriterion("permission <>", value, "permission");
return (Criteria) this;
}
public Criteria andPermissionGreaterThan(String value) {
addCriterion("permission >", value, "permission");
return (Criteria) this;
}
public Criteria andPermissionGreaterThanOrEqualTo(String value) {
addCriterion("permission >=", value, "permission");
return (Criteria) this;
}
public Criteria andPermissionLessThan(String value) {
addCriterion("permission <", value, "permission");
return (Criteria) this;
}
public Criteria andPermissionLessThanOrEqualTo(String value) {
addCriterion("permission <=", value, "permission");
return (Criteria) this;
}
public Criteria andPermissionLike(String value) {
addCriterion("permission like", value, "permission");
return (Criteria) this;
}
public Criteria andPermissionNotLike(String value) {
addCriterion("permission not like", value, "permission");
return (Criteria) this;
}
public Criteria andPermissionIn(List<String> values) {
addCriterion("permission in", values, "permission");
return (Criteria) this;
}
public Criteria andPermissionNotIn(List<String> values) {
addCriterion("permission not in", values, "permission");
return (Criteria) this;
}
public Criteria andPermissionBetween(String value1, String value2) {
addCriterion("permission between", value1, value2, "permission");
return (Criteria) this;
}
public Criteria andPermissionNotBetween(String value1, String value2) {
addCriterion("permission not between", value1, value2, "permission");
return (Criteria) this;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table guacamole..guacamole_connection_permission
*
* @mbggenerated do_not_delete_during_merge Tue Feb 05 15:45:11 PST 2013
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table guacamole..guacamole_connection_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

View File

@@ -0,0 +1,99 @@
package net.sourceforge.guacamole.net.auth.mysql.model.guacamole;
public class ConnectionPermissionKey {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column guacamole..guacamole_connection_permission.user_id
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
private Integer user_id;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column guacamole..guacamole_connection_permission.connection_id
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
private Integer connection_id;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column guacamole..guacamole_connection_permission.permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
private String permission;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column guacamole..guacamole_connection_permission.user_id
*
* @return the value of guacamole..guacamole_connection_permission.user_id
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public Integer getUser_id() {
return user_id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column guacamole..guacamole_connection_permission.user_id
*
* @param user_id the value for guacamole..guacamole_connection_permission.user_id
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setUser_id(Integer user_id) {
this.user_id = user_id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column guacamole..guacamole_connection_permission.connection_id
*
* @return the value of guacamole..guacamole_connection_permission.connection_id
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public Integer getConnection_id() {
return connection_id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column guacamole..guacamole_connection_permission.connection_id
*
* @param connection_id the value for guacamole..guacamole_connection_permission.connection_id
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setConnection_id(Integer connection_id) {
this.connection_id = connection_id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column guacamole..guacamole_connection_permission.permission
*
* @return the value of guacamole..guacamole_connection_permission.permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public String getPermission() {
return permission;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column guacamole..guacamole_connection_permission.permission
*
* @param permission the value for guacamole..guacamole_connection_permission.permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setPermission(String permission) {
this.permission = permission == null ? null : permission.trim();
}
}

View File

@@ -0,0 +1,432 @@
package net.sourceforge.guacamole.net.auth.mysql.model.guacamole;
import java.util.ArrayList;
import java.util.List;
public class SystemPermissionExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table guacamole..guacamole_system_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected String orderByClause;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table guacamole..guacamole_system_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected boolean distinct;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table guacamole..guacamole_system_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected List<Criteria> oredCriteria;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_system_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public SystemPermissionExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_system_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_system_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public String getOrderByClause() {
return orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_system_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_system_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public boolean isDistinct() {
return distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_system_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_system_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_system_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_system_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_system_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_system_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table guacamole..guacamole_system_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andUser_idIsNull() {
addCriterion("user_id is null");
return (Criteria) this;
}
public Criteria andUser_idIsNotNull() {
addCriterion("user_id is not null");
return (Criteria) this;
}
public Criteria andUser_idEqualTo(Integer value) {
addCriterion("user_id =", value, "user_id");
return (Criteria) this;
}
public Criteria andUser_idNotEqualTo(Integer value) {
addCriterion("user_id <>", value, "user_id");
return (Criteria) this;
}
public Criteria andUser_idGreaterThan(Integer value) {
addCriterion("user_id >", value, "user_id");
return (Criteria) this;
}
public Criteria andUser_idGreaterThanOrEqualTo(Integer value) {
addCriterion("user_id >=", value, "user_id");
return (Criteria) this;
}
public Criteria andUser_idLessThan(Integer value) {
addCriterion("user_id <", value, "user_id");
return (Criteria) this;
}
public Criteria andUser_idLessThanOrEqualTo(Integer value) {
addCriterion("user_id <=", value, "user_id");
return (Criteria) this;
}
public Criteria andUser_idIn(List<Integer> values) {
addCriterion("user_id in", values, "user_id");
return (Criteria) this;
}
public Criteria andUser_idNotIn(List<Integer> values) {
addCriterion("user_id not in", values, "user_id");
return (Criteria) this;
}
public Criteria andUser_idBetween(Integer value1, Integer value2) {
addCriterion("user_id between", value1, value2, "user_id");
return (Criteria) this;
}
public Criteria andUser_idNotBetween(Integer value1, Integer value2) {
addCriterion("user_id not between", value1, value2, "user_id");
return (Criteria) this;
}
public Criteria andPermissionIsNull() {
addCriterion("permission is null");
return (Criteria) this;
}
public Criteria andPermissionIsNotNull() {
addCriterion("permission is not null");
return (Criteria) this;
}
public Criteria andPermissionEqualTo(String value) {
addCriterion("permission =", value, "permission");
return (Criteria) this;
}
public Criteria andPermissionNotEqualTo(String value) {
addCriterion("permission <>", value, "permission");
return (Criteria) this;
}
public Criteria andPermissionGreaterThan(String value) {
addCriterion("permission >", value, "permission");
return (Criteria) this;
}
public Criteria andPermissionGreaterThanOrEqualTo(String value) {
addCriterion("permission >=", value, "permission");
return (Criteria) this;
}
public Criteria andPermissionLessThan(String value) {
addCriterion("permission <", value, "permission");
return (Criteria) this;
}
public Criteria andPermissionLessThanOrEqualTo(String value) {
addCriterion("permission <=", value, "permission");
return (Criteria) this;
}
public Criteria andPermissionLike(String value) {
addCriterion("permission like", value, "permission");
return (Criteria) this;
}
public Criteria andPermissionNotLike(String value) {
addCriterion("permission not like", value, "permission");
return (Criteria) this;
}
public Criteria andPermissionIn(List<String> values) {
addCriterion("permission in", values, "permission");
return (Criteria) this;
}
public Criteria andPermissionNotIn(List<String> values) {
addCriterion("permission not in", values, "permission");
return (Criteria) this;
}
public Criteria andPermissionBetween(String value1, String value2) {
addCriterion("permission between", value1, value2, "permission");
return (Criteria) this;
}
public Criteria andPermissionNotBetween(String value1, String value2) {
addCriterion("permission not between", value1, value2, "permission");
return (Criteria) this;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table guacamole..guacamole_system_permission
*
* @mbggenerated do_not_delete_during_merge Tue Feb 05 15:45:11 PST 2013
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table guacamole..guacamole_system_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

View File

@@ -0,0 +1,67 @@
package net.sourceforge.guacamole.net.auth.mysql.model.guacamole;
public class SystemPermissionKey {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column guacamole..guacamole_system_permission.user_id
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
private Integer user_id;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column guacamole..guacamole_system_permission.permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
private String permission;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column guacamole..guacamole_system_permission.user_id
*
* @return the value of guacamole..guacamole_system_permission.user_id
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public Integer getUser_id() {
return user_id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column guacamole..guacamole_system_permission.user_id
*
* @param user_id the value for guacamole..guacamole_system_permission.user_id
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setUser_id(Integer user_id) {
this.user_id = user_id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column guacamole..guacamole_system_permission.permission
*
* @return the value of guacamole..guacamole_system_permission.permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public String getPermission() {
return permission;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column guacamole..guacamole_system_permission.permission
*
* @param permission the value for guacamole..guacamole_system_permission.permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setPermission(String permission) {
this.permission = permission == null ? null : permission.trim();
}
}

View File

@@ -0,0 +1,131 @@
package net.sourceforge.guacamole.net.auth.mysql.model.guacamole;
public class User {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column guacamole..guacamole_user.user_id
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
private Integer user_id;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column guacamole..guacamole_user.username
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
private String username;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column guacamole..guacamole_user.password_salt
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
private String password_salt;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column guacamole..guacamole_user.password_hash
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
private byte[] password_hash;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column guacamole..guacamole_user.user_id
*
* @return the value of guacamole..guacamole_user.user_id
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public Integer getUser_id() {
return user_id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column guacamole..guacamole_user.user_id
*
* @param user_id the value for guacamole..guacamole_user.user_id
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setUser_id(Integer user_id) {
this.user_id = user_id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column guacamole..guacamole_user.username
*
* @return the value of guacamole..guacamole_user.username
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public String getUsername() {
return username;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column guacamole..guacamole_user.username
*
* @param username the value for guacamole..guacamole_user.username
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setUsername(String username) {
this.username = username == null ? null : username.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column guacamole..guacamole_user.password_salt
*
* @return the value of guacamole..guacamole_user.password_salt
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public String getPassword_salt() {
return password_salt;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column guacamole..guacamole_user.password_salt
*
* @param password_salt the value for guacamole..guacamole_user.password_salt
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setPassword_salt(String password_salt) {
this.password_salt = password_salt == null ? null : password_salt.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column guacamole..guacamole_user.password_hash
*
* @return the value of guacamole..guacamole_user.password_hash
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public byte[] getPassword_hash() {
return password_hash;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column guacamole..guacamole_user.password_hash
*
* @param password_hash the value for guacamole..guacamole_user.password_hash
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setPassword_hash(byte[] password_hash) {
this.password_hash = password_hash;
}
}

View File

@@ -0,0 +1,502 @@
package net.sourceforge.guacamole.net.auth.mysql.model.guacamole;
import java.util.ArrayList;
import java.util.List;
public class UserExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected String orderByClause;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected boolean distinct;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected List<Criteria> oredCriteria;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public UserExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public String getOrderByClause() {
return orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public boolean isDistinct() {
return distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andUser_idIsNull() {
addCriterion("user_id is null");
return (Criteria) this;
}
public Criteria andUser_idIsNotNull() {
addCriterion("user_id is not null");
return (Criteria) this;
}
public Criteria andUser_idEqualTo(Integer value) {
addCriterion("user_id =", value, "user_id");
return (Criteria) this;
}
public Criteria andUser_idNotEqualTo(Integer value) {
addCriterion("user_id <>", value, "user_id");
return (Criteria) this;
}
public Criteria andUser_idGreaterThan(Integer value) {
addCriterion("user_id >", value, "user_id");
return (Criteria) this;
}
public Criteria andUser_idGreaterThanOrEqualTo(Integer value) {
addCriterion("user_id >=", value, "user_id");
return (Criteria) this;
}
public Criteria andUser_idLessThan(Integer value) {
addCriterion("user_id <", value, "user_id");
return (Criteria) this;
}
public Criteria andUser_idLessThanOrEqualTo(Integer value) {
addCriterion("user_id <=", value, "user_id");
return (Criteria) this;
}
public Criteria andUser_idIn(List<Integer> values) {
addCriterion("user_id in", values, "user_id");
return (Criteria) this;
}
public Criteria andUser_idNotIn(List<Integer> values) {
addCriterion("user_id not in", values, "user_id");
return (Criteria) this;
}
public Criteria andUser_idBetween(Integer value1, Integer value2) {
addCriterion("user_id between", value1, value2, "user_id");
return (Criteria) this;
}
public Criteria andUser_idNotBetween(Integer value1, Integer value2) {
addCriterion("user_id not between", value1, value2, "user_id");
return (Criteria) this;
}
public Criteria andUsernameIsNull() {
addCriterion("username is null");
return (Criteria) this;
}
public Criteria andUsernameIsNotNull() {
addCriterion("username is not null");
return (Criteria) this;
}
public Criteria andUsernameEqualTo(String value) {
addCriterion("username =", value, "username");
return (Criteria) this;
}
public Criteria andUsernameNotEqualTo(String value) {
addCriterion("username <>", value, "username");
return (Criteria) this;
}
public Criteria andUsernameGreaterThan(String value) {
addCriterion("username >", value, "username");
return (Criteria) this;
}
public Criteria andUsernameGreaterThanOrEqualTo(String value) {
addCriterion("username >=", value, "username");
return (Criteria) this;
}
public Criteria andUsernameLessThan(String value) {
addCriterion("username <", value, "username");
return (Criteria) this;
}
public Criteria andUsernameLessThanOrEqualTo(String value) {
addCriterion("username <=", value, "username");
return (Criteria) this;
}
public Criteria andUsernameLike(String value) {
addCriterion("username like", value, "username");
return (Criteria) this;
}
public Criteria andUsernameNotLike(String value) {
addCriterion("username not like", value, "username");
return (Criteria) this;
}
public Criteria andUsernameIn(List<String> values) {
addCriterion("username in", values, "username");
return (Criteria) this;
}
public Criteria andUsernameNotIn(List<String> values) {
addCriterion("username not in", values, "username");
return (Criteria) this;
}
public Criteria andUsernameBetween(String value1, String value2) {
addCriterion("username between", value1, value2, "username");
return (Criteria) this;
}
public Criteria andUsernameNotBetween(String value1, String value2) {
addCriterion("username not between", value1, value2, "username");
return (Criteria) this;
}
public Criteria andPassword_saltIsNull() {
addCriterion("password_salt is null");
return (Criteria) this;
}
public Criteria andPassword_saltIsNotNull() {
addCriterion("password_salt is not null");
return (Criteria) this;
}
public Criteria andPassword_saltEqualTo(String value) {
addCriterion("password_salt =", value, "password_salt");
return (Criteria) this;
}
public Criteria andPassword_saltNotEqualTo(String value) {
addCriterion("password_salt <>", value, "password_salt");
return (Criteria) this;
}
public Criteria andPassword_saltGreaterThan(String value) {
addCriterion("password_salt >", value, "password_salt");
return (Criteria) this;
}
public Criteria andPassword_saltGreaterThanOrEqualTo(String value) {
addCriterion("password_salt >=", value, "password_salt");
return (Criteria) this;
}
public Criteria andPassword_saltLessThan(String value) {
addCriterion("password_salt <", value, "password_salt");
return (Criteria) this;
}
public Criteria andPassword_saltLessThanOrEqualTo(String value) {
addCriterion("password_salt <=", value, "password_salt");
return (Criteria) this;
}
public Criteria andPassword_saltLike(String value) {
addCriterion("password_salt like", value, "password_salt");
return (Criteria) this;
}
public Criteria andPassword_saltNotLike(String value) {
addCriterion("password_salt not like", value, "password_salt");
return (Criteria) this;
}
public Criteria andPassword_saltIn(List<String> values) {
addCriterion("password_salt in", values, "password_salt");
return (Criteria) this;
}
public Criteria andPassword_saltNotIn(List<String> values) {
addCriterion("password_salt not in", values, "password_salt");
return (Criteria) this;
}
public Criteria andPassword_saltBetween(String value1, String value2) {
addCriterion("password_salt between", value1, value2, "password_salt");
return (Criteria) this;
}
public Criteria andPassword_saltNotBetween(String value1, String value2) {
addCriterion("password_salt not between", value1, value2, "password_salt");
return (Criteria) this;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated do_not_delete_during_merge Tue Feb 05 15:45:11 PST 2013
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table guacamole..guacamole_user
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

View File

@@ -0,0 +1,492 @@
package net.sourceforge.guacamole.net.auth.mysql.model.guacamole;
import java.util.ArrayList;
import java.util.List;
public class UserPermissionExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table guacamole..guacamole_user_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected String orderByClause;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table guacamole..guacamole_user_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected boolean distinct;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table guacamole..guacamole_user_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected List<Criteria> oredCriteria;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public UserPermissionExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public String getOrderByClause() {
return orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public boolean isDistinct() {
return distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table guacamole..guacamole_user_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table guacamole..guacamole_user_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andUser_idIsNull() {
addCriterion("user_id is null");
return (Criteria) this;
}
public Criteria andUser_idIsNotNull() {
addCriterion("user_id is not null");
return (Criteria) this;
}
public Criteria andUser_idEqualTo(Integer value) {
addCriterion("user_id =", value, "user_id");
return (Criteria) this;
}
public Criteria andUser_idNotEqualTo(Integer value) {
addCriterion("user_id <>", value, "user_id");
return (Criteria) this;
}
public Criteria andUser_idGreaterThan(Integer value) {
addCriterion("user_id >", value, "user_id");
return (Criteria) this;
}
public Criteria andUser_idGreaterThanOrEqualTo(Integer value) {
addCriterion("user_id >=", value, "user_id");
return (Criteria) this;
}
public Criteria andUser_idLessThan(Integer value) {
addCriterion("user_id <", value, "user_id");
return (Criteria) this;
}
public Criteria andUser_idLessThanOrEqualTo(Integer value) {
addCriterion("user_id <=", value, "user_id");
return (Criteria) this;
}
public Criteria andUser_idIn(List<Integer> values) {
addCriterion("user_id in", values, "user_id");
return (Criteria) this;
}
public Criteria andUser_idNotIn(List<Integer> values) {
addCriterion("user_id not in", values, "user_id");
return (Criteria) this;
}
public Criteria andUser_idBetween(Integer value1, Integer value2) {
addCriterion("user_id between", value1, value2, "user_id");
return (Criteria) this;
}
public Criteria andUser_idNotBetween(Integer value1, Integer value2) {
addCriterion("user_id not between", value1, value2, "user_id");
return (Criteria) this;
}
public Criteria andAffected_user_idIsNull() {
addCriterion("affected_user_id is null");
return (Criteria) this;
}
public Criteria andAffected_user_idIsNotNull() {
addCriterion("affected_user_id is not null");
return (Criteria) this;
}
public Criteria andAffected_user_idEqualTo(Integer value) {
addCriterion("affected_user_id =", value, "affected_user_id");
return (Criteria) this;
}
public Criteria andAffected_user_idNotEqualTo(Integer value) {
addCriterion("affected_user_id <>", value, "affected_user_id");
return (Criteria) this;
}
public Criteria andAffected_user_idGreaterThan(Integer value) {
addCriterion("affected_user_id >", value, "affected_user_id");
return (Criteria) this;
}
public Criteria andAffected_user_idGreaterThanOrEqualTo(Integer value) {
addCriterion("affected_user_id >=", value, "affected_user_id");
return (Criteria) this;
}
public Criteria andAffected_user_idLessThan(Integer value) {
addCriterion("affected_user_id <", value, "affected_user_id");
return (Criteria) this;
}
public Criteria andAffected_user_idLessThanOrEqualTo(Integer value) {
addCriterion("affected_user_id <=", value, "affected_user_id");
return (Criteria) this;
}
public Criteria andAffected_user_idIn(List<Integer> values) {
addCriterion("affected_user_id in", values, "affected_user_id");
return (Criteria) this;
}
public Criteria andAffected_user_idNotIn(List<Integer> values) {
addCriterion("affected_user_id not in", values, "affected_user_id");
return (Criteria) this;
}
public Criteria andAffected_user_idBetween(Integer value1, Integer value2) {
addCriterion("affected_user_id between", value1, value2, "affected_user_id");
return (Criteria) this;
}
public Criteria andAffected_user_idNotBetween(Integer value1, Integer value2) {
addCriterion("affected_user_id not between", value1, value2, "affected_user_id");
return (Criteria) this;
}
public Criteria andPermissionIsNull() {
addCriterion("permission is null");
return (Criteria) this;
}
public Criteria andPermissionIsNotNull() {
addCriterion("permission is not null");
return (Criteria) this;
}
public Criteria andPermissionEqualTo(String value) {
addCriterion("permission =", value, "permission");
return (Criteria) this;
}
public Criteria andPermissionNotEqualTo(String value) {
addCriterion("permission <>", value, "permission");
return (Criteria) this;
}
public Criteria andPermissionGreaterThan(String value) {
addCriterion("permission >", value, "permission");
return (Criteria) this;
}
public Criteria andPermissionGreaterThanOrEqualTo(String value) {
addCriterion("permission >=", value, "permission");
return (Criteria) this;
}
public Criteria andPermissionLessThan(String value) {
addCriterion("permission <", value, "permission");
return (Criteria) this;
}
public Criteria andPermissionLessThanOrEqualTo(String value) {
addCriterion("permission <=", value, "permission");
return (Criteria) this;
}
public Criteria andPermissionLike(String value) {
addCriterion("permission like", value, "permission");
return (Criteria) this;
}
public Criteria andPermissionNotLike(String value) {
addCriterion("permission not like", value, "permission");
return (Criteria) this;
}
public Criteria andPermissionIn(List<String> values) {
addCriterion("permission in", values, "permission");
return (Criteria) this;
}
public Criteria andPermissionNotIn(List<String> values) {
addCriterion("permission not in", values, "permission");
return (Criteria) this;
}
public Criteria andPermissionBetween(String value1, String value2) {
addCriterion("permission between", value1, value2, "permission");
return (Criteria) this;
}
public Criteria andPermissionNotBetween(String value1, String value2) {
addCriterion("permission not between", value1, value2, "permission");
return (Criteria) this;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table guacamole..guacamole_user_permission
*
* @mbggenerated do_not_delete_during_merge Tue Feb 05 15:45:11 PST 2013
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table guacamole..guacamole_user_permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

View File

@@ -0,0 +1,99 @@
package net.sourceforge.guacamole.net.auth.mysql.model.guacamole;
public class UserPermissionKey {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column guacamole..guacamole_user_permission.user_id
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
private Integer user_id;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column guacamole..guacamole_user_permission.affected_user_id
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
private Integer affected_user_id;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column guacamole..guacamole_user_permission.permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
private String permission;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column guacamole..guacamole_user_permission.user_id
*
* @return the value of guacamole..guacamole_user_permission.user_id
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public Integer getUser_id() {
return user_id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column guacamole..guacamole_user_permission.user_id
*
* @param user_id the value for guacamole..guacamole_user_permission.user_id
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setUser_id(Integer user_id) {
this.user_id = user_id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column guacamole..guacamole_user_permission.affected_user_id
*
* @return the value of guacamole..guacamole_user_permission.affected_user_id
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public Integer getAffected_user_id() {
return affected_user_id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column guacamole..guacamole_user_permission.affected_user_id
*
* @param affected_user_id the value for guacamole..guacamole_user_permission.affected_user_id
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setAffected_user_id(Integer affected_user_id) {
this.affected_user_id = affected_user_id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column guacamole..guacamole_user_permission.permission
*
* @return the value of guacamole..guacamole_user_permission.permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public String getPermission() {
return permission;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column guacamole..guacamole_user_permission.permission
*
* @param permission the value for guacamole..guacamole_user_permission.permission
*
* @mbggenerated Tue Feb 05 15:45:11 PST 2013
*/
public void setPermission(String permission) {
this.permission = permission == null ? null : permission.trim();
}
}

View File

@@ -0,0 +1,256 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="net.sourceforge.guacamole.net.auth.mysql.dao.guacamole.ConnectionMapper" >
<resultMap id="BaseResultMap" type="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.Connection" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
<id column="connection_id" property="connection_id" jdbcType="INTEGER" />
<result column="connection_name" property="connection_name" jdbcType="VARCHAR" />
<result column="protocol" property="protocol" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
connection_id, connection_name, protocol
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.ConnectionExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from guacamole..guacamole_connection
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
select
<include refid="Base_Column_List" />
from guacamole..guacamole_connection
where connection_id = #{connection_id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
delete from guacamole..guacamole_connection
where connection_id = #{connection_id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.ConnectionExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
delete from guacamole..guacamole_connection
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.Connection" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
insert into guacamole..guacamole_connection (connection_id, connection_name, protocol
)
values (#{connection_id,jdbcType=INTEGER}, #{connection_name,jdbcType=VARCHAR}, #{protocol,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.Connection" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
insert into guacamole..guacamole_connection
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="connection_id != null" >
connection_id,
</if>
<if test="connection_name != null" >
connection_name,
</if>
<if test="protocol != null" >
protocol,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="connection_id != null" >
#{connection_id,jdbcType=INTEGER},
</if>
<if test="connection_name != null" >
#{connection_name,jdbcType=VARCHAR},
</if>
<if test="protocol != null" >
#{protocol,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.ConnectionExample" resultType="java.lang.Integer" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
select count(*) from guacamole..guacamole_connection
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
update guacamole..guacamole_connection
<set >
<if test="record.connection_id != null" >
connection_id = #{record.connection_id,jdbcType=INTEGER},
</if>
<if test="record.connection_name != null" >
connection_name = #{record.connection_name,jdbcType=VARCHAR},
</if>
<if test="record.protocol != null" >
protocol = #{record.protocol,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
update guacamole..guacamole_connection
set connection_id = #{record.connection_id,jdbcType=INTEGER},
connection_name = #{record.connection_name,jdbcType=VARCHAR},
protocol = #{record.protocol,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.Connection" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
update guacamole..guacamole_connection
<set >
<if test="connection_name != null" >
connection_name = #{connection_name,jdbcType=VARCHAR},
</if>
<if test="protocol != null" >
protocol = #{protocol,jdbcType=VARCHAR},
</if>
</set>
where connection_id = #{connection_id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.Connection" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
update guacamole..guacamole_connection
set connection_name = #{connection_name,jdbcType=VARCHAR},
protocol = #{protocol,jdbcType=VARCHAR}
where connection_id = #{connection_id,jdbcType=INTEGER}
</update>
</mapper>

View File

@@ -0,0 +1,256 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="net.sourceforge.guacamole.net.auth.mysql.dao.guacamole.ConnectionParameterMapper" >
<resultMap id="BaseResultMap" type="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.ConnectionParameter" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
<id column="connection_id" property="connection_id" jdbcType="INTEGER" />
<id column="parameter_name" property="parameter_name" jdbcType="VARCHAR" />
<result column="parameter_value" property="parameter_value" jdbcType="VARCHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
connection_id, parameter_name, parameter_value
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.ConnectionParameterExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from guacamole..guacamole_connection_parameter
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.ConnectionParameterKey" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
select
<include refid="Base_Column_List" />
from guacamole..guacamole_connection_parameter
where connection_id = #{connection_id,jdbcType=INTEGER}
and parameter_name = #{parameter_name,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.ConnectionParameterKey" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
delete from guacamole..guacamole_connection_parameter
where connection_id = #{connection_id,jdbcType=INTEGER}
and parameter_name = #{parameter_name,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.ConnectionParameterExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
delete from guacamole..guacamole_connection_parameter
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.ConnectionParameter" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
insert into guacamole..guacamole_connection_parameter (connection_id, parameter_name, parameter_value
)
values (#{connection_id,jdbcType=INTEGER}, #{parameter_name,jdbcType=VARCHAR}, #{parameter_value,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.ConnectionParameter" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
insert into guacamole..guacamole_connection_parameter
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="connection_id != null" >
connection_id,
</if>
<if test="parameter_name != null" >
parameter_name,
</if>
<if test="parameter_value != null" >
parameter_value,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="connection_id != null" >
#{connection_id,jdbcType=INTEGER},
</if>
<if test="parameter_name != null" >
#{parameter_name,jdbcType=VARCHAR},
</if>
<if test="parameter_value != null" >
#{parameter_value,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.ConnectionParameterExample" resultType="java.lang.Integer" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
select count(*) from guacamole..guacamole_connection_parameter
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
update guacamole..guacamole_connection_parameter
<set >
<if test="record.connection_id != null" >
connection_id = #{record.connection_id,jdbcType=INTEGER},
</if>
<if test="record.parameter_name != null" >
parameter_name = #{record.parameter_name,jdbcType=VARCHAR},
</if>
<if test="record.parameter_value != null" >
parameter_value = #{record.parameter_value,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
update guacamole..guacamole_connection_parameter
set connection_id = #{record.connection_id,jdbcType=INTEGER},
parameter_name = #{record.parameter_name,jdbcType=VARCHAR},
parameter_value = #{record.parameter_value,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.ConnectionParameter" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
update guacamole..guacamole_connection_parameter
<set >
<if test="parameter_value != null" >
parameter_value = #{parameter_value,jdbcType=VARCHAR},
</if>
</set>
where connection_id = #{connection_id,jdbcType=INTEGER}
and parameter_name = #{parameter_name,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.ConnectionParameter" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
update guacamole..guacamole_connection_parameter
set parameter_value = #{parameter_value,jdbcType=VARCHAR}
where connection_id = #{connection_id,jdbcType=INTEGER}
and parameter_name = #{parameter_name,jdbcType=VARCHAR}
</update>
</mapper>

View File

@@ -0,0 +1,219 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="net.sourceforge.guacamole.net.auth.mysql.dao.guacamole.ConnectionPermissionMapper" >
<resultMap id="BaseResultMap" type="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.ConnectionPermissionKey" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
<id column="user_id" property="user_id" jdbcType="INTEGER" />
<id column="connection_id" property="connection_id" jdbcType="INTEGER" />
<id column="permission" property="permission" jdbcType="CHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
user_id, connection_id, permission
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.ConnectionPermissionExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from guacamole..guacamole_connection_permission
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<delete id="deleteByPrimaryKey" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.ConnectionPermissionKey" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
delete from guacamole..guacamole_connection_permission
where user_id = #{user_id,jdbcType=INTEGER}
and connection_id = #{connection_id,jdbcType=INTEGER}
and permission = #{permission,jdbcType=CHAR}
</delete>
<delete id="deleteByExample" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.ConnectionPermissionExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
delete from guacamole..guacamole_connection_permission
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.ConnectionPermissionKey" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
insert into guacamole..guacamole_connection_permission (user_id, connection_id, permission
)
values (#{user_id,jdbcType=INTEGER}, #{connection_id,jdbcType=INTEGER}, #{permission,jdbcType=CHAR}
)
</insert>
<insert id="insertSelective" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.ConnectionPermissionKey" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
insert into guacamole..guacamole_connection_permission
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="user_id != null" >
user_id,
</if>
<if test="connection_id != null" >
connection_id,
</if>
<if test="permission != null" >
permission,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="user_id != null" >
#{user_id,jdbcType=INTEGER},
</if>
<if test="connection_id != null" >
#{connection_id,jdbcType=INTEGER},
</if>
<if test="permission != null" >
#{permission,jdbcType=CHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.ConnectionPermissionExample" resultType="java.lang.Integer" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
select count(*) from guacamole..guacamole_connection_permission
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
update guacamole..guacamole_connection_permission
<set >
<if test="record.user_id != null" >
user_id = #{record.user_id,jdbcType=INTEGER},
</if>
<if test="record.connection_id != null" >
connection_id = #{record.connection_id,jdbcType=INTEGER},
</if>
<if test="record.permission != null" >
permission = #{record.permission,jdbcType=CHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
update guacamole..guacamole_connection_permission
set user_id = #{record.user_id,jdbcType=INTEGER},
connection_id = #{record.connection_id,jdbcType=INTEGER},
permission = #{record.permission,jdbcType=CHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
</mapper>

View File

@@ -0,0 +1,205 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="net.sourceforge.guacamole.net.auth.mysql.dao.guacamole.SystemPermissionMapper" >
<resultMap id="BaseResultMap" type="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.SystemPermissionKey" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
<id column="user_id" property="user_id" jdbcType="INTEGER" />
<id column="permission" property="permission" jdbcType="CHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
user_id, permission
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.SystemPermissionExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from guacamole..guacamole_system_permission
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<delete id="deleteByPrimaryKey" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.SystemPermissionKey" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
delete from guacamole..guacamole_system_permission
where user_id = #{user_id,jdbcType=INTEGER}
and permission = #{permission,jdbcType=CHAR}
</delete>
<delete id="deleteByExample" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.SystemPermissionExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
delete from guacamole..guacamole_system_permission
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.SystemPermissionKey" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
insert into guacamole..guacamole_system_permission (user_id, permission)
values (#{user_id,jdbcType=INTEGER}, #{permission,jdbcType=CHAR})
</insert>
<insert id="insertSelective" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.SystemPermissionKey" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
insert into guacamole..guacamole_system_permission
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="user_id != null" >
user_id,
</if>
<if test="permission != null" >
permission,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="user_id != null" >
#{user_id,jdbcType=INTEGER},
</if>
<if test="permission != null" >
#{permission,jdbcType=CHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.SystemPermissionExample" resultType="java.lang.Integer" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
select count(*) from guacamole..guacamole_system_permission
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
update guacamole..guacamole_system_permission
<set >
<if test="record.user_id != null" >
user_id = #{record.user_id,jdbcType=INTEGER},
</if>
<if test="record.permission != null" >
permission = #{record.permission,jdbcType=CHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
update guacamole..guacamole_system_permission
set user_id = #{record.user_id,jdbcType=INTEGER},
permission = #{record.permission,jdbcType=CHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
</mapper>

View File

@@ -0,0 +1,334 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="net.sourceforge.guacamole.net.auth.mysql.dao.guacamole.UserMapper" >
<resultMap id="BaseResultMap" type="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.User" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
<id column="user_id" property="user_id" jdbcType="INTEGER" />
<result column="username" property="username" jdbcType="VARCHAR" />
<result column="password_salt" property="password_salt" jdbcType="VARCHAR" />
</resultMap>
<resultMap id="ResultMapWithBLOBs" type="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.User" extends="BaseResultMap" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
<result column="password_hash" property="password_hash" jdbcType="BINARY" />
</resultMap>
<sql id="Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
user_id, username, password_salt
</sql>
<sql id="Blob_Column_List" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
password_hash
</sql>
<select id="selectByExampleWithBLOBs" resultMap="ResultMapWithBLOBs" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.UserExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from guacamole..guacamole_user
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.UserExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from guacamole..guacamole_user
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from guacamole..guacamole_user
where user_id = #{user_id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
delete from guacamole..guacamole_user
where user_id = #{user_id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.UserExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
delete from guacamole..guacamole_user
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.User" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
insert into guacamole..guacamole_user (user_id, username, password_salt,
password_hash)
values (#{user_id,jdbcType=INTEGER}, #{username,jdbcType=VARCHAR}, #{password_salt,jdbcType=VARCHAR},
#{password_hash,jdbcType=BINARY})
</insert>
<insert id="insertSelective" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.User" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
insert into guacamole..guacamole_user
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="user_id != null" >
user_id,
</if>
<if test="username != null" >
username,
</if>
<if test="password_salt != null" >
password_salt,
</if>
<if test="password_hash != null" >
password_hash,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="user_id != null" >
#{user_id,jdbcType=INTEGER},
</if>
<if test="username != null" >
#{username,jdbcType=VARCHAR},
</if>
<if test="password_salt != null" >
#{password_salt,jdbcType=VARCHAR},
</if>
<if test="password_hash != null" >
#{password_hash,jdbcType=BINARY},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.UserExample" resultType="java.lang.Integer" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
select count(*) from guacamole..guacamole_user
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
update guacamole..guacamole_user
<set >
<if test="record.user_id != null" >
user_id = #{record.user_id,jdbcType=INTEGER},
</if>
<if test="record.username != null" >
username = #{record.username,jdbcType=VARCHAR},
</if>
<if test="record.password_salt != null" >
password_salt = #{record.password_salt,jdbcType=VARCHAR},
</if>
<if test="record.password_hash != null" >
password_hash = #{record.password_hash,jdbcType=BINARY},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
update guacamole..guacamole_user
set user_id = #{record.user_id,jdbcType=INTEGER},
username = #{record.username,jdbcType=VARCHAR},
password_salt = #{record.password_salt,jdbcType=VARCHAR},
password_hash = #{record.password_hash,jdbcType=BINARY}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
update guacamole..guacamole_user
set user_id = #{record.user_id,jdbcType=INTEGER},
username = #{record.username,jdbcType=VARCHAR},
password_salt = #{record.password_salt,jdbcType=VARCHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.User" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
update guacamole..guacamole_user
<set >
<if test="username != null" >
username = #{username,jdbcType=VARCHAR},
</if>
<if test="password_salt != null" >
password_salt = #{password_salt,jdbcType=VARCHAR},
</if>
<if test="password_hash != null" >
password_hash = #{password_hash,jdbcType=BINARY},
</if>
</set>
where user_id = #{user_id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.User" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
update guacamole..guacamole_user
set username = #{username,jdbcType=VARCHAR},
password_salt = #{password_salt,jdbcType=VARCHAR},
password_hash = #{password_hash,jdbcType=BINARY}
where user_id = #{user_id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.User" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
update guacamole..guacamole_user
set username = #{username,jdbcType=VARCHAR},
password_salt = #{password_salt,jdbcType=VARCHAR}
where user_id = #{user_id,jdbcType=INTEGER}
</update>
</mapper>

View File

@@ -0,0 +1,219 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="net.sourceforge.guacamole.net.auth.mysql.dao.guacamole.UserPermissionMapper" >
<resultMap id="BaseResultMap" type="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.UserPermissionKey" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
<id column="user_id" property="user_id" jdbcType="INTEGER" />
<id column="affected_user_id" property="affected_user_id" jdbcType="INTEGER" />
<id column="permission" property="permission" jdbcType="CHAR" />
</resultMap>
<sql id="Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
<where >
<foreach collection="oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
<where >
<foreach collection="example.oredCriteria" item="criteria" separator="or" >
<if test="criteria.valid" >
<trim prefix="(" suffix=")" prefixOverrides="and" >
<foreach collection="criteria.criteria" item="criterion" >
<choose >
<when test="criterion.noValue" >
and ${criterion.condition}
</when>
<when test="criterion.singleValue" >
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue" >
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue" >
and ${criterion.condition}
<foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
user_id, affected_user_id, permission
</sql>
<select id="selectByExample" resultMap="BaseResultMap" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.UserPermissionExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
select
<if test="distinct" >
distinct
</if>
<include refid="Base_Column_List" />
from guacamole..guacamole_user_permission
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null" >
order by ${orderByClause}
</if>
</select>
<delete id="deleteByPrimaryKey" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.UserPermissionKey" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
delete from guacamole..guacamole_user_permission
where user_id = #{user_id,jdbcType=INTEGER}
and affected_user_id = #{affected_user_id,jdbcType=INTEGER}
and permission = #{permission,jdbcType=CHAR}
</delete>
<delete id="deleteByExample" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.UserPermissionExample" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
delete from guacamole..guacamole_user_permission
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.UserPermissionKey" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
insert into guacamole..guacamole_user_permission (user_id, affected_user_id, permission
)
values (#{user_id,jdbcType=INTEGER}, #{affected_user_id,jdbcType=INTEGER}, #{permission,jdbcType=CHAR}
)
</insert>
<insert id="insertSelective" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.UserPermissionKey" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
insert into guacamole..guacamole_user_permission
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="user_id != null" >
user_id,
</if>
<if test="affected_user_id != null" >
affected_user_id,
</if>
<if test="permission != null" >
permission,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="user_id != null" >
#{user_id,jdbcType=INTEGER},
</if>
<if test="affected_user_id != null" >
#{affected_user_id,jdbcType=INTEGER},
</if>
<if test="permission != null" >
#{permission,jdbcType=CHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.guacamole.UserPermissionExample" resultType="java.lang.Integer" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
select count(*) from guacamole..guacamole_user_permission
<if test="_parameter != null" >
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
update guacamole..guacamole_user_permission
<set >
<if test="record.user_id != null" >
user_id = #{record.user_id,jdbcType=INTEGER},
</if>
<if test="record.affected_user_id != null" >
affected_user_id = #{record.affected_user_id,jdbcType=INTEGER},
</if>
<if test="record.permission != null" >
permission = #{record.permission,jdbcType=CHAR},
</if>
</set>
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map" >
<!--
WARNING - @mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Tue Feb 05 15:45:11 PST 2013.
-->
update guacamole..guacamole_user_permission
set user_id = #{record.user_id,jdbcType=INTEGER},
affected_user_id = #{record.affected_user_id,jdbcType=INTEGER},
permission = #{record.permission,jdbcType=CHAR}
<if test="_parameter != null" >
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
</mapper>