mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
41 lines
876 B
Java
41 lines
876 B
Java
package com.avaje.ebeaninternal.server.query;
|
|
|
|
/**
|
|
* Constants used in find processing.
|
|
*/
|
|
public interface Constants {
|
|
|
|
/**
|
|
* the new line character used.
|
|
* <p>
|
|
* Note that this is removed for logging sql to the transaction log.
|
|
* </p>
|
|
*/
|
|
public static final char NEW_LINE = '\n';
|
|
|
|
/**
|
|
* The carriage return character.
|
|
*/
|
|
public static final char CARRIAGE_RETURN = '\r';
|
|
|
|
/**
|
|
* literal used for SQL LIMIT in MySql and Postgres.
|
|
*/
|
|
public static final String LIMIT = "limit";
|
|
|
|
/**
|
|
* Literal used for SQL LIMIT OFFSET clause in MySql and Postgres.
|
|
*/
|
|
public static final String OFFSET = "offset";
|
|
|
|
/**
|
|
* ROW_NUMBER() OVER (ORDER BY
|
|
*/
|
|
public static final String ROW_NUMBER_OVER = "row_number() over (order by ";
|
|
|
|
/**
|
|
* ) as rn,
|
|
*/
|
|
public static final String ROW_NUMBER_AS = ") as rn, ";
|
|
}
|