Package org.nutz.dao.impl

Examples of org.nutz.dao.impl.EntityHolder


 
  private boolean cycle = true;
   
    public void setDataSource(DataSource ds) {
        super.setDataSource(ds);
        this.holder = new EntityHolder(this) {
            @SuppressWarnings("unchecked")
            public <T> Entity<T> getEntity(Class<T> classOfT) {
                if (AopCallback.class.isAssignableFrom(classOfT))
                    return (Entity<T>) getEntity(classOfT.getSuperclass());
                return super.getEntity(classOfT);
View Full Code Here


  }
  public String getKey(String clazzName){
    return clazzName+"#";
  }
  public String getClassNameByTableName(String tableName){
    EntityHolder entities=(EntityHolder) CommonUtils.getProperty(dao, "entities");
    Map<Class<?>, Entity<?>> mappings=(Map<Class<?>, Entity<?>>) CommonUtils.getProperty(entities, "mappings");
    Collection<Entity<?>> beanEntities=mappings.values();
    Entity beanEntity=null;
    for (Entity<?> entity : beanEntities) {
      if(entity.getTableName().equals(tableName)){
View Full Code Here

 
  private boolean cycle = false;
   
    public void setDataSource(DataSource ds) {
        super.setDataSource(ds);
        this.holder = new EntityHolder(this) {
            @SuppressWarnings("unchecked")
            public <T> Entity<T> getEntity(Class<T> classOfT) {
                if (AopCallback.class.isAssignableFrom(classOfT))
                    return (Entity<T>) getEntity(classOfT.getSuperclass());
                return super.getEntity(classOfT);
View Full Code Here

TOP

Related Classes of org.nutz.dao.impl.EntityHolder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.