¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, DreamLu All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: DreamLu 墿¥æ¢¦ (596392912@qq.com) |
| | | */ |
| | | |
| | | package org.springblade.core.mp.injector; |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | /** |
| | | * æ©å±çèªå®ä¹æ¹æ³ |
| | | * |
| | | * AbstractInsertMethod |
| | | * |
| | | * @author L.cm |
| | | */ |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum BladeSqlMethod { |
| | | |
| | | /** |
| | | * æå
¥å¦æä¸å·²ç»åå¨ç¸åçè®°å½ï¼å忽ç¥å½åæ°æ°æ® |
| | | */ |
| | | INSERT_IGNORE_ONE("insertIgnore", "æå
¥ä¸æ¡æ°æ®ï¼éæ©å段æå
¥ï¼", "<script>\nINSERT IGNORE INTO %s %s VALUES %s\n</script>"), |
| | | |
| | | /** |
| | | * 表示æå
¥æ¿æ¢æ°æ®ï¼éæ±è¡¨ä¸æPrimaryKeyï¼æè
uniqueç´¢å¼ï¼å¦ææ°æ®åºå·²ç»å卿°æ®ï¼åç¨æ°æ°æ®æ¿æ¢ï¼å¦ææ²¡ææ°æ®ææååinsert into䏿 ·ï¼ |
| | | */ |
| | | REPLACE_ONE("replace", "æå
¥ä¸æ¡æ°æ®ï¼éæ©å段æå
¥ï¼", "<script>\nREPLACE INTO %s %s VALUES %s\n</script>"); |
| | | |
| | | private final String method; |
| | | private final String desc; |
| | | private final String sql; |
| | | } |