public final class CQLMapper extends Object
<cqlMapper>
<cql id="findAccountById">select * from account where id=1</cql>
<cql id="updateAccountNameById">update account set name=? where id=?</cql>
</cqlMapper>
Modifier and Type | Field and Description |
---|---|
static String |
CQL |
static String |
CQL_MAPPER |
static String |
ID |
Modifier and Type | Method and Description |
---|---|
ParsedCql |
add(String id,
ParsedCql parsedCql) |
void |
add(String id,
String cql,
Map<String,String> attrs) |
CQLMapper |
copy() |
boolean |
equals(Object obj) |
ParsedCql |
get(String id) |
int |
hashCode() |
boolean |
isEmpty() |
Set<String> |
keySet() |
void |
loadFrom(String filePath) |
void |
remove(String id) |
void |
saveTo(File file) |
String |
toString() |
public static final String CQL_MAPPER
public static final String CQL
public static final String ID
public CQLMapper()
public CQLMapper(String filePath)
public void loadFrom(String filePath) throws com.landawn.abacus.exception.UncheckedIOException
filePath
- it could be multiple file paths separated by ',' or ';'com.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic void remove(String id)
id
- public CQLMapper copy()
public void saveTo(File file) throws com.landawn.abacus.exception.UncheckedIOException
file
- com.landawn.abacus.exception.UncheckedIOException
- the unchecked IO exceptionpublic boolean isEmpty()
public boolean equals(Object obj)
Copyright © 2021. All rights reserved.