com.github.maskwerewolf:flowerframework-root

flower jdbc framework

License

License

GroupId

GroupId

com.github.maskwerewolf
ArtifactId

ArtifactId

flowerframework-root
Last Version

Last Version

2.0
Release Date

Release Date

Type

Type

pom
Description

Description

com.github.maskwerewolf:flowerframework-root
flower jdbc framework
Project URL

Project URL

https://github.com/maskwerewolf/flowerframework
Source Code Management

Source Code Management

https://github.com/maskwerewolf/flowerframework

Download flowerframework-root

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.maskwerewolf/flowerframework-root/ -->
<dependency>
    <groupId>com.github.maskwerewolf</groupId>
    <artifactId>flowerframework-root</artifactId>
    <version>2.0</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.maskwerewolf/flowerframework-root/
implementation 'com.github.maskwerewolf:flowerframework-root:2.0'
// https://jarcasting.com/artifacts/com.github.maskwerewolf/flowerframework-root/
implementation ("com.github.maskwerewolf:flowerframework-root:2.0")
'com.github.maskwerewolf:flowerframework-root:pom:2.0'
<dependency org="com.github.maskwerewolf" name="flowerframework-root" rev="2.0">
  <artifact name="flowerframework-root" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.github.maskwerewolf', module='flowerframework-root', version='2.0')
)
libraryDependencies += "com.github.maskwerewolf" % "flowerframework-root" % "2.0"
[com.github.maskwerewolf/flowerframework-root "2.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • flower-mysql

flower-jdbc2.0

maven

<dependency>
    <groupId>com.github.maskwerewolf</groupId>
    <artifactId>flower-mysql</artifactId>
    <version>2.0</version>
</dependency>

insert

 Number insert(Object object) 
 
 int insertBatch(List<?> objectList)

update

     int update(Query query, Update update, Class<?> entityClass) 
     
     int update(Query query, Update update, String tableName) 

select

 <T> List<T> find(Query query, Class<T> entityClass) 
 <T> List<T> find(Select select, Query query, Class<T> entityClass)
 List<Map<String, Object>> findForMaps(Query query, Class<?> entityClass) 
 List<Map<String, Object>> findForMaps(Select select, Query query, Class<?> entityClass)
 <T> T findOne(Query query, Class<T> entityClass)
 Map<String, Object> findForMap(Query query, Class<?> entityClass) 
 Map<String, Object> findForMap(Query query, String tableName) 
 <T> T findOne(Select select, Query query, Class<T> entityClass) 

count

     long count(Query query, String tableName) 
     long count(Query query, Class<?> entityClass) 

delete

 int delete(Query query, Class<?> entityClass)
  
 int delete(Query query, String tableName) 
example
User user = Jdbc.findOne(Query.query("id=? ",arg1), User.class);

 Query query = new Query();
 if(null != name){
  query.and("name=?",name);
 }
 or like this
query.andIfAbsent("name=?",name);


 query.page(page).limit(limit);
 query.order("..........")
  

 List<User> user = Jdbc.find(query,User.class);
 
 
Jdbc.update(Query.query("id=?",""),Update.setIfAbsent("nickname","value").inc("age",1),User.class)

>sql: update user set nickname=? ,age = age+1 where id = ?

Versions

Version
2.0
1.0