All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.andyshaox.jdbc.annotation.Daos Maven / Gradle / Ivy

There is a newer version: 3.2.10.RELEASE
Show newest version
package com.github.andyshaox.jdbc.annotation;

import com.github.andyshaox.jdbc.Dao;

/**
 * 
 * Title:
* Descript:
* Copyright: Copryright(c) Mar 9, 2016
* Encoding:UNIX UTF-8 * * @author Andy.Shao * */ public final class Daos { public static Dao build(Class clazz) { com.github.andyshaox.jdbc.annotation.Dao annotation = clazz.getAnnotation(com.github.andyshaox.jdbc.annotation.Dao.class); if (annotation == null) return null; Dao result = Dao.getDefault(); result.setDataBase(annotation.dataBase()); result.setDefineClass(clazz); result.setDomain(annotation.domain()); Sqls.build(result.getSqls() , clazz); return result; } private Daos() { throw new AssertionError("No " + Daos.class + " instance for you"); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy