org.redkalex.source.mysql.MyClientRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redkale-plugins Show documentation
Show all versions of redkale-plugins Show documentation
Redkale-Plugins -- java framework
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkalex.source.mysql;
import java.util.Objects;
import org.redkale.net.client.ClientRequest;
import org.redkale.source.EntityInfo;
import org.redkale.util.ObjectPool;
/** @author zhangjx */
public abstract class MyClientRequest extends ClientRequest {
public static final int REQ_TYPE_AUTH = 1 << 1;
public static final int REQ_TYPE_QUERY = 1 << 2;
public static final int REQ_TYPE_UPDATE = 1 << 3;
public static final int REQ_TYPE_INSERT = 1 << 4;
public static final int REQ_TYPE_DELETE = 1 << 5;
public static final int REQ_TYPE_BATCH = 1 << 6;
public static final int REQ_TYPE_EXTEND_QUERY = (1 << 2) + 1; // 预编译的16进制值都要以1结尾
public static final int REQ_TYPE_EXTEND_UPDATE = (1 << 3) + 1; // 预编译的16进制值都要以1结尾
public static final int REQ_TYPE_EXTEND_INSERT = (1 << 4) + 1; // 预编译的16进制值都要以1结尾
public static final int REQ_TYPE_EXTEND_DELETE = (1 << 5) + 1; // 预编译的16进制值都要以1结尾
// --------------------------------------------------
protected ObjectPool objpool;
protected EntityInfo info;
protected byte packetIndex;
public abstract int getType();
public MyClientRequest reuse() {
return this;
}
public String toSimpleString() {
return getClass().getSimpleName() + "_" + Objects.hashCode(this) + "{...}";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy