Removed broken JAX RS example
This commit is contained in:
parent
895a23ea93
commit
67d7cf5b95
2
jOOQ-examples/jOOQ-jax-rs-example/.gitignore
vendored
2
jOOQ-examples/jOOQ-jax-rs-example/.gitignore
vendored
@ -1,2 +0,0 @@
|
||||
/target
|
||||
/target
|
||||
@ -1,19 +0,0 @@
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
Other licenses:
|
||||
-----------------------------------------------------------------------------
|
||||
Commercial licenses for this work are available. These replace the above
|
||||
ASL 2.0 and offer limited warranties, support, maintenance, and commercial
|
||||
database integrations.
|
||||
|
||||
For more information, please visit: http://www.jooq.org/licenses
|
||||
@ -1,127 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>org.jooq</groupId>
|
||||
<artifactId>jooq-jax-rs-example</artifactId>
|
||||
<packaging>war</packaging>
|
||||
<version>1.0</version>
|
||||
|
||||
<properties>
|
||||
<org.jooq.version>3.11.0-SNAPSHOT</org.jooq.version>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.7.0</version>
|
||||
<configuration>
|
||||
<source>1.7</source>
|
||||
<target>1.7</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.mortbay.jetty</groupId>
|
||||
<artifactId>maven-jetty-plugin</artifactId>
|
||||
<version>6.1.26</version>
|
||||
<configuration>
|
||||
<reload>manual</reload>
|
||||
<stopKey>stop</stopKey>
|
||||
<stopPort>9966</stopPort>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.jooq</groupId>
|
||||
<artifactId>jooq-codegen-maven</artifactId>
|
||||
<version>${org.jooq.version}</version>
|
||||
|
||||
<executions>
|
||||
<execution>
|
||||
<id>generate-postgres</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>generate</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<jdbc>
|
||||
<driver>org.postgresql.Driver</driver>
|
||||
<url>jdbc:postgresql:postgres</url>
|
||||
<user>postgres</user>
|
||||
<password>test</password>
|
||||
</jdbc>
|
||||
<generator>
|
||||
<database>
|
||||
<name>org.jooq.util.postgres.PostgresDatabase</name>
|
||||
<includes>.*</includes>
|
||||
<excludes></excludes>
|
||||
<dateAsTimestamp>true</dateAsTimestamp>
|
||||
<inputSchema>license_server</inputSchema>
|
||||
</database>
|
||||
<generate>
|
||||
<deprecated>false</deprecated>
|
||||
<instanceFields>true</instanceFields>
|
||||
</generate>
|
||||
<target>
|
||||
<packageName>org.jooq.example.jaxrs.db</packageName>
|
||||
<directory>src/main/java</directory>
|
||||
</target>
|
||||
</generator>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.postgresql</groupId>
|
||||
<artifactId>postgresql</artifactId>
|
||||
<version>9.4.1208</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.sun.jersey</groupId>
|
||||
<artifactId>jersey-server</artifactId>
|
||||
<version>1.18.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.sun.jersey</groupId>
|
||||
<artifactId>jersey-json</artifactId>
|
||||
<version>1.18.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.sun.jersey.contribs</groupId>
|
||||
<artifactId>jersey-spring</artifactId>
|
||||
<version>1.18.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.servlet</groupId>
|
||||
<artifactId>servlet-api</artifactId>
|
||||
<version>2.5</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.jooq</groupId>
|
||||
<artifactId>jooq</artifactId>
|
||||
<version>${org.jooq.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.postgresql</groupId>
|
||||
<artifactId>postgresql</artifactId>
|
||||
<version>9.4.1208</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>log4j</groupId>
|
||||
<artifactId>log4j</artifactId>
|
||||
<version>1.2.16</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@ -1,33 +0,0 @@
|
||||
CREATE OR REPLACE FUNCTION LICENSE_SERVER.GENERATE_KEY(
|
||||
IN license_date TIMESTAMP WITH TIME ZONE,
|
||||
IN email TEXT
|
||||
) RETURNS VARCHAR
|
||||
AS $$
|
||||
BEGIN
|
||||
RETURN 'license-key';
|
||||
END;
|
||||
$$ LANGUAGE PLPGSQL;
|
||||
|
||||
CREATE TABLE LICENSE_SERVER.LICENSE (
|
||||
ID SERIAL8 NOT NULL,
|
||||
|
||||
LICENSE_DATE TIMESTAMP NOT NULL,
|
||||
LICENSEE TEXT NOT NULL,
|
||||
LICENSE TEXT NOT NULL,
|
||||
VERSION VARCHAR(50) NOT NULL DEFAULT '.*',
|
||||
|
||||
CONSTRAINT PK_LICENSE PRIMARY KEY (ID),
|
||||
CONSTRAINT UK_LICENSE UNIQUE (LICENSE)
|
||||
);
|
||||
|
||||
CREATE TABLE LICENSE_SERVER.LOG_VERIFY (
|
||||
ID SERIAL8 NOT NULL,
|
||||
|
||||
LICENSEE TEXT NOT NULL,
|
||||
LICENSE TEXT NOT NULL,
|
||||
REQUEST_IP VARCHAR(50) NOT NULL,
|
||||
MATCH BOOLEAN NOT NULL,
|
||||
VERSION VARCHAR(50) NOT NULL,
|
||||
|
||||
CONSTRAINT PK_LOG_VERIFY PRIMARY KEY (ID)
|
||||
);
|
||||
@ -1,185 +0,0 @@
|
||||
/*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* Other licenses:
|
||||
* -----------------------------------------------------------------------------
|
||||
* Commercial licenses for this work are available. These replace the above
|
||||
* ASL 2.0 and offer limited warranties, support, maintenance, and commercial
|
||||
* database integrations.
|
||||
*
|
||||
* For more information, please visit: http://www.jooq.org/licenses
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
package org.jooq.example.jaxrs;
|
||||
|
||||
import static java.sql.DriverManager.getConnection;
|
||||
import static org.jooq.example.jaxrs.db.Routines.generateKey;
|
||||
import static org.jooq.example.jaxrs.db.Tables.LICENSE;
|
||||
import static org.jooq.example.jaxrs.db.Tables.LOG_VERIFY;
|
||||
import static org.jooq.impl.DSL.field;
|
||||
import static org.jooq.impl.DSL.inline;
|
||||
import static org.jooq.impl.DSL.selectCount;
|
||||
import static org.jooq.impl.DSL.val;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.Produces;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.Context;
|
||||
import javax.ws.rs.core.Response;
|
||||
import javax.ws.rs.core.Response.Status;
|
||||
|
||||
import org.jooq.DSLContext;
|
||||
import org.jooq.SQLDialect;
|
||||
import org.jooq.conf.Settings;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.DefaultConfiguration;
|
||||
import org.jooq.impl.DefaultConnectionProvider;
|
||||
import org.jooq.tools.jdbc.JDBCUtils;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
|
||||
/**
|
||||
* The license server.
|
||||
*/
|
||||
@Path("/license/")
|
||||
@Component
|
||||
@Scope("request")
|
||||
public class LicenseService {
|
||||
|
||||
/**
|
||||
* <code>/license/generate</code> generates and returns a new license key.
|
||||
*
|
||||
* @param mail The input email address of the licensee.
|
||||
*/
|
||||
@GET
|
||||
@Produces("text/plain")
|
||||
@Path("/generate")
|
||||
public String generate(
|
||||
final @QueryParam("mail") String mail
|
||||
) {
|
||||
return run(new CtxRunnable() {
|
||||
|
||||
@Override
|
||||
public String run(DSLContext ctx) {
|
||||
Timestamp licenseDate = new Timestamp(System.currentTimeMillis());
|
||||
|
||||
return
|
||||
ctx.insertInto(LICENSE)
|
||||
.set(LICENSE.LICENSE_, generateKey(inline(licenseDate), inline(mail)))
|
||||
.set(LICENSE.LICENSE_DATE, licenseDate)
|
||||
.set(LICENSE.LICENSEE, mail)
|
||||
.returning()
|
||||
.fetchOne()
|
||||
.getLicense();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* <code>/license/verify</code> checks if a given licensee has access to version using a license.
|
||||
*
|
||||
* @param request The servlet request from the JAX-RS context.
|
||||
* @param mail The input email address of the licensee.
|
||||
* @param license The license used by the licensee.
|
||||
* @param version The product version being accessed.
|
||||
*/
|
||||
@GET
|
||||
@Produces("text/plain")
|
||||
@Path("/verify")
|
||||
public String verify(
|
||||
final @Context HttpServletRequest request,
|
||||
final @QueryParam("mail") String mail,
|
||||
final @QueryParam("license") String license,
|
||||
final @QueryParam("version") String version
|
||||
) {
|
||||
return run(new CtxRunnable() {
|
||||
@Override
|
||||
public String run(DSLContext ctx) {
|
||||
String v = (version == null || version.equals("")) ? "" : version;
|
||||
|
||||
return
|
||||
ctx.insertInto(LOG_VERIFY)
|
||||
.set(LOG_VERIFY.LICENSE, license)
|
||||
.set(LOG_VERIFY.LICENSEE, mail)
|
||||
.set(LOG_VERIFY.REQUEST_IP, request.getRemoteAddr())
|
||||
.set(LOG_VERIFY.MATCH, field(
|
||||
selectCount()
|
||||
.from(LICENSE)
|
||||
.where(LICENSE.LICENSEE.eq(mail))
|
||||
.and(LICENSE.LICENSE_.eq(license))
|
||||
.and(val(v).likeRegex(LICENSE.VERSION))
|
||||
.asField().gt(0)))
|
||||
.set(LOG_VERIFY.VERSION, v)
|
||||
.returning(LOG_VERIFY.MATCH)
|
||||
.fetchOne()
|
||||
.get(LOG_VERIFY.MATCH, String.class);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Utilities
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* This method encapsulates a transaction and initialises a jOOQ DSLcontext.
|
||||
* This could also be achieved with Spring and DBCP for connection pooling.
|
||||
*/
|
||||
private String run(CtxRunnable runnable) {
|
||||
Connection c = null;
|
||||
|
||||
try {
|
||||
Class.forName("org.postgresql.Driver");
|
||||
c = getConnection("jdbc:postgresql:postgres", "postgres", System.getProperty("pw", "test"));
|
||||
DSLContext ctx = DSL.using(new DefaultConfiguration()
|
||||
.set(new DefaultConnectionProvider(c))
|
||||
.set(SQLDialect.POSTGRES)
|
||||
.set(new Settings().withExecuteLogging(false)));
|
||||
|
||||
return runnable.run(ctx);
|
||||
}
|
||||
catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
Response.status(Status.SERVICE_UNAVAILABLE);
|
||||
return "Service Unavailable - Please contact support@datageekery.com for help";
|
||||
}
|
||||
finally {
|
||||
JDBCUtils.safeClose(c);
|
||||
}
|
||||
}
|
||||
|
||||
private interface CtxRunnable {
|
||||
String run(DSLContext ctx);
|
||||
}
|
||||
}
|
||||
@ -1,51 +0,0 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.example.jaxrs.db;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*
|
||||
* A class modelling foreign key relationships between tables of the <code>license_server</code>
|
||||
* schema
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.1.0" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Keys {
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// IDENTITY definitions
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
public static final org.jooq.Identity<org.jooq.example.jaxrs.db.tables.records.LicenseRecord, java.lang.Long> IDENTITY_LICENSE = Identities0.IDENTITY_LICENSE;
|
||||
public static final org.jooq.Identity<org.jooq.example.jaxrs.db.tables.records.LogVerifyRecord, java.lang.Long> IDENTITY_LOG_VERIFY = Identities0.IDENTITY_LOG_VERIFY;
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// UNIQUE and PRIMARY KEY definitions
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
public static final org.jooq.UniqueKey<org.jooq.example.jaxrs.db.tables.records.LicenseRecord> PK_LICENSE = UniqueKeys0.PK_LICENSE;
|
||||
public static final org.jooq.UniqueKey<org.jooq.example.jaxrs.db.tables.records.LicenseRecord> UK_LICENSE = UniqueKeys0.UK_LICENSE;
|
||||
public static final org.jooq.UniqueKey<org.jooq.example.jaxrs.db.tables.records.LogVerifyRecord> PK_LOG_VERIFY = UniqueKeys0.PK_LOG_VERIFY;
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// FOREIGN KEY definitions
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// [#1459] distribute members to avoid static initialisers > 64kb
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
private static class Identities0 extends org.jooq.impl.AbstractKeys {
|
||||
public static org.jooq.Identity<org.jooq.example.jaxrs.db.tables.records.LicenseRecord, java.lang.Long> IDENTITY_LICENSE = createIdentity(org.jooq.example.jaxrs.db.tables.License.LICENSE, org.jooq.example.jaxrs.db.tables.License.LICENSE.ID);
|
||||
public static org.jooq.Identity<org.jooq.example.jaxrs.db.tables.records.LogVerifyRecord, java.lang.Long> IDENTITY_LOG_VERIFY = createIdentity(org.jooq.example.jaxrs.db.tables.LogVerify.LOG_VERIFY, org.jooq.example.jaxrs.db.tables.LogVerify.LOG_VERIFY.ID);
|
||||
}
|
||||
|
||||
private static class UniqueKeys0 extends org.jooq.impl.AbstractKeys {
|
||||
public static final org.jooq.UniqueKey<org.jooq.example.jaxrs.db.tables.records.LicenseRecord> PK_LICENSE = createUniqueKey(org.jooq.example.jaxrs.db.tables.License.LICENSE, org.jooq.example.jaxrs.db.tables.License.LICENSE.ID);
|
||||
public static final org.jooq.UniqueKey<org.jooq.example.jaxrs.db.tables.records.LicenseRecord> UK_LICENSE = createUniqueKey(org.jooq.example.jaxrs.db.tables.License.LICENSE, org.jooq.example.jaxrs.db.tables.License.LICENSE.LICENSE_);
|
||||
public static final org.jooq.UniqueKey<org.jooq.example.jaxrs.db.tables.records.LogVerifyRecord> PK_LOG_VERIFY = createUniqueKey(org.jooq.example.jaxrs.db.tables.LogVerify.LOG_VERIFY, org.jooq.example.jaxrs.db.tables.LogVerify.LOG_VERIFY.ID);
|
||||
}
|
||||
}
|
||||
@ -1,53 +0,0 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.example.jaxrs.db;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.1.0" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class LicenseServer extends org.jooq.impl.SchemaImpl {
|
||||
|
||||
private static final long serialVersionUID = -1750632487;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>license_server</code>
|
||||
*/
|
||||
public static final LicenseServer LICENSE_SERVER = new LicenseServer();
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private LicenseServer() {
|
||||
super("license_server");
|
||||
}
|
||||
|
||||
@Override
|
||||
public final java.util.List<org.jooq.Sequence<?>> getSequences() {
|
||||
java.util.List result = new java.util.ArrayList();
|
||||
result.addAll(getSequences0());
|
||||
return result;
|
||||
}
|
||||
|
||||
private final java.util.List<org.jooq.Sequence<?>> getSequences0() {
|
||||
return java.util.Arrays.<org.jooq.Sequence<?>>asList(
|
||||
org.jooq.example.jaxrs.db.Sequences.LICENSE_ID_SEQ,
|
||||
org.jooq.example.jaxrs.db.Sequences.LOG_VERIFY_ID_SEQ);
|
||||
}
|
||||
|
||||
@Override
|
||||
public final java.util.List<org.jooq.Table<?>> getTables() {
|
||||
java.util.List result = new java.util.ArrayList();
|
||||
result.addAll(getTables0());
|
||||
return result;
|
||||
}
|
||||
|
||||
private final java.util.List<org.jooq.Table<?>> getTables0() {
|
||||
return java.util.Arrays.<org.jooq.Table<?>>asList(
|
||||
org.jooq.example.jaxrs.db.tables.License.LICENSE,
|
||||
org.jooq.example.jaxrs.db.tables.LogVerify.LOG_VERIFY);
|
||||
}
|
||||
}
|
||||
@ -1,49 +0,0 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.example.jaxrs.db;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*
|
||||
* Convenience access to all stored procedures and functions in license_server
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.1.0" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Routines {
|
||||
|
||||
/**
|
||||
* Call <code>license_server.generate_key</code>
|
||||
*/
|
||||
public static java.lang.String generateKey(org.jooq.Configuration configuration, java.sql.Timestamp licenseDate, java.lang.String email) {
|
||||
org.jooq.example.jaxrs.db.routines.GenerateKey f = new org.jooq.example.jaxrs.db.routines.GenerateKey();
|
||||
f.setLicenseDate(licenseDate);
|
||||
f.setEmail(email);
|
||||
|
||||
f.execute(configuration);
|
||||
return f.getReturnValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get <code>license_server.generate_key</code> as a field
|
||||
*/
|
||||
public static org.jooq.Field<java.lang.String> generateKey(java.sql.Timestamp licenseDate, java.lang.String email) {
|
||||
org.jooq.example.jaxrs.db.routines.GenerateKey f = new org.jooq.example.jaxrs.db.routines.GenerateKey();
|
||||
f.setLicenseDate(licenseDate);
|
||||
f.setEmail(email);
|
||||
|
||||
return f.asField();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get <code>license_server.generate_key</code> as a field
|
||||
*/
|
||||
public static org.jooq.Field<java.lang.String> generateKey(org.jooq.Field<java.sql.Timestamp> licenseDate, org.jooq.Field<java.lang.String> email) {
|
||||
org.jooq.example.jaxrs.db.routines.GenerateKey f = new org.jooq.example.jaxrs.db.routines.GenerateKey();
|
||||
f.setLicenseDate(licenseDate);
|
||||
f.setEmail(email);
|
||||
|
||||
return f.asField();
|
||||
}
|
||||
}
|
||||
@ -1,25 +0,0 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.example.jaxrs.db;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*
|
||||
* Convenience access to all sequences in license_server
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.1.0" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Sequences {
|
||||
|
||||
/**
|
||||
* The sequence <code>license_server.license_id_seq</code>
|
||||
*/
|
||||
public static final org.jooq.Sequence<java.lang.Long> LICENSE_ID_SEQ = new org.jooq.impl.SequenceImpl<java.lang.Long>("license_id_seq", org.jooq.example.jaxrs.db.LicenseServer.LICENSE_SERVER, org.jooq.impl.SQLDataType.BIGINT);
|
||||
|
||||
/**
|
||||
* The sequence <code>license_server.log_verify_id_seq</code>
|
||||
*/
|
||||
public static final org.jooq.Sequence<java.lang.Long> LOG_VERIFY_ID_SEQ = new org.jooq.impl.SequenceImpl<java.lang.Long>("log_verify_id_seq", org.jooq.example.jaxrs.db.LicenseServer.LICENSE_SERVER, org.jooq.impl.SQLDataType.BIGINT);
|
||||
}
|
||||
@ -1,25 +0,0 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.example.jaxrs.db;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*
|
||||
* Convenience access to all tables in license_server
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.1.0" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Tables {
|
||||
|
||||
/**
|
||||
* The table license_server.license
|
||||
*/
|
||||
public static final org.jooq.example.jaxrs.db.tables.License LICENSE = org.jooq.example.jaxrs.db.tables.License.LICENSE;
|
||||
|
||||
/**
|
||||
* The table license_server.log_verify
|
||||
*/
|
||||
public static final org.jooq.example.jaxrs.db.tables.LogVerify LOG_VERIFY = org.jooq.example.jaxrs.db.tables.LogVerify.LOG_VERIFY;
|
||||
}
|
||||
@ -1,69 +0,0 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.example.jaxrs.db.routines;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.1.0" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class GenerateKey extends org.jooq.impl.AbstractRoutine<java.lang.String> {
|
||||
|
||||
private static final long serialVersionUID = -2093593663;
|
||||
|
||||
/**
|
||||
* The parameter <code>license_server.generate_key.RETURN_VALUE</code>.
|
||||
*/
|
||||
public static final org.jooq.Parameter<java.lang.String> RETURN_VALUE = createParameter("RETURN_VALUE", org.jooq.impl.SQLDataType.VARCHAR);
|
||||
|
||||
/**
|
||||
* The parameter <code>license_server.generate_key.license_date</code>.
|
||||
*/
|
||||
public static final org.jooq.Parameter<java.sql.Timestamp> LICENSE_DATE = createParameter("license_date", org.jooq.impl.SQLDataType.TIMESTAMP);
|
||||
|
||||
/**
|
||||
* The parameter <code>license_server.generate_key.email</code>.
|
||||
*/
|
||||
public static final org.jooq.Parameter<java.lang.String> EMAIL = createParameter("email", org.jooq.impl.SQLDataType.CLOB);
|
||||
|
||||
/**
|
||||
* Create a new routine call instance
|
||||
*/
|
||||
public GenerateKey() {
|
||||
super("generate_key", org.jooq.example.jaxrs.db.LicenseServer.LICENSE_SERVER, org.jooq.impl.SQLDataType.VARCHAR);
|
||||
|
||||
setReturnParameter(RETURN_VALUE);
|
||||
addInParameter(LICENSE_DATE);
|
||||
addInParameter(EMAIL);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the <code>license_date</code> parameter IN value to the routine
|
||||
*/
|
||||
public void setLicenseDate(java.sql.Timestamp value) {
|
||||
setValue(org.jooq.example.jaxrs.db.routines.GenerateKey.LICENSE_DATE, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the <code>license_date</code> parameter to the function to be used with a {@link org.jooq.Select} statement
|
||||
*/
|
||||
public void setLicenseDate(org.jooq.Field<java.sql.Timestamp> field) {
|
||||
setField(LICENSE_DATE, field);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the <code>email</code> parameter IN value to the routine
|
||||
*/
|
||||
public void setEmail(java.lang.String value) {
|
||||
setValue(org.jooq.example.jaxrs.db.routines.GenerateKey.EMAIL, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the <code>email</code> parameter to the function to be used with a {@link org.jooq.Select} statement
|
||||
*/
|
||||
public void setEmail(org.jooq.Field<java.lang.String> field) {
|
||||
setField(EMAIL, field);
|
||||
}
|
||||
}
|
||||
@ -1,99 +0,0 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.example.jaxrs.db.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.1.0" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class License extends org.jooq.impl.TableImpl<org.jooq.example.jaxrs.db.tables.records.LicenseRecord> {
|
||||
|
||||
private static final long serialVersionUID = -1374757615;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>license_server.license</code>
|
||||
*/
|
||||
public static final org.jooq.example.jaxrs.db.tables.License LICENSE = new org.jooq.example.jaxrs.db.tables.License();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<org.jooq.example.jaxrs.db.tables.records.LicenseRecord> getRecordType() {
|
||||
return org.jooq.example.jaxrs.db.tables.records.LicenseRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>license_server.license.id</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.example.jaxrs.db.tables.records.LicenseRecord, java.lang.Long> ID = createField("id", org.jooq.impl.SQLDataType.BIGINT, this);
|
||||
|
||||
/**
|
||||
* The column <code>license_server.license.license_date</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.example.jaxrs.db.tables.records.LicenseRecord, java.sql.Timestamp> LICENSE_DATE = createField("license_date", org.jooq.impl.SQLDataType.TIMESTAMP, this);
|
||||
|
||||
/**
|
||||
* The column <code>license_server.license.licensee</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.example.jaxrs.db.tables.records.LicenseRecord, java.lang.String> LICENSEE = createField("licensee", org.jooq.impl.SQLDataType.CLOB, this);
|
||||
|
||||
/**
|
||||
* The column <code>license_server.license.license</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.example.jaxrs.db.tables.records.LicenseRecord, java.lang.String> LICENSE_ = createField("license", org.jooq.impl.SQLDataType.CLOB, this);
|
||||
|
||||
/**
|
||||
* The column <code>license_server.license.version</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.example.jaxrs.db.tables.records.LicenseRecord, java.lang.String> VERSION = createField("version", org.jooq.impl.SQLDataType.VARCHAR.length(50), this);
|
||||
|
||||
/**
|
||||
* Create a <code>license_server.license</code> table reference
|
||||
*/
|
||||
public License() {
|
||||
super("license", org.jooq.example.jaxrs.db.LicenseServer.LICENSE_SERVER);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>license_server.license</code> table reference
|
||||
*/
|
||||
public License(java.lang.String alias) {
|
||||
super(alias, org.jooq.example.jaxrs.db.LicenseServer.LICENSE_SERVER, org.jooq.example.jaxrs.db.tables.License.LICENSE);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Identity<org.jooq.example.jaxrs.db.tables.records.LicenseRecord, java.lang.Long> getIdentity() {
|
||||
return org.jooq.example.jaxrs.db.Keys.IDENTITY_LICENSE;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<org.jooq.example.jaxrs.db.tables.records.LicenseRecord> getPrimaryKey() {
|
||||
return org.jooq.example.jaxrs.db.Keys.PK_LICENSE;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<org.jooq.example.jaxrs.db.tables.records.LicenseRecord>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<org.jooq.example.jaxrs.db.tables.records.LicenseRecord>>asList(org.jooq.example.jaxrs.db.Keys.PK_LICENSE, org.jooq.example.jaxrs.db.Keys.UK_LICENSE);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.example.jaxrs.db.tables.License as(java.lang.String alias) {
|
||||
return new org.jooq.example.jaxrs.db.tables.License(alias);
|
||||
}
|
||||
}
|
||||
@ -1,104 +0,0 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.example.jaxrs.db.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.1.0" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class LogVerify extends org.jooq.impl.TableImpl<org.jooq.example.jaxrs.db.tables.records.LogVerifyRecord> {
|
||||
|
||||
private static final long serialVersionUID = 475379908;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>license_server.log_verify</code>
|
||||
*/
|
||||
public static final org.jooq.example.jaxrs.db.tables.LogVerify LOG_VERIFY = new org.jooq.example.jaxrs.db.tables.LogVerify();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<org.jooq.example.jaxrs.db.tables.records.LogVerifyRecord> getRecordType() {
|
||||
return org.jooq.example.jaxrs.db.tables.records.LogVerifyRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>license_server.log_verify.id</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.example.jaxrs.db.tables.records.LogVerifyRecord, java.lang.Long> ID = createField("id", org.jooq.impl.SQLDataType.BIGINT, this);
|
||||
|
||||
/**
|
||||
* The column <code>license_server.log_verify.licensee</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.example.jaxrs.db.tables.records.LogVerifyRecord, java.lang.String> LICENSEE = createField("licensee", org.jooq.impl.SQLDataType.CLOB, this);
|
||||
|
||||
/**
|
||||
* The column <code>license_server.log_verify.license</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.example.jaxrs.db.tables.records.LogVerifyRecord, java.lang.String> LICENSE = createField("license", org.jooq.impl.SQLDataType.CLOB, this);
|
||||
|
||||
/**
|
||||
* The column <code>license_server.log_verify.request_ip</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.example.jaxrs.db.tables.records.LogVerifyRecord, java.lang.String> REQUEST_IP = createField("request_ip", org.jooq.impl.SQLDataType.VARCHAR.length(50), this);
|
||||
|
||||
/**
|
||||
* The column <code>license_server.log_verify.version</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.example.jaxrs.db.tables.records.LogVerifyRecord, java.lang.String> VERSION = createField("version", org.jooq.impl.SQLDataType.VARCHAR.length(50), this);
|
||||
|
||||
/**
|
||||
* The column <code>license_server.log_verify.match</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<org.jooq.example.jaxrs.db.tables.records.LogVerifyRecord, java.lang.Boolean> MATCH = createField("match", org.jooq.impl.SQLDataType.BOOLEAN, this);
|
||||
|
||||
/**
|
||||
* Create a <code>license_server.log_verify</code> table reference
|
||||
*/
|
||||
public LogVerify() {
|
||||
super("log_verify", org.jooq.example.jaxrs.db.LicenseServer.LICENSE_SERVER);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>license_server.log_verify</code> table reference
|
||||
*/
|
||||
public LogVerify(java.lang.String alias) {
|
||||
super(alias, org.jooq.example.jaxrs.db.LicenseServer.LICENSE_SERVER, org.jooq.example.jaxrs.db.tables.LogVerify.LOG_VERIFY);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Identity<org.jooq.example.jaxrs.db.tables.records.LogVerifyRecord, java.lang.Long> getIdentity() {
|
||||
return org.jooq.example.jaxrs.db.Keys.IDENTITY_LOG_VERIFY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<org.jooq.example.jaxrs.db.tables.records.LogVerifyRecord> getPrimaryKey() {
|
||||
return org.jooq.example.jaxrs.db.Keys.PK_LOG_VERIFY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<org.jooq.example.jaxrs.db.tables.records.LogVerifyRecord>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<org.jooq.example.jaxrs.db.tables.records.LogVerifyRecord>>asList(org.jooq.example.jaxrs.db.Keys.PK_LOG_VERIFY);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.example.jaxrs.db.tables.LogVerify as(java.lang.String alias) {
|
||||
return new org.jooq.example.jaxrs.db.tables.LogVerify(alias);
|
||||
}
|
||||
}
|
||||
@ -1,249 +0,0 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.example.jaxrs.db.tables.records;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import org.jooq.Record5;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.1.0" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class LicenseRecord extends org.jooq.impl.UpdatableRecordImpl<org.jooq.example.jaxrs.db.tables.records.LicenseRecord> implements org.jooq.Record5<java.lang.Long, java.sql.Timestamp, java.lang.String, java.lang.String, java.lang.String> {
|
||||
|
||||
private static final long serialVersionUID = 1616832387;
|
||||
|
||||
/**
|
||||
* Setter for <code>license_server.license.id</code>.
|
||||
*/
|
||||
public void setId(java.lang.Long value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>license_server.license.id</code>.
|
||||
*/
|
||||
public java.lang.Long getId() {
|
||||
return (java.lang.Long) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>license_server.license.license_date</code>.
|
||||
*/
|
||||
public void setLicenseDate(java.sql.Timestamp value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>license_server.license.license_date</code>.
|
||||
*/
|
||||
public java.sql.Timestamp getLicenseDate() {
|
||||
return (java.sql.Timestamp) getValue(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>license_server.license.licensee</code>.
|
||||
*/
|
||||
public void setLicensee(java.lang.String value) {
|
||||
setValue(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>license_server.license.licensee</code>.
|
||||
*/
|
||||
public java.lang.String getLicensee() {
|
||||
return (java.lang.String) getValue(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>license_server.license.license</code>.
|
||||
*/
|
||||
public void setLicense(java.lang.String value) {
|
||||
setValue(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>license_server.license.license</code>.
|
||||
*/
|
||||
public java.lang.String getLicense() {
|
||||
return (java.lang.String) getValue(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>license_server.license.version</code>.
|
||||
*/
|
||||
public void setVersion(java.lang.String value) {
|
||||
setValue(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>license_server.license.version</code>.
|
||||
*/
|
||||
public java.lang.String getVersion() {
|
||||
return (java.lang.String) getValue(4);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Record1<java.lang.Long> key() {
|
||||
return (org.jooq.Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record5 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row5<java.lang.Long, java.sql.Timestamp, java.lang.String, java.lang.String, java.lang.String> fieldsRow() {
|
||||
return (org.jooq.Row5) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row5<java.lang.Long, java.sql.Timestamp, java.lang.String, java.lang.String, java.lang.String> valuesRow() {
|
||||
return (org.jooq.Row5) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Long> field1() {
|
||||
return org.jooq.example.jaxrs.db.tables.License.LICENSE.ID;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.sql.Timestamp> field2() {
|
||||
return org.jooq.example.jaxrs.db.tables.License.LICENSE.LICENSE_DATE;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field3() {
|
||||
return org.jooq.example.jaxrs.db.tables.License.LICENSE.LICENSEE;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field4() {
|
||||
return org.jooq.example.jaxrs.db.tables.License.LICENSE.LICENSE_;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field5() {
|
||||
return org.jooq.example.jaxrs.db.tables.License.LICENSE.VERSION;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Long value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.sql.Timestamp value2() {
|
||||
return getLicenseDate();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value3() {
|
||||
return getLicensee();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value4() {
|
||||
return getLicense();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value5() {
|
||||
return getVersion();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached LicenseRecord
|
||||
*/
|
||||
public LicenseRecord() {
|
||||
super(org.jooq.example.jaxrs.db.tables.License.LICENSE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Record5<Long, Timestamp, String, String, String> value1(Long value) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Record5<Long, Timestamp, String, String, String> value2(Timestamp value) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Record5<Long, Timestamp, String, String, String> value3(String value) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Record5<Long, Timestamp, String, String, String> value4(String value) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Record5<Long, Timestamp, String, String, String> value5(String value) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Record5<Long, Timestamp, String, String, String> values(Long t1, Timestamp t2, String t3, String t4,
|
||||
String t5) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -1,283 +0,0 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package org.jooq.example.jaxrs.db.tables.records;
|
||||
|
||||
import org.jooq.Record6;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.1.0" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class LogVerifyRecord extends org.jooq.impl.UpdatableRecordImpl<org.jooq.example.jaxrs.db.tables.records.LogVerifyRecord> implements org.jooq.Record6<java.lang.Long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Boolean> {
|
||||
|
||||
private static final long serialVersionUID = -675942689;
|
||||
|
||||
/**
|
||||
* Setter for <code>license_server.log_verify.id</code>.
|
||||
*/
|
||||
public void setId(java.lang.Long value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>license_server.log_verify.id</code>.
|
||||
*/
|
||||
public java.lang.Long getId() {
|
||||
return (java.lang.Long) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>license_server.log_verify.licensee</code>.
|
||||
*/
|
||||
public void setLicensee(java.lang.String value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>license_server.log_verify.licensee</code>.
|
||||
*/
|
||||
public java.lang.String getLicensee() {
|
||||
return (java.lang.String) getValue(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>license_server.log_verify.license</code>.
|
||||
*/
|
||||
public void setLicense(java.lang.String value) {
|
||||
setValue(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>license_server.log_verify.license</code>.
|
||||
*/
|
||||
public java.lang.String getLicense() {
|
||||
return (java.lang.String) getValue(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>license_server.log_verify.request_ip</code>.
|
||||
*/
|
||||
public void setRequestIp(java.lang.String value) {
|
||||
setValue(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>license_server.log_verify.request_ip</code>.
|
||||
*/
|
||||
public java.lang.String getRequestIp() {
|
||||
return (java.lang.String) getValue(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>license_server.log_verify.version</code>.
|
||||
*/
|
||||
public void setVersion(java.lang.String value) {
|
||||
setValue(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>license_server.log_verify.version</code>.
|
||||
*/
|
||||
public java.lang.String getVersion() {
|
||||
return (java.lang.String) getValue(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>license_server.log_verify.match</code>.
|
||||
*/
|
||||
public void setMatch(java.lang.Boolean value) {
|
||||
setValue(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>license_server.log_verify.match</code>.
|
||||
*/
|
||||
public java.lang.Boolean getMatch() {
|
||||
return (java.lang.Boolean) getValue(5);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Record1<java.lang.Long> key() {
|
||||
return (org.jooq.Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record6 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row6<java.lang.Long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Boolean> fieldsRow() {
|
||||
return (org.jooq.Row6) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row6<java.lang.Long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Boolean> valuesRow() {
|
||||
return (org.jooq.Row6) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Long> field1() {
|
||||
return org.jooq.example.jaxrs.db.tables.LogVerify.LOG_VERIFY.ID;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field2() {
|
||||
return org.jooq.example.jaxrs.db.tables.LogVerify.LOG_VERIFY.LICENSEE;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field3() {
|
||||
return org.jooq.example.jaxrs.db.tables.LogVerify.LOG_VERIFY.LICENSE;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field4() {
|
||||
return org.jooq.example.jaxrs.db.tables.LogVerify.LOG_VERIFY.REQUEST_IP;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field5() {
|
||||
return org.jooq.example.jaxrs.db.tables.LogVerify.LOG_VERIFY.VERSION;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Boolean> field6() {
|
||||
return org.jooq.example.jaxrs.db.tables.LogVerify.LOG_VERIFY.MATCH;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Long value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value2() {
|
||||
return getLicensee();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value3() {
|
||||
return getLicense();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value4() {
|
||||
return getRequestIp();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value5() {
|
||||
return getVersion();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Boolean value6() {
|
||||
return getMatch();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached LogVerifyRecord
|
||||
*/
|
||||
public LogVerifyRecord() {
|
||||
super(org.jooq.example.jaxrs.db.tables.LogVerify.LOG_VERIFY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Record6<Long, String, String, String, String, Boolean> value1(Long value) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Record6<Long, String, String, String, String, Boolean> value2(String value) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Record6<Long, String, String, String, String, Boolean> value3(String value) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Record6<Long, String, String, String, String, Boolean> value4(String value) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Record6<Long, String, String, String, String, Boolean> value5(String value) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Record6<Long, String, String, String, String, Boolean> value6(Boolean value) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Record6<Long, String, String, String, String, Boolean> values(Long t1, String t2, String t3, String t4,
|
||||
String t5, Boolean t6) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -1,10 +0,0 @@
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:context="http://www.springframework.org/schema/context"
|
||||
xsi:schemaLocation="
|
||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">
|
||||
|
||||
<context:component-scan base-package="org.jooq.example.jaxrs" />
|
||||
|
||||
</beans>
|
||||
@ -1,24 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
|
||||
|
||||
<context-param>
|
||||
<param-name>contextConfigLocation</param-name>
|
||||
<param-value>classpath:applicationContext.xml</param-value>
|
||||
</context-param>
|
||||
<listener>
|
||||
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
||||
</listener>
|
||||
<listener>
|
||||
<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
|
||||
</listener>
|
||||
<servlet>
|
||||
<servlet-name>Jersey Spring Web Application</servlet-name>
|
||||
<servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>Jersey Spring Web Application</servlet-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
</web-app>
|
||||
Loading…
Reference in New Issue
Block a user