@Target(value=FIELD) @Retention(value=RUNTIME) public @interface Sharding
| Modifier and Type | Optional Element and Description |
|---|---|
String |
appointDS
appoint dataSource
|
String |
appointTab
appoint table name
|
int |
dsAlgorithm
0: operations that can be calculated directly such as remainder; 1: Take part of the string such as date; 2: Custom
|
String |
dsName
If dsRule is empty and the value of dsName is not set, the database name is not required.
|
String |
dsRule
If dsRule is not set, that is, the default empty value is used, it means that is not to consider the database name.
|
Class<? extends DsTabHandler> |
handler
use for define DsTabHandler.
|
int |
tabAlgorithm
0: operations that can be calculated directly such as remainder; 1: Take part of the string such as date; 2: Custom
|
String |
tabName
get tabName.
|
String |
tabRule
get tabRule
|
public abstract String appointDS
public abstract String appointTab
public abstract int dsAlgorithm
public abstract int tabAlgorithm
public abstract String dsRule
public abstract String dsName
public abstract String tabRule
public abstract String tabName
public abstract Class<? extends DsTabHandler> handler
Copyright © 2023. All rights reserved.