MentaBean

Rev

Rev 218 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 218 Rev 219
Line 58... Line 58...
58
/**
58
/**
59
 * The bean session implementation based on JDBC and SQL.
59
 * The bean session implementation based on JDBC and SQL.
60
 *
60
 *
61
 * @author soliveira
61
 * @author soliveira
62
 */
62
 */
-
 
63
@SuppressWarnings({"unchecked", "rawtypes"})
63
public class AnsiSQLBeanSession implements BeanSession {
64
public class AnsiSQLBeanSession implements BeanSession {
64
65
65
        protected static boolean DEBUG = false;
66
        protected static boolean DEBUG = false;
66
       
67
       
67
        protected static boolean DEBUG_NATIVE = false;
68
        protected static boolean DEBUG_NATIVE = false;
Line 2522... Line 2523...
2522
               
2523
               
2523
                return sb.append(")").toString();
2524
                return sb.append(")").toString();
2524
               
2525
               
2525
        }
2526
        }
2526
2527
2527
        private int getSize(DBType<?> dbType) {
-
 
2528
                if (dbType instanceof SizedType) {
-
 
2529
                        SizedType st = (SizedType) dbType;
-
 
2530
                        return st.getSize();
-
 
2531
                }
-
 
2532
                throw new IllegalStateException("Cannot get size from type: " + dbType);
-
 
2533
        }
-
 
-
 
2528
//      private int getSize(DBType<?> dbType) {
-
 
2529
//              if (dbType instanceof SizedType) {
-
 
2530
//                      SizedType st = (SizedType) dbType;
-
 
2531
//                      return st.getSize();
-
 
2532
//              }
-
 
2533
//              throw new IllegalStateException("Cannot get size from type: " + dbType);
-
 
2534
//      }
2534
       
2535
       
2535
        public BeanConfig getConfigFor(Class<? extends Object> clazz) {
2536
        public BeanConfig getConfigFor(Class<? extends Object> clazz) {
2536
                return beanManager.getBeanConfig(clazz);
2537
                return beanManager.getBeanConfig(clazz);
2537
        }
2538
        }
2538
       
2539