- 自定义一个函数calculate 创建脚本,
CREATE OR REPLACE FUNCTION calculate(IN x double precision, IN y double precision, OUT sum double precision) RETURNS double precision AS $BODY$ BEGIN sum = x + y; END; $BODY$ LANGUAGE plpgsql VOLATILE COST 100;
- 在JPA 中调用
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
CREATE OR REPLACE FUNCTION calculate(IN x double precision, IN y double precision, OUT sum double precision) RETURNS double precision AS $BODY$ BEGIN sum = x + y; END; $BODY$ LANGUAGE plpgsql VOLATILE COST 100;
public abstract class RestfulWsHelper { | |
private final static String HEADER_NAME_REMOTE_IP = RestfulWsHelper.class.getSimpleName() + ".__REMOTE_CLIENT_ID__"; | |
public final static String UNKNOW_CLIENT_IP = "UNKNOWN"; | |
final static String[] SEARCHING_HEADERS = new String[] { | |
"x-forwarded-for", | |
"Proxy-Client-IP", | |
"WL-Proxy-Client-IP" | |
}; |
package com.keepithttps.hibernate.type; | |
import java.io.IOException; | |
import java.io.Serializable; | |
import java.sql.PreparedStatement; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.sql.Types; | |
import java.util.Properties; |
org.gradle.configureondemand=true | |
org.gradle.daemon=true | |
org.gradle.parallel=true | |
org.gradle.jvmargs=-Xms512m -Xmx1024m | |
org.gradle.workers.max=100 | |
#org.gradle.jvmargs=-Xmx2g -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 |
FROM ubuntu:latest | |
RUN cd /opt | |
RUN mkdir android-sdk-linux && cd android-sdk-linux/ | |
RUN apt-get update -qq \ | |
&& apt-get install -y openjdk-8-jdk \ | |
&& apt-get install -y wget \ | |
&& apt-get install -y expect \ |
// Every jenkins file should start with either a Declarative or Scripted Pipeline entry point. | |
node { | |
//Utilizing a try block so as to make the code cleaner and send slack notification in case of any error | |
try { | |
//Call function to send a message to Slack | |
notifyBuild('STARTED') | |
// Global variable declaration | |
def project = 'sa-android' | |
def appName = 'Sample App' |