org.liveSense.api.beanprocessors.DbStandardBeanProcessor.class Maven / Gradle / Ivy
???? 2?
r ? ? ?
? ? ? ?
[ ? ? ? ? ?
[ ?
? ?
? ? ? ?
[ ?
q ? ? ?
q ?
q ? ?
? ? ? ? ?
q ?
? ?
q ?
q
q
?
?
[
$
(
+
q
1 ?
1
1
0
8
;!
=
" B#
.$ D#% F#& H#' J#( L#) N#* P#+
,-.
R
/012
V34 ?56 ?7 ?8
B9 ?:
P; ?<
D= ?>
F? ?@
HA ?B
JC ?D
LE ?FG
l ?H PI
NJKL primitiveDefaults Ljava/util/Map; Signature 7Ljava/util/Map;Ljava/lang/Object;>; ()V Code LineNumberTable LocalVariableTable this :Lorg/liveSense/api/beanprocessors/DbStandardBeanProcessor; mapColumnsToProperties Q(Ljava/sql/ResultSetMetaData;[Ljava/beans/PropertyDescriptor;Ljava/lang/Class;)[I cAn Ljavax/persistence/Column; j I annotations "[Ljava/lang/annotation/Annotation; i
columnName Ljava/lang/String; originalRsName col rsmd Ljava/sql/ResultSetMetaData; props [Ljava/beans/PropertyDescriptor; type Ljava/lang/Class; cols columnToProperty [I LocalVariableTypeTable Ljava/lang/Class<*>;
StackMapTable ?6 ?
Exceptions T(Ljava/sql/ResultSetMetaData;[Ljava/beans/PropertyDescriptor;Ljava/lang/Class<*>;)[I toBean 9(Ljava/sql/ResultSet;Ljava/lang/Class;)Ljava/lang/Object; rs Ljava/sql/ResultSet; Ljava/lang/Class; E(Ljava/sql/ResultSet;Ljava/lang/Class;)TT;
toBeanList 7(Ljava/sql/ResultSet;Ljava/lang/Class;)Ljava/util/List; results Ljava/util/List; Ljava/util/List;M ?N W(Ljava/sql/ResultSet;Ljava/lang/Class;)Ljava/util/List;
createBean [(Ljava/sql/ResultSet;Ljava/lang/Class;[Ljava/beans/PropertyDescriptor;[I)Ljava/lang/Object; prop Ljava/beans/PropertyDescriptor; propType value Ljava/lang/Object; bean TT;OP g(Ljava/sql/ResultSet;Ljava/lang/Class;[Ljava/beans/PropertyDescriptor;[I)TT;
callSetter F(Ljava/lang/Object;Ljava/beans/PropertyDescriptor;Ljava/lang/Object;)V e $Ljava/lang/IllegalArgumentException; "Ljava/lang/IllegalAccessException; -Ljava/lang/reflect/InvocationTargetException; target setter Ljava/lang/reflect/Method; params [Ljava/lang/Class; [Ljava/lang/Class<*>;Q ? ! isCompatibleType &(Ljava/lang/Object;Ljava/lang/Class;)Z )(Ljava/lang/Object;Ljava/lang/Class<*>;)Z newInstance %(Ljava/lang/Class;)Ljava/lang/Object; "Ljava/lang/InstantiationException; c- 1(Ljava/lang/Class;)TT; propertyDescriptors 3(Ljava/lang/Class;)[Ljava/beans/PropertyDescriptor; #Ljava/beans/IntrospectionException; beanInfo Ljava/beans/BeanInfo;KR1 6(Ljava/lang/Class<*>;)[Ljava/beans/PropertyDescriptor;
processColumn :(Ljava/sql/ResultSet;ILjava/lang/Class;)Ljava/lang/Object; index =(Ljava/sql/ResultSet;ILjava/lang/Class<*>;)Ljava/lang/Object;
SourceFile DbStandardBeanProcessor.java w xNSTUVWXYZT[Y _ \]O^_`ab javax/persistence/Columnc_de ? ?fgh ~ ? ? java/util/ArrayListijMkl ? ?mn ? ?Poj s tpqr ? ?stQuv java/util/Date
java.sql.Datewl
java/sql/Datexy wz
java.sql.Time
java/sql/Time java.sql.Timestamp java/sql/Timestamp ? ? java/lang/Object{| java/sql/SQLException java/lang/StringBuilder Cannot set }~ : incompatible types._ w? "java/lang/IllegalArgumentException : ?_ java/lang/IllegalAccessException +java/lang/reflect/InvocationTargetException?l? ? java/lang/Integer java/lang/Long java/lang/Double java/lang/Float java/lang/Short java/lang/Byte java/lang/Character java/lang/Boolean ?? java/lang/InstantiationException Cannot create ??? !java/beans/IntrospectionException Bean introspection failed: R???? java/lang/String?Y?????????????????????????????? java/util/HashMap?????? 8org/liveSense/api/beanprocessors/DbStandardBeanProcessor (org/apache/commons/dbutils/BeanProcessor java/util/List java/sql/ResultSetMetaData java/beans/PropertyDescriptor java/lang/Class java/lang/reflect/Method java/beans/BeanInfo getColumnCount ()I java/util/Arrays fill ([II)V getColumnLabel (I)Ljava/lang/String; length
getColumnName
replaceAll 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; getName ()Ljava/lang/String; &org/liveSense/api/sql/AnnotationHelper findFieldAnnotation G(Ljava/lang/Class;Ljava/lang/String;)[Ljava/lang/annotation/Annotation; name equalsIgnoreCase (Ljava/lang/String;)Z java/sql/ResultSet getMetaData ()Ljava/sql/ResultSetMetaData; next ()Z add (Ljava/lang/Object;)Z getPropertyType ()Ljava/lang/Class; isPrimitive
java/util/Map get &(Ljava/lang/Object;)Ljava/lang/Object; getWriteMethod ()Ljava/lang/reflect/Method; getParameterTypes ()[Ljava/lang/Class; equals getTime ()J (J)V invoke 9(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString (Ljava/lang/String;)V
getMessage
isInstance TYPE ()Ljava/lang/Object; java/beans/Introspector getBeanInfo ((Ljava/lang/Class;)Ljava/beans/BeanInfo; getPropertyDescriptors "()[Ljava/beans/PropertyDescriptor; getObject (I)Ljava/lang/Object; getString getInt (I)I valueOf (I)Ljava/lang/Integer;
getBoolean (I)Z (Z)Ljava/lang/Boolean; getLong (I)J (J)Ljava/lang/Long; getDouble (I)D (D)Ljava/lang/Double; getFloat (I)F (F)Ljava/lang/Float; getShort (I)S (S)Ljava/lang/Short; getByte (I)B (B)Ljava/lang/Byte; getTimestamp (I)Ljava/sql/Timestamp; put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; FALSE Ljava/lang/Boolean; (C)Ljava/lang/Character; ! q r s t u v w x y / *? ? z B { | } ~ y
?+? 6`?
:? 6? ?+? :? ? ?
+? ::? :6 ,?? y-, 2?
? :
? ?6
?? 4
2? ? #
2? :?
? ?
O????, 2?
? ? .? O? ? ??????D? z ^ l m n r s * t 9 u C z G { R } \ ? i ? n ? y ? ? ? ? ? ? ? ? ? ? ? ? ? ? } ? r ? ? { ?
? ? ? q 9 ? ? i c ? ?
U } ? ? * ? ? ? G ? ? ? ? ? ? ? | } ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ,
? ?? ? ? ?? ?2? ? !? ? ? 0 u ? ? ? y ? "*,? N+? :*-,? :*+,-? ? z ? ? ? ? { > " | } " ? ? " ? ? ? ? ? ?
? ? ? " ? ? ? 0 u ? ? ? y I? Y? N+? ? -?*,? :+? :*,? :-*+,? ? W+? ???-? z &