mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
Ticket #269: Leverage Maven's source generation features to generate MyBatis mappings.
This commit is contained in:
21
extensions/guacamole-auth-mysql/doc/example/settings.xml
Normal file
21
extensions/guacamole-auth-mysql/doc/example/settings.xml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
<settings>
|
||||||
|
|
||||||
|
<!-- Profile defining the properties required for a MyBatis build -->
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>guacamole-mybatis</id>
|
||||||
|
<properties>
|
||||||
|
<guacamole.database.catalog>SCHEMA</guacamole.database.catalog>
|
||||||
|
<guacamole.database.schema>DATABASE</guacamole.database.schema>
|
||||||
|
<guacamole.database.user>USER</guacamole.database.user>
|
||||||
|
<guacamole.database.password>PASS</guacamole.database.password>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
|
|
||||||
|
<!-- Activate by default -->
|
||||||
|
<activeProfiles>
|
||||||
|
<activeProfile>guacamole-mybatis</activeProfile>
|
||||||
|
</activeProfiles>
|
||||||
|
|
||||||
|
</settings>
|
@@ -1,75 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE generatorConfiguration
|
|
||||||
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
|
|
||||||
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
|
|
||||||
|
|
||||||
<generatorConfiguration>
|
|
||||||
<!-- Location of MySQL jdbc driver. -->
|
|
||||||
<classPathEntry location="mysql-connector-java-5.1.23-bin.jar" />
|
|
||||||
|
|
||||||
<context id="guacamoleTables" targetRuntime="MyBatis3">
|
|
||||||
<!-- MySQL JDBC driver class. -->
|
|
||||||
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
|
|
||||||
connectionURL="jdbc:mysql://127.0.0.1:3306"
|
|
||||||
userId="root"
|
|
||||||
password="root">
|
|
||||||
</jdbcConnection>
|
|
||||||
|
|
||||||
<!-- Set targetProject to the desired location for the generated model source. -->
|
|
||||||
<javaModelGenerator targetPackage="net.sourceforge.guacamole.net.auth.mysql.model" targetProject="/path/to/target/folder">
|
|
||||||
<property name="enableSubPackages" value="true" />
|
|
||||||
<property name="trimStrings" value="true" />
|
|
||||||
</javaModelGenerator>
|
|
||||||
|
|
||||||
<!-- Set targetProject to the desired location for the generated xml mapping files. -->
|
|
||||||
<!-- NOTE: These XML mapping files will need to be in the same package as the generated DAO -->
|
|
||||||
<!-- java source files, but in the /resources folder, not the /src folder. -->
|
|
||||||
<sqlMapGenerator targetPackage="net.sourceforge.guacamole.net.auth.mysql.dao" targetProject="/path/to/target/folder">
|
|
||||||
<property name="enableSubPackages" value="true" />
|
|
||||||
</sqlMapGenerator>
|
|
||||||
|
|
||||||
<!-- Set targetProject to the desired location for the generated acces object source. -->
|
|
||||||
<javaClientGenerator type="XMLMAPPER" targetPackage="net.sourceforge.guacamole.net.auth.mysql.dao" targetProject="/path/to/target/folder">
|
|
||||||
<property name="enableSubPackages" value="true" />
|
|
||||||
</javaClientGenerator>
|
|
||||||
|
|
||||||
<!-- The guacamole authentication tables: If the names of the tables change, they have to be changed here as well. -->
|
|
||||||
|
|
||||||
<!-- Set catalog to the name of the database that contains the guacamole authentication tables. -->
|
|
||||||
<table catalog="guacamole" tableName="guacamole_connection" domainObjectName="Connection" >
|
|
||||||
<property name="useActualColumnNames" value="true"/>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<!-- Set catalog to the name of the database that contains the guacamole authentication tables. -->
|
|
||||||
<table catalog="guacamole" tableName="guacamole_connection_parameter" domainObjectName="ConnectionParameter" >
|
|
||||||
<property name="useActualColumnNames" value="true"/>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<!-- Set catalog to the name of the database that contains the guacamole authentication tables. -->
|
|
||||||
<table catalog="guacamole" tableName="guacamole_connection_permission" domainObjectName="ConnectionPermission" >
|
|
||||||
<property name="useActualColumnNames" value="true"/>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<!-- Set catalog to the name of the database that contains the guacamole authentication tables. -->
|
|
||||||
<table catalog="guacamole" tableName="guacamole_system_permission" domainObjectName="SystemPermission" >
|
|
||||||
<property name="useActualColumnNames" value="true"/>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<!-- Set catalog to the name of the database that contains the guacamole authentication tables. -->
|
|
||||||
<table catalog="guacamole" tableName="guacamole_user" domainObjectName="User" >
|
|
||||||
<property name="useActualColumnNames" value="true"/>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<!-- Set catalog to the name of the database that contains the guacamole authentication tables. -->
|
|
||||||
<table catalog="guacamole" tableName="guacamole_user_permission" domainObjectName="UserPermission" >
|
|
||||||
<property name="useActualColumnNames" value="true"/>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<!-- Set catalog to the name of the database that contains the guacamole authentication tables. -->
|
|
||||||
<table catalog="guacamole" tableName="guacamole_connection_history" domainObjectName="ConnectionHistory" >
|
|
||||||
<property name="useActualColumnNames" value="true"/>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</context>
|
|
||||||
</generatorConfiguration>
|
|
||||||
|
|
@@ -48,6 +48,32 @@
|
|||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
<!-- MyBatis Generator plugin -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.mybatis.generator</groupId>
|
||||||
|
<artifactId>mybatis-generator-maven-plugin</artifactId>
|
||||||
|
<version>1.3.0</version>
|
||||||
|
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>Generate MyBatis Artifacts</id>
|
||||||
|
<goals>
|
||||||
|
<goal>generate</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
|
||||||
|
<!-- MySQL Connector -->
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>mysql</groupId>
|
||||||
|
<artifactId>mysql-connector-java</artifactId>
|
||||||
|
<version>5.1.23</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
</plugin>
|
||||||
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
@@ -1,96 +0,0 @@
|
|||||||
package net.sourceforge.guacamole.net.auth.mysql.dao;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import net.sourceforge.guacamole.net.auth.mysql.model.ConnectionHistory;
|
|
||||||
import net.sourceforge.guacamole.net.auth.mysql.model.ConnectionHistoryExample;
|
|
||||||
import org.apache.ibatis.annotations.Param;
|
|
||||||
|
|
||||||
public interface ConnectionHistoryMapper {
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table guacamole..guacamole_connection_history
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
int countByExample(ConnectionHistoryExample example);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table guacamole..guacamole_connection_history
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
int deleteByExample(ConnectionHistoryExample example);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table guacamole..guacamole_connection_history
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
int deleteByPrimaryKey(Integer history_id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table guacamole..guacamole_connection_history
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
int insert(ConnectionHistory record);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table guacamole..guacamole_connection_history
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
int insertSelective(ConnectionHistory record);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table guacamole..guacamole_connection_history
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
List<ConnectionHistory> selectByExample(ConnectionHistoryExample example);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table guacamole..guacamole_connection_history
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
ConnectionHistory selectByPrimaryKey(Integer history_id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table guacamole..guacamole_connection_history
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
int updateByExampleSelective(@Param("record") ConnectionHistory record, @Param("example") ConnectionHistoryExample example);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table guacamole..guacamole_connection_history
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
int updateByExample(@Param("record") ConnectionHistory record, @Param("example") ConnectionHistoryExample example);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table guacamole..guacamole_connection_history
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
int updateByPrimaryKeySelective(ConnectionHistory record);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table guacamole..guacamole_connection_history
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
int updateByPrimaryKey(ConnectionHistory record);
|
|
||||||
}
|
|
@@ -1,96 +0,0 @@
|
|||||||
package net.sourceforge.guacamole.net.auth.mysql.dao;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import net.sourceforge.guacamole.net.auth.mysql.model.Connection;
|
|
||||||
import net.sourceforge.guacamole.net.auth.mysql.model.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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
int updateByPrimaryKey(Connection record);
|
|
||||||
}
|
|
@@ -1,97 +0,0 @@
|
|||||||
package net.sourceforge.guacamole.net.auth.mysql.dao;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import net.sourceforge.guacamole.net.auth.mysql.model.ConnectionParameter;
|
|
||||||
import net.sourceforge.guacamole.net.auth.mysql.model.ConnectionParameterExample;
|
|
||||||
import net.sourceforge.guacamole.net.auth.mysql.model.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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
int updateByPrimaryKey(ConnectionParameter record);
|
|
||||||
}
|
|
@@ -1,72 +0,0 @@
|
|||||||
package net.sourceforge.guacamole.net.auth.mysql.dao;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import net.sourceforge.guacamole.net.auth.mysql.model.ConnectionPermissionExample;
|
|
||||||
import net.sourceforge.guacamole.net.auth.mysql.model.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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
int updateByExample(@Param("record") ConnectionPermissionKey record, @Param("example") ConnectionPermissionExample example);
|
|
||||||
}
|
|
@@ -1,72 +0,0 @@
|
|||||||
package net.sourceforge.guacamole.net.auth.mysql.dao;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import net.sourceforge.guacamole.net.auth.mysql.model.SystemPermissionExample;
|
|
||||||
import net.sourceforge.guacamole.net.auth.mysql.model.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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
int updateByExample(@Param("record") SystemPermissionKey record, @Param("example") SystemPermissionExample example);
|
|
||||||
}
|
|
@@ -1,121 +0,0 @@
|
|||||||
package net.sourceforge.guacamole.net.auth.mysql.dao;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import net.sourceforge.guacamole.net.auth.mysql.model.User;
|
|
||||||
import net.sourceforge.guacamole.net.auth.mysql.model.UserExample;
|
|
||||||
import net.sourceforge.guacamole.net.auth.mysql.model.UserWithBLOBs;
|
|
||||||
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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
int insert(UserWithBLOBs record);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table guacamole..guacamole_user
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
int insertSelective(UserWithBLOBs record);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table guacamole..guacamole_user
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
List<UserWithBLOBs> selectByExampleWithBLOBs(UserExample example);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table guacamole..guacamole_user
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 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 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
UserWithBLOBs selectByPrimaryKey(Integer user_id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table guacamole..guacamole_user
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
int updateByExampleSelective(@Param("record") UserWithBLOBs 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 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
int updateByExampleWithBLOBs(@Param("record") UserWithBLOBs 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 19 23:09:22 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 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
int updateByPrimaryKeySelective(UserWithBLOBs record);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table guacamole..guacamole_user
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
int updateByPrimaryKeyWithBLOBs(UserWithBLOBs record);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table guacamole..guacamole_user
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
int updateByPrimaryKey(User record);
|
|
||||||
}
|
|
@@ -1,72 +0,0 @@
|
|||||||
package net.sourceforge.guacamole.net.auth.mysql.dao;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import net.sourceforge.guacamole.net.auth.mysql.model.UserPermissionExample;
|
|
||||||
import net.sourceforge.guacamole.net.auth.mysql.model.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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
int updateByExample(@Param("record") UserPermissionKey record, @Param("example") UserPermissionExample example);
|
|
||||||
}
|
|
@@ -1,99 +0,0 @@
|
|||||||
package net.sourceforge.guacamole.net.auth.mysql.model;
|
|
||||||
|
|
||||||
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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
public void setConnection_name(String connection_name) {
|
|
||||||
this.connection_name = connection_name;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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 19 23:09:22 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 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
public void setProtocol(String protocol) {
|
|
||||||
this.protocol = protocol;
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,502 +0,0 @@
|
|||||||
package net.sourceforge.guacamole.net.auth.mysql.model;
|
|
||||||
|
|
||||||
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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,165 +0,0 @@
|
|||||||
package net.sourceforge.guacamole.net.auth.mysql.model;
|
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
public class ConnectionHistory {
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column guacamole..guacamole_connection_history.history_id
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
private Integer history_id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column guacamole..guacamole_connection_history.user_id
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
private Integer user_id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column guacamole..guacamole_connection_history.connection_id
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
private Integer connection_id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column guacamole..guacamole_connection_history.start_date
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
private Date start_date;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column guacamole..guacamole_connection_history.end_date
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
private Date end_date;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column guacamole..guacamole_connection_history.history_id
|
|
||||||
*
|
|
||||||
* @return the value of guacamole..guacamole_connection_history.history_id
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
public Integer getHistory_id() {
|
|
||||||
return history_id;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column guacamole..guacamole_connection_history.history_id
|
|
||||||
*
|
|
||||||
* @param history_id the value for guacamole..guacamole_connection_history.history_id
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
public void setHistory_id(Integer history_id) {
|
|
||||||
this.history_id = history_id;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column guacamole..guacamole_connection_history.user_id
|
|
||||||
*
|
|
||||||
* @return the value of guacamole..guacamole_connection_history.user_id
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 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_history.user_id
|
|
||||||
*
|
|
||||||
* @param user_id the value for guacamole..guacamole_connection_history.user_id
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 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_history.connection_id
|
|
||||||
*
|
|
||||||
* @return the value of guacamole..guacamole_connection_history.connection_id
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 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_history.connection_id
|
|
||||||
*
|
|
||||||
* @param connection_id the value for guacamole..guacamole_connection_history.connection_id
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 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_history.start_date
|
|
||||||
*
|
|
||||||
* @return the value of guacamole..guacamole_connection_history.start_date
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
public Date getStart_date() {
|
|
||||||
return start_date;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column guacamole..guacamole_connection_history.start_date
|
|
||||||
*
|
|
||||||
* @param start_date the value for guacamole..guacamole_connection_history.start_date
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
public void setStart_date(Date start_date) {
|
|
||||||
this.start_date = start_date;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method returns the value of the database column guacamole..guacamole_connection_history.end_date
|
|
||||||
*
|
|
||||||
* @return the value of guacamole..guacamole_connection_history.end_date
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
public Date getEnd_date() {
|
|
||||||
return end_date;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method sets the value of the database column guacamole..guacamole_connection_history.end_date
|
|
||||||
*
|
|
||||||
* @param end_date the value for guacamole..guacamole_connection_history.end_date
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
public void setEnd_date(Date end_date) {
|
|
||||||
this.end_date = end_date;
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,603 +0,0 @@
|
|||||||
package net.sourceforge.guacamole.net.auth.mysql.model;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Date;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public class ConnectionHistoryExample {
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database table guacamole..guacamole_connection_history
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
protected String orderByClause;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database table guacamole..guacamole_connection_history
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
protected boolean distinct;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database table guacamole..guacamole_connection_history
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
protected List<Criteria> oredCriteria;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table guacamole..guacamole_connection_history
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
public ConnectionHistoryExample() {
|
|
||||||
oredCriteria = new ArrayList<Criteria>();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table guacamole..guacamole_connection_history
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 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_history
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
public String getOrderByClause() {
|
|
||||||
return orderByClause;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table guacamole..guacamole_connection_history
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 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_history
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
public boolean isDistinct() {
|
|
||||||
return distinct;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This method was generated by MyBatis Generator.
|
|
||||||
* This method corresponds to the database table guacamole..guacamole_connection_history
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 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_history
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 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_history
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 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_history
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 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_history
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 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_history
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 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_history
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 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 andHistory_idIsNull() {
|
|
||||||
addCriterion("history_id is null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andHistory_idIsNotNull() {
|
|
||||||
addCriterion("history_id is not null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andHistory_idEqualTo(Integer value) {
|
|
||||||
addCriterion("history_id =", value, "history_id");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andHistory_idNotEqualTo(Integer value) {
|
|
||||||
addCriterion("history_id <>", value, "history_id");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andHistory_idGreaterThan(Integer value) {
|
|
||||||
addCriterion("history_id >", value, "history_id");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andHistory_idGreaterThanOrEqualTo(Integer value) {
|
|
||||||
addCriterion("history_id >=", value, "history_id");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andHistory_idLessThan(Integer value) {
|
|
||||||
addCriterion("history_id <", value, "history_id");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andHistory_idLessThanOrEqualTo(Integer value) {
|
|
||||||
addCriterion("history_id <=", value, "history_id");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andHistory_idIn(List<Integer> values) {
|
|
||||||
addCriterion("history_id in", values, "history_id");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andHistory_idNotIn(List<Integer> values) {
|
|
||||||
addCriterion("history_id not in", values, "history_id");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andHistory_idBetween(Integer value1, Integer value2) {
|
|
||||||
addCriterion("history_id between", value1, value2, "history_id");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andHistory_idNotBetween(Integer value1, Integer value2) {
|
|
||||||
addCriterion("history_id not between", value1, value2, "history_id");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
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 andStart_dateIsNull() {
|
|
||||||
addCriterion("start_date is null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andStart_dateIsNotNull() {
|
|
||||||
addCriterion("start_date is not null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andStart_dateEqualTo(Date value) {
|
|
||||||
addCriterion("start_date =", value, "start_date");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andStart_dateNotEqualTo(Date value) {
|
|
||||||
addCriterion("start_date <>", value, "start_date");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andStart_dateGreaterThan(Date value) {
|
|
||||||
addCriterion("start_date >", value, "start_date");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andStart_dateGreaterThanOrEqualTo(Date value) {
|
|
||||||
addCriterion("start_date >=", value, "start_date");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andStart_dateLessThan(Date value) {
|
|
||||||
addCriterion("start_date <", value, "start_date");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andStart_dateLessThanOrEqualTo(Date value) {
|
|
||||||
addCriterion("start_date <=", value, "start_date");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andStart_dateIn(List<Date> values) {
|
|
||||||
addCriterion("start_date in", values, "start_date");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andStart_dateNotIn(List<Date> values) {
|
|
||||||
addCriterion("start_date not in", values, "start_date");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andStart_dateBetween(Date value1, Date value2) {
|
|
||||||
addCriterion("start_date between", value1, value2, "start_date");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andStart_dateNotBetween(Date value1, Date value2) {
|
|
||||||
addCriterion("start_date not between", value1, value2, "start_date");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andEnd_dateIsNull() {
|
|
||||||
addCriterion("end_date is null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andEnd_dateIsNotNull() {
|
|
||||||
addCriterion("end_date is not null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andEnd_dateEqualTo(Date value) {
|
|
||||||
addCriterion("end_date =", value, "end_date");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andEnd_dateNotEqualTo(Date value) {
|
|
||||||
addCriterion("end_date <>", value, "end_date");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andEnd_dateGreaterThan(Date value) {
|
|
||||||
addCriterion("end_date >", value, "end_date");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andEnd_dateGreaterThanOrEqualTo(Date value) {
|
|
||||||
addCriterion("end_date >=", value, "end_date");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andEnd_dateLessThan(Date value) {
|
|
||||||
addCriterion("end_date <", value, "end_date");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andEnd_dateLessThanOrEqualTo(Date value) {
|
|
||||||
addCriterion("end_date <=", value, "end_date");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andEnd_dateIn(List<Date> values) {
|
|
||||||
addCriterion("end_date in", values, "end_date");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andEnd_dateNotIn(List<Date> values) {
|
|
||||||
addCriterion("end_date not in", values, "end_date");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andEnd_dateBetween(Date value1, Date value2) {
|
|
||||||
addCriterion("end_date between", value1, value2, "end_date");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andEnd_dateNotBetween(Date value1, Date value2) {
|
|
||||||
addCriterion("end_date not between", value1, value2, "end_date");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This class was generated by MyBatis Generator.
|
|
||||||
* This class corresponds to the database table guacamole..guacamole_connection_history
|
|
||||||
*
|
|
||||||
* @mbggenerated do_not_delete_during_merge Tue Feb 19 23:09:22 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_history
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,35 +0,0 @@
|
|||||||
package net.sourceforge.guacamole.net.auth.mysql.model;
|
|
||||||
|
|
||||||
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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
public void setParameter_value(String parameter_value) {
|
|
||||||
this.parameter_value = parameter_value;
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,502 +0,0 @@
|
|||||||
package net.sourceforge.guacamole.net.auth.mysql.model;
|
|
||||||
|
|
||||||
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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,67 +0,0 @@
|
|||||||
package net.sourceforge.guacamole.net.auth.mysql.model;
|
|
||||||
|
|
||||||
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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
public void setParameter_name(String parameter_name) {
|
|
||||||
this.parameter_name = parameter_name;
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,492 +0,0 @@
|
|||||||
package net.sourceforge.guacamole.net.auth.mysql.model;
|
|
||||||
|
|
||||||
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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,99 +0,0 @@
|
|||||||
package net.sourceforge.guacamole.net.auth.mysql.model;
|
|
||||||
|
|
||||||
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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
public void setPermission(String permission) {
|
|
||||||
this.permission = permission;
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,432 +0,0 @@
|
|||||||
package net.sourceforge.guacamole.net.auth.mysql.model;
|
|
||||||
|
|
||||||
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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,67 +0,0 @@
|
|||||||
package net.sourceforge.guacamole.net.auth.mysql.model;
|
|
||||||
|
|
||||||
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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
public void setPermission(String permission) {
|
|
||||||
this.permission = permission;
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,67 +0,0 @@
|
|||||||
package net.sourceforge.guacamole.net.auth.mysql.model;
|
|
||||||
|
|
||||||
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 19 23:09:22 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 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
private String username;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
public void setUsername(String username) {
|
|
||||||
this.username = username;
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,432 +0,0 @@
|
|||||||
package net.sourceforge.guacamole.net.auth.mysql.model;
|
|
||||||
|
|
||||||
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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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 19 23:09:22 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 19 23:09:22 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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,492 +0,0 @@
|
|||||||
package net.sourceforge.guacamole.net.auth.mysql.model;
|
|
||||||
|
|
||||||
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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,99 +0,0 @@
|
|||||||
package net.sourceforge.guacamole.net.auth.mysql.model;
|
|
||||||
|
|
||||||
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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
public void setPermission(String permission) {
|
|
||||||
this.permission = permission;
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,67 +0,0 @@
|
|||||||
package net.sourceforge.guacamole.net.auth.mysql.model;
|
|
||||||
|
|
||||||
public class UserWithBLOBs extends User {
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column guacamole..guacamole_user.password_hash
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
private byte[] password_hash;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This field was generated by MyBatis Generator.
|
|
||||||
* This field corresponds to the database column guacamole..guacamole_user.password_salt
|
|
||||||
*
|
|
||||||
* @mbggenerated Tue Feb 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
private byte[] password_salt;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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 19 23:09:22 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 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
public void setPassword_hash(byte[] password_hash) {
|
|
||||||
this.password_hash = password_hash;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
public byte[] 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 19 23:09:22 PST 2013
|
|
||||||
*/
|
|
||||||
public void setPassword_salt(byte[] password_salt) {
|
|
||||||
this.password_salt = password_salt;
|
|
||||||
}
|
|
||||||
}
|
|
@@ -0,0 +1,87 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE generatorConfiguration
|
||||||
|
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
|
||||||
|
|
||||||
|
<generatorConfiguration>
|
||||||
|
<context id="guacamoleTables" targetRuntime="MyBatis3">
|
||||||
|
|
||||||
|
<!-- MySQL JDBC driver class. -->
|
||||||
|
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
|
||||||
|
connectionURL="jdbc:mysql://127.0.0.1:3306"
|
||||||
|
userId="${guacamole.database.user}"
|
||||||
|
password="${guacamole.database.password}"/>
|
||||||
|
|
||||||
|
<javaModelGenerator
|
||||||
|
targetPackage="net.sourceforge.guacamole.net.auth.mysql.model"
|
||||||
|
targetProject="MAVEN"/>
|
||||||
|
|
||||||
|
<sqlMapGenerator
|
||||||
|
targetPackage="net.sourceforge.guacamole.net.auth.mysql.dao"
|
||||||
|
targetProject="MAVEN"/>
|
||||||
|
|
||||||
|
<javaClientGenerator type="XMLMAPPER"
|
||||||
|
targetPackage="net.sourceforge.guacamole.net.auth.mysql.dao"
|
||||||
|
targetProject="MAVEN"/>
|
||||||
|
|
||||||
|
<!-- TABLES -->
|
||||||
|
|
||||||
|
<table tableName="guacamole_connection"
|
||||||
|
catalog="${guacamole.database.catalog}"
|
||||||
|
schema="${guacamole.database.schema}"
|
||||||
|
domainObjectName="Connection" >
|
||||||
|
<property name="useActualColumnNames" value="true"/>
|
||||||
|
<property name="ignoreQualifiersAtRuntime" value="true"/>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<table tableName="guacamole_connection_parameter"
|
||||||
|
catalog="${guacamole.database.catalog}"
|
||||||
|
schema="${guacamole.database.schema}"
|
||||||
|
domainObjectName="ConnectionParameter" >
|
||||||
|
<property name="useActualColumnNames" value="true"/>
|
||||||
|
<property name="ignoreQualifiersAtRuntime" value="true"/>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<table tableName="guacamole_connection_permission"
|
||||||
|
catalog="${guacamole.database.catalog}"
|
||||||
|
schema="${guacamole.database.schema}"
|
||||||
|
domainObjectName="ConnectionPermission" >
|
||||||
|
<property name="useActualColumnNames" value="true"/>
|
||||||
|
<property name="ignoreQualifiersAtRuntime" value="true"/>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<table tableName="guacamole_system_permission"
|
||||||
|
catalog="${guacamole.database.catalog}"
|
||||||
|
schema="${guacamole.database.schema}"
|
||||||
|
domainObjectName="SystemPermission" >
|
||||||
|
<property name="useActualColumnNames" value="true"/>
|
||||||
|
<property name="ignoreQualifiersAtRuntime" value="true"/>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<table tableName="guacamole_user"
|
||||||
|
catalog="${guacamole.database.catalog}"
|
||||||
|
schema="${guacamole.database.schema}"
|
||||||
|
domainObjectName="User" >
|
||||||
|
<property name="useActualColumnNames" value="true"/>
|
||||||
|
<property name="ignoreQualifiersAtRuntime" value="true"/>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<table tableName="guacamole_user_permission"
|
||||||
|
catalog="${guacamole.database.catalog}"
|
||||||
|
schema="${guacamole.database.schema}"
|
||||||
|
domainObjectName="UserPermission" >
|
||||||
|
<property name="useActualColumnNames" value="true"/>
|
||||||
|
<property name="ignoreQualifiersAtRuntime" value="true"/>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<table tableName="guacamole_connection_history"
|
||||||
|
catalog="${guacamole.database.catalog}"
|
||||||
|
schema="${guacamole.database.schema}"
|
||||||
|
domainObjectName="ConnectionHistory" >
|
||||||
|
<property name="useActualColumnNames" value="true"/>
|
||||||
|
<property name="ignoreQualifiersAtRuntime" value="true"/>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</context>
|
||||||
|
</generatorConfiguration>
|
||||||
|
|
@@ -1,286 +0,0 @@
|
|||||||
<?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.ConnectionHistoryMapper" >
|
|
||||||
<resultMap id="BaseResultMap" type="net.sourceforge.guacamole.net.auth.mysql.model.ConnectionHistory" >
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
<id column="history_id" property="history_id" jdbcType="INTEGER" />
|
|
||||||
<result column="user_id" property="user_id" jdbcType="INTEGER" />
|
|
||||||
<result column="connection_id" property="connection_id" jdbcType="INTEGER" />
|
|
||||||
<result column="start_date" property="start_date" jdbcType="TIMESTAMP" />
|
|
||||||
<result column="end_date" property="end_date" jdbcType="TIMESTAMP" />
|
|
||||||
</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 19 23:09:22 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 19 23:09:22 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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
history_id, user_id, connection_id, start_date, end_date
|
|
||||||
</sql>
|
|
||||||
<select id="selectByExample" resultMap="BaseResultMap" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.ConnectionHistoryExample" >
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
select
|
|
||||||
<if test="distinct" >
|
|
||||||
distinct
|
|
||||||
</if>
|
|
||||||
<include refid="Base_Column_List" />
|
|
||||||
from guacamole_connection_history
|
|
||||||
<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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
select
|
|
||||||
<include refid="Base_Column_List" />
|
|
||||||
from guacamole_connection_history
|
|
||||||
where history_id = #{history_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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
delete from guacamole_connection_history
|
|
||||||
where history_id = #{history_id,jdbcType=INTEGER}
|
|
||||||
</delete>
|
|
||||||
<delete id="deleteByExample" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.ConnectionHistoryExample" >
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
delete from guacamole_connection_history
|
|
||||||
<if test="_parameter != null" >
|
|
||||||
<include refid="Example_Where_Clause" />
|
|
||||||
</if>
|
|
||||||
</delete>
|
|
||||||
<insert id="insert" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.ConnectionHistory" >
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
insert into guacamole_connection_history (history_id, user_id, connection_id,
|
|
||||||
start_date, end_date)
|
|
||||||
values (#{history_id,jdbcType=INTEGER}, #{user_id,jdbcType=INTEGER}, #{connection_id,jdbcType=INTEGER},
|
|
||||||
#{start_date,jdbcType=TIMESTAMP}, #{end_date,jdbcType=TIMESTAMP})
|
|
||||||
</insert>
|
|
||||||
<insert id="insertSelective" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.ConnectionHistory" >
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
insert into guacamole_connection_history
|
|
||||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
||||||
<if test="history_id != null" >
|
|
||||||
history_id,
|
|
||||||
</if>
|
|
||||||
<if test="user_id != null" >
|
|
||||||
user_id,
|
|
||||||
</if>
|
|
||||||
<if test="connection_id != null" >
|
|
||||||
connection_id,
|
|
||||||
</if>
|
|
||||||
<if test="start_date != null" >
|
|
||||||
start_date,
|
|
||||||
</if>
|
|
||||||
<if test="end_date != null" >
|
|
||||||
end_date,
|
|
||||||
</if>
|
|
||||||
</trim>
|
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
||||||
<if test="history_id != null" >
|
|
||||||
#{history_id,jdbcType=INTEGER},
|
|
||||||
</if>
|
|
||||||
<if test="user_id != null" >
|
|
||||||
#{user_id,jdbcType=INTEGER},
|
|
||||||
</if>
|
|
||||||
<if test="connection_id != null" >
|
|
||||||
#{connection_id,jdbcType=INTEGER},
|
|
||||||
</if>
|
|
||||||
<if test="start_date != null" >
|
|
||||||
#{start_date,jdbcType=TIMESTAMP},
|
|
||||||
</if>
|
|
||||||
<if test="end_date != null" >
|
|
||||||
#{end_date,jdbcType=TIMESTAMP},
|
|
||||||
</if>
|
|
||||||
</trim>
|
|
||||||
</insert>
|
|
||||||
<select id="countByExample" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.ConnectionHistoryExample" resultType="java.lang.Integer" >
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
select count(*) from guacamole_connection_history
|
|
||||||
<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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
update guacamole_connection_history
|
|
||||||
<set >
|
|
||||||
<if test="record.history_id != null" >
|
|
||||||
history_id = #{record.history_id,jdbcType=INTEGER},
|
|
||||||
</if>
|
|
||||||
<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.start_date != null" >
|
|
||||||
start_date = #{record.start_date,jdbcType=TIMESTAMP},
|
|
||||||
</if>
|
|
||||||
<if test="record.end_date != null" >
|
|
||||||
end_date = #{record.end_date,jdbcType=TIMESTAMP},
|
|
||||||
</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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
update guacamole_connection_history
|
|
||||||
set history_id = #{record.history_id,jdbcType=INTEGER},
|
|
||||||
user_id = #{record.user_id,jdbcType=INTEGER},
|
|
||||||
connection_id = #{record.connection_id,jdbcType=INTEGER},
|
|
||||||
start_date = #{record.start_date,jdbcType=TIMESTAMP},
|
|
||||||
end_date = #{record.end_date,jdbcType=TIMESTAMP}
|
|
||||||
<if test="_parameter != null" >
|
|
||||||
<include refid="Update_By_Example_Where_Clause" />
|
|
||||||
</if>
|
|
||||||
</update>
|
|
||||||
<update id="updateByPrimaryKeySelective" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.ConnectionHistory" >
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
update guacamole_connection_history
|
|
||||||
<set >
|
|
||||||
<if test="user_id != null" >
|
|
||||||
user_id = #{user_id,jdbcType=INTEGER},
|
|
||||||
</if>
|
|
||||||
<if test="connection_id != null" >
|
|
||||||
connection_id = #{connection_id,jdbcType=INTEGER},
|
|
||||||
</if>
|
|
||||||
<if test="start_date != null" >
|
|
||||||
start_date = #{start_date,jdbcType=TIMESTAMP},
|
|
||||||
</if>
|
|
||||||
<if test="end_date != null" >
|
|
||||||
end_date = #{end_date,jdbcType=TIMESTAMP},
|
|
||||||
</if>
|
|
||||||
</set>
|
|
||||||
where history_id = #{history_id,jdbcType=INTEGER}
|
|
||||||
</update>
|
|
||||||
<update id="updateByPrimaryKey" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.ConnectionHistory" >
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
update guacamole_connection_history
|
|
||||||
set user_id = #{user_id,jdbcType=INTEGER},
|
|
||||||
connection_id = #{connection_id,jdbcType=INTEGER},
|
|
||||||
start_date = #{start_date,jdbcType=TIMESTAMP},
|
|
||||||
end_date = #{end_date,jdbcType=TIMESTAMP}
|
|
||||||
where history_id = #{history_id,jdbcType=INTEGER}
|
|
||||||
</update>
|
|
||||||
</mapper>
|
|
@@ -1,259 +0,0 @@
|
|||||||
<?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.ConnectionMapper">
|
|
||||||
<resultMap id="BaseResultMap" type="net.sourceforge.guacamole.net.auth.mysql.model.Connection">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
<id column="connection_id" jdbcType="INTEGER" property="connection_id" />
|
|
||||||
<result column="connection_name" jdbcType="VARCHAR" property="connection_name" />
|
|
||||||
<result column="protocol" jdbcType="VARCHAR" property="protocol" />
|
|
||||||
</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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
<where>
|
|
||||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
||||||
<if test="criteria.valid">
|
|
||||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
||||||
<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 close=")" collection="criterion.value" item="listItem" open="(" 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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
<where>
|
|
||||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
||||||
<if test="criteria.valid">
|
|
||||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
||||||
<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 close=")" collection="criterion.value" item="listItem" open="(" 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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
connection_id, connection_name, protocol
|
|
||||||
</sql>
|
|
||||||
<select id="selectByExample" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.ConnectionExample" resultMap="BaseResultMap">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
select
|
|
||||||
<if test="distinct">
|
|
||||||
distinct
|
|
||||||
</if>
|
|
||||||
<include refid="Base_Column_List" />
|
|
||||||
from guacamole_connection
|
|
||||||
<if test="_parameter != null">
|
|
||||||
<include refid="Example_Where_Clause" />
|
|
||||||
</if>
|
|
||||||
<if test="orderByClause != null">
|
|
||||||
order by ${orderByClause}
|
|
||||||
</if>
|
|
||||||
</select>
|
|
||||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
select
|
|
||||||
<include refid="Base_Column_List" />
|
|
||||||
from 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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
delete from guacamole_connection
|
|
||||||
where connection_id = #{connection_id,jdbcType=INTEGER}
|
|
||||||
</delete>
|
|
||||||
<delete id="deleteByExample" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.ConnectionExample">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
delete from guacamole_connection
|
|
||||||
<if test="_parameter != null">
|
|
||||||
<include refid="Example_Where_Clause" />
|
|
||||||
</if>
|
|
||||||
</delete>
|
|
||||||
<insert id="insert" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.Connection">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
insert into guacamole_connection (connection_id, connection_name, protocol
|
|
||||||
)
|
|
||||||
values (#{connection_id,jdbcType=INTEGER}, #{connection_name,jdbcType=VARCHAR}, #{protocol,jdbcType=VARCHAR}
|
|
||||||
)
|
|
||||||
<selectKey keyProperty="connection_id" resultType="int" order="AFTER">
|
|
||||||
select last_insert_id();
|
|
||||||
</selectKey>
|
|
||||||
</insert>
|
|
||||||
<insert id="insertSelective" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.Connection">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
insert into 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.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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
select count(*) from 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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
update 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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
update 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.Connection">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
update 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.Connection">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
update guacamole_connection
|
|
||||||
set connection_name = #{connection_name,jdbcType=VARCHAR},
|
|
||||||
protocol = #{protocol,jdbcType=VARCHAR}
|
|
||||||
where connection_id = #{connection_id,jdbcType=INTEGER}
|
|
||||||
</update>
|
|
||||||
</mapper>
|
|
@@ -1,256 +0,0 @@
|
|||||||
<?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.ConnectionParameterMapper">
|
|
||||||
<resultMap id="BaseResultMap" type="net.sourceforge.guacamole.net.auth.mysql.model.ConnectionParameter">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
<id column="connection_id" jdbcType="INTEGER" property="connection_id" />
|
|
||||||
<id column="parameter_name" jdbcType="VARCHAR" property="parameter_name" />
|
|
||||||
<result column="parameter_value" jdbcType="VARCHAR" property="parameter_value" />
|
|
||||||
</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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
<where>
|
|
||||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
||||||
<if test="criteria.valid">
|
|
||||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
||||||
<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 close=")" collection="criterion.value" item="listItem" open="(" 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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
<where>
|
|
||||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
||||||
<if test="criteria.valid">
|
|
||||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
||||||
<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 close=")" collection="criterion.value" item="listItem" open="(" 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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
connection_id, parameter_name, parameter_value
|
|
||||||
</sql>
|
|
||||||
<select id="selectByExample" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.ConnectionParameterExample" resultMap="BaseResultMap">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
select
|
|
||||||
<if test="distinct">
|
|
||||||
distinct
|
|
||||||
</if>
|
|
||||||
<include refid="Base_Column_List" />
|
|
||||||
from 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" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.ConnectionParameterKey" resultMap="BaseResultMap">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
select
|
|
||||||
<include refid="Base_Column_List" />
|
|
||||||
from 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.ConnectionParameterKey">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
delete from 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.ConnectionParameterExample">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
delete from 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.ConnectionParameter">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
insert into 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.ConnectionParameter">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
insert into 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.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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
select count(*) from 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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
update 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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
update 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.ConnectionParameter">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
update 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.ConnectionParameter">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
update 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>
|
|
@@ -1,219 +0,0 @@
|
|||||||
<?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.ConnectionPermissionMapper">
|
|
||||||
<resultMap id="BaseResultMap" type="net.sourceforge.guacamole.net.auth.mysql.model.ConnectionPermissionKey">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
<id column="user_id" jdbcType="INTEGER" property="user_id" />
|
|
||||||
<id column="connection_id" jdbcType="INTEGER" property="connection_id" />
|
|
||||||
<id column="permission" jdbcType="CHAR" property="permission" />
|
|
||||||
</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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
<where>
|
|
||||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
||||||
<if test="criteria.valid">
|
|
||||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
||||||
<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 close=")" collection="criterion.value" item="listItem" open="(" 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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
<where>
|
|
||||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
||||||
<if test="criteria.valid">
|
|
||||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
||||||
<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 close=")" collection="criterion.value" item="listItem" open="(" 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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
user_id, connection_id, permission
|
|
||||||
</sql>
|
|
||||||
<select id="selectByExample" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.ConnectionPermissionExample" resultMap="BaseResultMap">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
select
|
|
||||||
<if test="distinct">
|
|
||||||
distinct
|
|
||||||
</if>
|
|
||||||
<include refid="Base_Column_List" />
|
|
||||||
from 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.ConnectionPermissionKey">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
delete from 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.ConnectionPermissionExample">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
delete from 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.ConnectionPermissionKey">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
insert into 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.ConnectionPermissionKey">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
insert into 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.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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
select count(*) from 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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
update 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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
update 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>
|
|
@@ -1,205 +0,0 @@
|
|||||||
<?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.SystemPermissionMapper">
|
|
||||||
<resultMap id="BaseResultMap" type="net.sourceforge.guacamole.net.auth.mysql.model.SystemPermissionKey">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
<id column="user_id" jdbcType="INTEGER" property="user_id" />
|
|
||||||
<id column="permission" jdbcType="CHAR" property="permission" />
|
|
||||||
</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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
<where>
|
|
||||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
||||||
<if test="criteria.valid">
|
|
||||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
||||||
<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 close=")" collection="criterion.value" item="listItem" open="(" 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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
<where>
|
|
||||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
||||||
<if test="criteria.valid">
|
|
||||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
||||||
<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 close=")" collection="criterion.value" item="listItem" open="(" 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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
user_id, permission
|
|
||||||
</sql>
|
|
||||||
<select id="selectByExample" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.SystemPermissionExample" resultMap="BaseResultMap">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
select
|
|
||||||
<if test="distinct">
|
|
||||||
distinct
|
|
||||||
</if>
|
|
||||||
<include refid="Base_Column_List" />
|
|
||||||
from 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.SystemPermissionKey">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
delete from 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.SystemPermissionExample">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
delete from 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.SystemPermissionKey">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
insert into 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.SystemPermissionKey">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
insert into 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.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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
select count(*) from 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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
update 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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
update 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>
|
|
@@ -1,335 +0,0 @@
|
|||||||
<?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.UserMapper">
|
|
||||||
<resultMap id="BaseResultMap" type="net.sourceforge.guacamole.net.auth.mysql.model.User">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
<id column="user_id" jdbcType="INTEGER" property="user_id" />
|
|
||||||
<result column="username" jdbcType="VARCHAR" property="username" />
|
|
||||||
</resultMap>
|
|
||||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="net.sourceforge.guacamole.net.auth.mysql.model.UserWithBLOBs">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
<result column="password_hash" jdbcType="BINARY" property="password_hash" />
|
|
||||||
<result column="password_salt" jdbcType="BINARY" property="password_salt" />
|
|
||||||
</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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
<where>
|
|
||||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
||||||
<if test="criteria.valid">
|
|
||||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
||||||
<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 close=")" collection="criterion.value" item="listItem" open="(" 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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
<where>
|
|
||||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
||||||
<if test="criteria.valid">
|
|
||||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
||||||
<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 close=")" collection="criterion.value" item="listItem" open="(" 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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
user_id, username
|
|
||||||
</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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
password_hash, password_salt
|
|
||||||
</sql>
|
|
||||||
<select id="selectByExampleWithBLOBs" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.UserExample" resultMap="ResultMapWithBLOBs">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
select
|
|
||||||
<if test="distinct">
|
|
||||||
distinct
|
|
||||||
</if>
|
|
||||||
<include refid="Base_Column_List" />
|
|
||||||
,
|
|
||||||
<include refid="Blob_Column_List" />
|
|
||||||
from guacamole_user
|
|
||||||
<if test="_parameter != null">
|
|
||||||
<include refid="Example_Where_Clause" />
|
|
||||||
</if>
|
|
||||||
<if test="orderByClause != null">
|
|
||||||
order by ${orderByClause}
|
|
||||||
</if>
|
|
||||||
</select>
|
|
||||||
<select id="selectByExample" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.UserExample" resultMap="BaseResultMap">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
select
|
|
||||||
<if test="distinct">
|
|
||||||
distinct
|
|
||||||
</if>
|
|
||||||
<include refid="Base_Column_List" />
|
|
||||||
from guacamole_user
|
|
||||||
<if test="_parameter != null">
|
|
||||||
<include refid="Example_Where_Clause" />
|
|
||||||
</if>
|
|
||||||
<if test="orderByClause != null">
|
|
||||||
order by ${orderByClause}
|
|
||||||
</if>
|
|
||||||
</select>
|
|
||||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
select
|
|
||||||
<include refid="Base_Column_List" />
|
|
||||||
,
|
|
||||||
<include refid="Blob_Column_List" />
|
|
||||||
from 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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
delete from guacamole_user
|
|
||||||
where user_id = #{user_id,jdbcType=INTEGER}
|
|
||||||
</delete>
|
|
||||||
<delete id="deleteByExample" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.UserExample">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
delete from guacamole_user
|
|
||||||
<if test="_parameter != null">
|
|
||||||
<include refid="Example_Where_Clause" />
|
|
||||||
</if>
|
|
||||||
</delete>
|
|
||||||
<insert id="insert" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.UserWithBLOBs">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
insert into guacamole_user (user_id, username, password_hash,
|
|
||||||
password_salt)
|
|
||||||
values (#{user_id,jdbcType=INTEGER}, #{username,jdbcType=VARCHAR}, #{password_hash,jdbcType=BINARY},
|
|
||||||
#{password_salt,jdbcType=BINARY})
|
|
||||||
<selectKey keyProperty="user_id" resultType="int" order="AFTER">
|
|
||||||
select last_insert_id();
|
|
||||||
</selectKey>
|
|
||||||
</insert>
|
|
||||||
<insert id="insertSelective" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.UserWithBLOBs">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
insert into guacamole_user
|
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="user_id != null">
|
|
||||||
user_id,
|
|
||||||
</if>
|
|
||||||
<if test="username != null">
|
|
||||||
username,
|
|
||||||
</if>
|
|
||||||
<if test="password_hash != null">
|
|
||||||
password_hash,
|
|
||||||
</if>
|
|
||||||
<if test="password_salt != null">
|
|
||||||
password_salt,
|
|
||||||
</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_hash != null">
|
|
||||||
#{password_hash,jdbcType=BINARY},
|
|
||||||
</if>
|
|
||||||
<if test="password_salt != null">
|
|
||||||
#{password_salt,jdbcType=BINARY},
|
|
||||||
</if>
|
|
||||||
</trim>
|
|
||||||
</insert>
|
|
||||||
<select id="countByExample" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
select count(*) from 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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
update 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_hash != null">
|
|
||||||
password_hash = #{record.password_hash,jdbcType=BINARY},
|
|
||||||
</if>
|
|
||||||
<if test="record.password_salt != null">
|
|
||||||
password_salt = #{record.password_salt,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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
update guacamole_user
|
|
||||||
set user_id = #{record.user_id,jdbcType=INTEGER},
|
|
||||||
username = #{record.username,jdbcType=VARCHAR},
|
|
||||||
password_hash = #{record.password_hash,jdbcType=BINARY},
|
|
||||||
password_salt = #{record.password_salt,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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
update guacamole_user
|
|
||||||
set user_id = #{record.user_id,jdbcType=INTEGER},
|
|
||||||
username = #{record.username,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.UserWithBLOBs">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
update guacamole_user
|
|
||||||
<set>
|
|
||||||
<if test="username != null">
|
|
||||||
username = #{username,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="password_hash != null">
|
|
||||||
password_hash = #{password_hash,jdbcType=BINARY},
|
|
||||||
</if>
|
|
||||||
<if test="password_salt != null">
|
|
||||||
password_salt = #{password_salt,jdbcType=BINARY},
|
|
||||||
</if>
|
|
||||||
</set>
|
|
||||||
where user_id = #{user_id,jdbcType=INTEGER}
|
|
||||||
</update>
|
|
||||||
<update id="updateByPrimaryKeyWithBLOBs" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.UserWithBLOBs">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
update guacamole_user
|
|
||||||
set username = #{username,jdbcType=VARCHAR},
|
|
||||||
password_hash = #{password_hash,jdbcType=BINARY},
|
|
||||||
password_salt = #{password_salt,jdbcType=BINARY}
|
|
||||||
where user_id = #{user_id,jdbcType=INTEGER}
|
|
||||||
</update>
|
|
||||||
<update id="updateByPrimaryKey" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.User">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
update guacamole_user
|
|
||||||
set username = #{username,jdbcType=VARCHAR}
|
|
||||||
where user_id = #{user_id,jdbcType=INTEGER}
|
|
||||||
</update>
|
|
||||||
</mapper>
|
|
@@ -1,219 +0,0 @@
|
|||||||
<?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.UserPermissionMapper">
|
|
||||||
<resultMap id="BaseResultMap" type="net.sourceforge.guacamole.net.auth.mysql.model.UserPermissionKey">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
<id column="user_id" jdbcType="INTEGER" property="user_id" />
|
|
||||||
<id column="affected_user_id" jdbcType="INTEGER" property="affected_user_id" />
|
|
||||||
<id column="permission" jdbcType="CHAR" property="permission" />
|
|
||||||
</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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
<where>
|
|
||||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
||||||
<if test="criteria.valid">
|
|
||||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
||||||
<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 close=")" collection="criterion.value" item="listItem" open="(" 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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
<where>
|
|
||||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
||||||
<if test="criteria.valid">
|
|
||||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
||||||
<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 close=")" collection="criterion.value" item="listItem" open="(" 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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
user_id, affected_user_id, permission
|
|
||||||
</sql>
|
|
||||||
<select id="selectByExample" parameterType="net.sourceforge.guacamole.net.auth.mysql.model.UserPermissionExample" resultMap="BaseResultMap">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
select
|
|
||||||
<if test="distinct">
|
|
||||||
distinct
|
|
||||||
</if>
|
|
||||||
<include refid="Base_Column_List" />
|
|
||||||
from 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.UserPermissionKey">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
delete from 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.UserPermissionExample">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
delete from 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.UserPermissionKey">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
insert into 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.UserPermissionKey">
|
|
||||||
<!--
|
|
||||||
WARNING - @mbggenerated
|
|
||||||
This element is automatically generated by MyBatis Generator, do not modify.
|
|
||||||
This element was generated on Tue Feb 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
insert into 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.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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
select count(*) from 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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
update 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 19 23:09:22 PST 2013.
|
|
||||||
-->
|
|
||||||
update 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>
|
|
Reference in New Issue
Block a user