org.apache.cayenne.gen.CgenConfiguration.class Maven / Gradle / Ivy
The newest version!
???? 7*
java/lang/Object ()V %org/apache/cayenne/gen/CgenConfigList
Default
(org/apache/cayenne/gen/CgenConfiguration name Ljava/lang/String; *.java
outputPattern timestamp J
usePkgPath Z makePairs " # createPKProperties % & ' ( ) .org/apache/cayenne/gen/ArtifactsGenerationMode ENTITY 0Lorg/apache/cayenne/gen/ArtifactsGenerationMode; + , ) artifactsGenerationMode . java/util/ArrayList
- 1 2 3 artifacts Ljava/util/Collection; 5 java/util/HashSet
4 8 9 : entityArtifacts Ljava/util/Set; < = 3 excludedEntityArtifacts ? @ : embeddableArtifacts B C 3 excludedEmbeddableArtifacts E F G H I #org/apache/cayenne/gen/TemplateType ENTITY_SUBCLASS %Lorg/apache/cayenne/gen/TemplateType;
E K L M defaultTemplate '()Lorg/apache/cayenne/gen/CgenTemplate; O P Q template %Lorg/apache/cayenne/gen/CgenTemplate; E S T I ENTITY_SUPERCLASS V W Q
superTemplate E Y Z I DATAMAP_SUBCLASS \ ] Q dataMapTemplate E _ ` I DATAMAP_SUPERCLASS b c Q dataMapSuperTemplate E e f I EMBEDDABLE_SUBCLASS h i Q embeddableTemplate E k l I EMBEDDABLE_SUPERCLASS n o Q embeddableSuperTemplate q r s t
java/util/Set clear v w superPkg y z { dataMap Lorg/apache/cayenne/map/DataMap;
% } ~ getLabel ()Ljava/lang/String;
? ? ? ? ? java/lang/String equalsIgnoreCase (Ljava/lang/String;)Z % ? ? ) ALL ? ? ? rootProjectPath Ljava/nio/file/Path;
? ? ? ? ? java/util/Objects requireNonNull &(Ljava/lang/Object;)Ljava/lang/Object; ? java/nio/file/Path ? ? ? ?
isAbsolute ()Z ? 1org/apache/cayenne/validation/ValidationException ? *Project root path '%s' should be absolute.
? ? ? ((Ljava/lang/String;[Ljava/lang/Object;)V ? ? ? cgenOutputPath ? ? ? ? getRoot ()Ljava/nio/file/Path; ? ? ? ? equals (Ljava/lang/Object;)Z ? ? ? ?
relativize *(Ljava/nio/file/Path;)Ljava/nio/file/Path; ? ? ? toString
? ? ? ? isEmpty ? . ? ? ? ? normalize ? ? ? ? resolve ? ? ? ? toAbsolutePath ? ? overwrite ? ? encoding ? ? createPropertyNames ? ? force ? ? externalToolConfig ? ? ? ? ? java/util/Collection add
? ? ? ? ? org/apache/cayenne/map/ObjEntity isGeneric
? ? ? getName q ?
? ? ? ? !org/apache/cayenne/map/Embeddable getClassName ? ,
? ? ? ? split '(Ljava/lang/String;)[Ljava/lang/String;
? ? ? ? ? java/util/Arrays asList %([Ljava/lang/Object;)Ljava/util/List; ? ? ? ? addAll (Ljava/util/Collection;)Z
? ? ? ? ? org/apache/cayenne/map/DataMap getObjEntities ()Ljava/util/Collection; ? ? ? ? stream ()Ljava/util/stream/Stream; ? ? ? apply ()Ljava/util/function/Function; java/util/stream/Stream map 8(Ljava/util/function/Function;)Ljava/util/stream/Stream; test J(Lorg/apache/cayenne/gen/CgenConfiguration;)Ljava/util/function/Predicate;
filter 9(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
java/util/stream/Collectors joining 6(Ljava/lang/CharSequence;)Ljava/util/stream/Collector; collect 0(Ljava/util/stream/Collector;)Ljava/lang/Object;
? ? getEmbeddables ?
! toSet ()Ljava/util/stream/Collector; $ cgen
&'()* "org/apache/cayenne/util/XMLEncoder start 8(Ljava/lang/String;)Lorg/apache/cayenne/util/XMLEncoder;, xmlns. (org/apache/cayenne/gen/xml/CgenExtension0 (http://cayenne.apache.org/schema/11/cgen
&234 attribute J(Ljava/lang/String;Ljava/lang/String;)Lorg/apache/cayenne/util/XMLEncoder;
&784 simpleTag: excludeEntities
<= getExcludedEntities? excludeEmbeddables
AB getExcludedEmbeddablesD destDir
FG getNormalizedOutputPath
IJK separatorsToUnix &(Ljava/lang/String;)Ljava/lang/String;M mode P
PQRS #org/apache/cayenne/gen/CgenTemplate getData
PUV ? isFile
&XYZ cdata 9(Ljava/lang/String;Z)Lorg/apache/cayenne/util/XMLEncoder;
&\]^ end &()Lorg/apache/cayenne/util/XMLEncoder; W i o ] c
ghi ?j java/lang/Boolean (Z)Ljava/lang/String; ? ? w # ?
? ?
P ?
?tuv replace (CC)Ljava/lang/String; xyz{| *org/apache/cayenne/gen/CgenConfiguration$1 .$SwitchMap$org$apache$cayenne$gen$TemplateType [I
E~? ordinal ()I
?? M getTemplate
?? M getSuperTemplate
?? M getEmbeddableTemplate
?? M getEmbeddableSuperTemplate
?? M getDataMapTemplate
?? M getDataMapSuperTemplate ??? ? contains q?? java/io/Serializable? 'org/apache/cayenne/util/XMLSerializable Signature 9Ljava/util/Collection; #Ljava/util/Set; *Ljava/util/Collection; Code LineNumberTable LocalVariableTable this *Lorg/apache/cayenne/gen/CgenConfiguration; resetCollections getSuperPkg setSuperPkg (Ljava/lang/String;)V setName
getDataMap "()Lorg/apache/cayenne/map/DataMap;
setDataMap #(Lorg/apache/cayenne/map/DataMap;)V setArtifactsGenerationMode
StackMapTable getArtifactsGenerationMode isMakePairs setMakePairs (Z)V getRootPath setRootPath (Ljava/nio/file/Path;)V getRawOutputPath updateOutputPath path buildOutputPath isOverwrite setOverwrite isUsePkgPath
setUsePkgPath setTemplate ((Lorg/apache/cayenne/gen/CgenTemplate;)V setSuperTemplate setEmbeddableTemplate setEmbeddableSuperTemplate setDataMapTemplate setDataMapSuperTemplate getTimestamp ()J setTimestamp (J)V getOutputPattern setOutputPattern getEncoding setEncoding isCreatePropertyNames setCreatePropertyNames isForce setForce isCreatePKProperties setCreatePKProperties getArtifacts ;()Ljava/util/Collection; getEntities ()Ljava/util/Set; %()Ljava/util/Set; getExternalToolConfig setExternalToolConfig config addArtifact $(Lorg/apache/cayenne/gen/Artifact;)V artifact !Lorg/apache/cayenne/gen/Artifact;
loadEntity %(Lorg/apache/cayenne/map/ObjEntity;)V entity "Lorg/apache/cayenne/map/ObjEntity; loadEmbeddable &(Lorg/apache/cayenne/map/Embeddable;)V
embeddable #Lorg/apache/cayenne/map/Embeddable; parseExcludedEntities entities parseExcludedEmbeddables embeddables resolveExcludedEntities resolveExcludedEmbeddables getExcludedEntityArtifacts ,()Ljava/util/Collection; getExcludedEmbeddableArtifacts encodeAsXML b(Lorg/apache/cayenne/util/XMLEncoder;Lorg/apache/cayenne/configuration/ConfigurationNodeVisitor;)V encoder $Lorg/apache/cayenne/util/XMLEncoder; delegate ;Lorg/apache/cayenne/configuration/ConfigurationNodeVisitor;? 9org/apache/cayenne/configuration/ConfigurationNodeVisitor isDefault getTemplateByType L(Lorg/apache/cayenne/gen/TemplateType;)Lorg/apache/cayenne/gen/CgenTemplate; type #lambda$resolveExcludedEmbeddables$3 className lambda$resolveExcludedEntities$2 lambda$getExcludedEmbeddables$1 lambda$getExcludedEntities$0
SourceFile CgenConfiguration.java NestMembers BootstrapMethods ?
? org/apache/cayenne/map/Entity 6(Lorg/apache/cayenne/map/ObjEntity;)Ljava/lang/String; ?
? ? ? 7(Lorg/apache/cayenne/map/Embeddable;)Ljava/lang/String;
? ?
? ?
? ?
!"# "java/lang/invoke/LambdaMetafactory metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; InnerClasses& %java/lang/invoke/MethodHandles$Lookup( java/lang/invoke/MethodHandles Lookup ! ?? ? ? ? ? 2 3 ? ? 9 : ? ? = 3 ? ? @ : ? ? C 3 ? ? w z { , ) ? P Q W Q i Q o Q ] Q c Q ? ? ? # ? F ? ?*? * ? *? * ? *? *? *? !*? $? **? -Y? /? 0*? 4Y? 6? 7*? -Y? /? ;*? 4Y? 6? >*? -Y? /? A*? D? J? N*? R? J? U*? X? J? [*? ^? J? a*? d? J? g*? j? J? m? ? R g h
l m n o p $ q + s 6 t A u L v W w b y l z v | ? } ? ? ? ? ?? ??? ? ? E *? >? p *? 7? p ? ? ? ? ?? ?? ? ? / *? u? ? ?? ?? ?? ? > *+? u? ?
? ?? ?? w ? ? / *? ? ? ?? ?? ?? ? > *+? ? ?
? ?? ?? ?? ? / *? x? ? ?? ?? ?? ? > *+? x? ?
? ?? ?? z { ?? ? i ? $? |+? ??
*? $? *?
*? ?? *? ? ?
? ? ?? ?? M ? ? ? 2 *? *? |? ? ?? ?? ? ? ? / *? ? ? ?? ?? ?? ? > *? ? ?
? ?? ?? ? ? ? / *? ?? ? ?? ?? ?? ? p '+? ?? ?? ? ? ? ?Y?? Y+S? ??*+? ?? ? ? ? ! ? &