org.apache.cayenne.dbsync.naming.DefaultObjectNameGenerator.class Maven / Gradle / Ivy
???? 4 ?
( ]
^ _ ' ` a b
] c
d
e
f
g
' h
' i
' j
k l
H m
n o p q r
H s
' t
u v w
x y z
H { R | R } ~
? ?
?
?
? ?
? ?
? ? ? ? ? dbEntityNameStemmer 6Lorg/apache/cayenne/dbsync/naming/DbEntityNameStemmer; ()V Code LineNumberTable LocalVariableTable this =Lorg/apache/cayenne/dbsync/naming/DefaultObjectNameGenerator; 9(Lorg/apache/cayenne/dbsync/naming/DbEntityNameStemmer;)V relationshipName <([Lorg/apache/cayenne/map/DbRelationship;)Ljava/lang/String; relationshipChain ([Lorg/apache/cayenne/map/DbRelationship; name Ljava/lang/String;
StackMapTable isToMany +([Lorg/apache/cayenne/map/DbRelationship;)Z r 'Lorg/apache/cayenne/map/DbRelationship; 7 stemmed &(Ljava/lang/String;)Ljava/lang/String; dbEntityName toManyRelationshipName inflectorError Ljava/lang/Exception; last baseName ? toOneRelationshipName first joins Ljava/util/List; join1 Lorg/apache/cayenne/map/DbJoin; fkColName LocalVariableTypeTable 1Ljava/util/List; ?
objEntityName 5(Lorg/apache/cayenne/map/DbEntity;)Ljava/lang/String; dbEntity !Lorg/apache/cayenne/map/DbEntity; objAttributeName 8(Lorg/apache/cayenne/map/DbAttribute;)Ljava/lang/String; attr $Lorg/apache/cayenne/map/DbAttribute;
SourceFile DefaultObjectNameGenerator.java , - ? ? ? * + "java/lang/IllegalArgumentException java/lang/StringBuilder &At least on relationship is expected: ? ? ? ? ? ? , ? ; < C 5 I 5 ? ? ? ; ? ? ? ? java/lang/String ? ? A ? ? @ A ? ? ? ? ? ? ? ? java/lang/Exception ? ? ? ? ? ? org/apache/cayenne/map/DbJoin ? ? ? ? _ID ? ? ? ? ? ? ID ? ? ? ? ;org/apache/cayenne/dbsync/naming/DefaultObjectNameGenerator java/lang/Object 4org/apache/cayenne/dbsync/naming/ObjectNameGenerator %org/apache/cayenne/map/DbRelationship java/util/List .org/apache/cayenne/dbsync/naming/NoStemStemmer getInstance 8()Lorg/apache/cayenne/dbsync/naming/DbEntityNameStemmer; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; (Ljava/lang/String;)V org/apache/cayenne/util/Util underscoredToJava '(Ljava/lang/String;Z)Ljava/lang/String; ()Z java/util/Objects requireNonNull &(Ljava/lang/Object;)Ljava/lang/Object; 4org/apache/cayenne/dbsync/naming/DbEntityNameStemmer stem getTargetEntityName toLowerCase java/util/Locale ENGLISH Ljava/util/Locale; org/jvnet/inflector/Noun pluralOf 8(Ljava/lang/String;Ljava/util/Locale;)Ljava/lang/String; getJoins ()Ljava/util/List; isEmpty get (I)Ljava/lang/Object;
getSourceName toUpperCase endsWith (Ljava/lang/String;)Z length ()I substring (II)Ljava/lang/String; org/apache/cayenne/map/DbEntity getName "org/apache/cayenne/map/DbAttribute ! ' ( ) * + , - . > *? *? ? ? / ) * + 0 1 2 , 3 . F
*? *+? ? / - . / 0
1 2
* + ? 4 5 . ? A+? +?? ? Y? Y? ? +? ?
? ?*+? ? *+?
? *+? M,? ? / 4
5 % ; - <