idx int64 0 165k | question stringlengths 73 4.15k | target stringlengths 5 918 | len_question int64 21 890 | len_target int64 3 255 |
|---|---|---|---|---|
30,800 | void doResolveOnto ( Appendable appendable ) throws IOException { doRender ( appendable ) ; content = appendable . toString ( ) ; if ( kind == null ) { resolved = StringData . forValue ( content ) ; } else { resolved = UnsafeSanitizedContentOrdainer . ordainAsSafe ( content , kind ) ; } } | Resolves the value by writing it to appendable | 77 | 10 |
30,801 | @ Override public final AbstractLoggingAdvisingAppendable appendLoggingFunctionInvocation ( LoggingFunctionInvocation funCall , ImmutableList < Function < String , String > > escapers ) throws IOException { if ( ! isLogOnly ( ) ) { doAppendLoggingFunctionInvocation ( funCall , escapers ) ; } return this ; } | Called whenever a logging function is being rendered . | 77 | 10 |
30,802 | public Expression generateMsgGroupVariable ( MsgFallbackGroupNode node ) { String tmpVarName = translationContext . nameGenerator ( ) . generateName ( "msg_s" ) ; Expression msg ; if ( node . numChildren ( ) == 1 ) { translationContext . soyToJsVariableMappings ( ) . setIsPrimaryMsgInUse ( node , Expression . LITERAL_TRUE ) ; msg = generateSingleMsgVariable ( node . getChild ( 0 ) , tmpVarName ) ; } else { // has fallbackmsg children msg = generateMsgGroupVariable ( node , tmpVarName ) ; } // handle escaping for ( SoyPrintDirective printDirective : node . getEscapingDirectives ( ) ) { msg = SoyJsPluginUtils . applyDirective ( msg , ( SoyJsSrcPrintDirective ) printDirective , /* args= */ ImmutableList . of ( ) , node . getSourceLocation ( ) , errorReporter ) ; } return msg ; } | Returns a code chunk representing a translated variable . | 211 | 9 |
30,803 | private String buildGoogMsgVarNameHelper ( MsgNode msgNode ) { // NOTE: MSG_UNNAMED/MSG_EXTERNAL are a special tokens recognized by the jscompiler. MSG_UNNAMED // disables the default logic that requires all messages to be uniquely named. // and MSG_EXTERNAL causes the jscompiler to not extract these messages. String desiredName = jsSrcOptions . googMsgsAreExternal ( ) ? "MSG_EXTERNAL_" + MsgUtils . computeMsgIdForDualFormat ( msgNode ) : "MSG_UNNAMED" ; return translationContext . nameGenerator ( ) . generateName ( desiredName ) ; } | Builds the googMsgVarName for an MsgNode . | 155 | 14 |
30,804 | protected Expression genGoogMsgPlaceholder ( MsgPlaceholderNode msgPhNode ) { List < Expression > contentChunks = new ArrayList <> ( ) ; for ( StandaloneNode contentNode : msgPhNode . getChildren ( ) ) { if ( contentNode instanceof MsgHtmlTagNode && ! isComputableAsJsExprsVisitor . exec ( contentNode ) ) { // This is a MsgHtmlTagNode that is not computable as JS expressions. Visit it to // generate code to define the 'htmlTag<n>' variable. visit ( contentNode ) ; contentChunks . add ( id ( "htmlTag" + contentNode . getId ( ) ) ) ; } else if ( contentNode instanceof CallNode ) { // If the CallNode has any CallParamContentNode children that are not computable as JS // expressions, visit them to generate code to define their respective 'param<n>' variables. CallNode callNode = ( CallNode ) contentNode ; for ( CallParamNode grandchild : callNode . getChildren ( ) ) { if ( grandchild instanceof CallParamContentNode && ! isComputableAsJsExprsVisitor . exec ( grandchild ) ) { visit ( grandchild ) ; } } Expression call = genCallCodeUtils . gen ( callNode , templateAliases , translationContext , errorReporter , master . getExprTranslator ( ) ) ; contentChunks . add ( call ) ; } else { List < Expression > chunks = genJsExprsVisitor . exec ( contentNode ) ; contentChunks . add ( CodeChunkUtils . concatChunks ( chunks ) ) ; } } return CodeChunkUtils . concatChunks ( contentChunks ) ; } | Returns a code chunk for the given placeholder node . | 378 | 10 |
30,805 | public void run ( HtmlMatcherGraph htmlMatcherGraph ) { if ( ! htmlMatcherGraph . getRootNode ( ) . isPresent ( ) ) { // Empty graph. return ; } visit ( htmlMatcherGraph . getRootNode ( ) . get ( ) ) ; for ( HtmlTagNode tag : annotationMap . keySet ( ) ) { if ( tag instanceof HtmlOpenTagNode ) { HtmlOpenTagNode openTag = ( HtmlOpenTagNode ) tag ; if ( annotationMap . containsEntry ( openTag , INVALID_NODE ) ) { if ( annotationMap . get ( openTag ) . size ( ) == 1 ) { errorReporter . report ( openTag . getSourceLocation ( ) , makeSoyErrorKind ( UNEXPECTED_OPEN_TAG_ALWAYS ) ) ; } else { errorReporter . report ( openTag . getSourceLocation ( ) , makeSoyErrorKind ( UNEXPECTED_OPEN_TAG_SOMETIMES ) ) ; } } } } // Do not annotate in inCondition because if there are errors, the nodes will be annotated // in the parent pass. The reason this happens is when the condition node is not balanced // internally but balanced globally. if ( ! errorReporter . getErrors ( ) . isEmpty ( ) && inCondition ) { return ; } for ( HtmlTagNode openTag : annotationMap . keySet ( ) ) { for ( Optional < HtmlTagNode > closeTag : annotationMap . get ( openTag ) ) { if ( closeTag . isPresent ( ) ) { openTag . addTagPair ( closeTag . get ( ) ) ; closeTag . get ( ) . addTagPair ( openTag ) ; } } } } | Runs the HtmlTagMatchingPass . | 382 | 10 |
30,806 | private void injectCloseTag ( HtmlOpenTagNode optionalOpenTag , HtmlTagNode destinationTag , IdGenerator idGenerator ) { StandaloneNode openTagCopy = optionalOpenTag . getTagName ( ) . getNode ( ) . copy ( new CopyState ( ) ) ; HtmlCloseTagNode syntheticClose = new HtmlCloseTagNode ( idGenerator . genId ( ) , openTagCopy , optionalOpenTag . getSourceLocation ( ) , TagExistence . SYNTHETIC ) ; // If destination is null, then insert at the end of the template. if ( destinationTag == null ) { int i = optionalOpenTag . getParent ( ) . getChildren ( ) . size ( ) ; optionalOpenTag . getParent ( ) . addChild ( i , syntheticClose ) ; } else { // This inserts the synthetic close tag right before the open tag. ParentSoyNode < StandaloneNode > openTagParent = destinationTag . getParent ( ) ; int i = openTagParent . getChildIndex ( destinationTag ) ; openTagParent . addChild ( i , syntheticClose ) ; } annotationMap . put ( optionalOpenTag , Optional . of ( syntheticClose ) ) ; annotationMap . put ( syntheticClose , Optional . of ( optionalOpenTag ) ) ; } | Rebalances HTML tags when necessary . | 275 | 8 |
30,807 | private void visit ( HtmlMatcherBlockNode blockNode , Map < Equivalence . Wrapper < ExprNode > , Boolean > exprValueMap , HtmlStack stack ) { if ( blockNode . getGraph ( ) . getRootNode ( ) . isPresent ( ) ) { new HtmlTagMatchingPass ( errorReporter , idGenerator , false , stack . inForeignContent , blockNode . getParentBlockType ( ) ) . run ( blockNode . getGraph ( ) ) ; } Optional < HtmlMatcherGraphNode > nextNode = blockNode . getNodeForEdgeKind ( EdgeKind . TRUE_EDGE ) ; if ( nextNode . isPresent ( ) ) { visit ( nextNode . get ( ) , exprValueMap , stack ) ; } else { checkUnusedTags ( stack ) ; } } | Blocks must be internally balanced but require knowing if they are in foreign content or not . Recursively run the tag matcher and throw away the result . | 178 | 31 |
30,808 | private void visit ( HtmlMatcherAccumulatorNode accNode , Map < Equivalence . Wrapper < ExprNode > , Boolean > exprValueMap , HtmlStack stack ) { Optional < HtmlMatcherGraphNode > nextNode = accNode . getNodeForEdgeKind ( EdgeKind . TRUE_EDGE ) ; if ( nextNode . isPresent ( ) ) { visit ( nextNode . get ( ) , exprValueMap , stack ) ; } else { checkUnusedTags ( stack ) ; } } | Accumulator nodes mostly work like HTMLMatcherTagNodes but don t add any elements . | 111 | 20 |
30,809 | public static Expression asBoxedList ( List < SoyExpression > items ) { List < Expression > childExprs = new ArrayList <> ( items . size ( ) ) ; for ( SoyExpression child : items ) { childExprs . add ( child . box ( ) ) ; } return BytecodeUtils . asList ( childExprs ) ; } | Returns an Expression that evaluates to a list containing all the items as boxed soy values . | 80 | 17 |
30,810 | private static void doBox ( CodeBuilder adapter , SoyRuntimeType type ) { if ( type . isKnownSanitizedContent ( ) ) { FieldRef . enumReference ( ContentKind . valueOf ( ( ( SanitizedType ) type . soyType ( ) ) . getContentKind ( ) . name ( ) ) ) . accessStaticUnchecked ( adapter ) ; MethodRef . ORDAIN_AS_SAFE . invokeUnchecked ( adapter ) ; } else if ( type . isKnownString ( ) ) { MethodRef . STRING_DATA_FOR_VALUE . invokeUnchecked ( adapter ) ; } else if ( type . isKnownListOrUnionOfLists ( ) ) { MethodRef . LIST_IMPL_FOR_PROVIDER_LIST . invokeUnchecked ( adapter ) ; } else if ( type . isKnownLegacyObjectMapOrUnionOfMaps ( ) ) { FieldRef . enumReference ( RuntimeMapTypeTracker . Type . LEGACY_OBJECT_MAP_OR_RECORD ) . putUnchecked ( adapter ) ; MethodRef . DICT_IMPL_FOR_PROVIDER_MAP . invokeUnchecked ( adapter ) ; } else if ( type . isKnownMapOrUnionOfMaps ( ) ) { MethodRef . MAP_IMPL_FOR_PROVIDER_MAP . invokeUnchecked ( adapter ) ; } else if ( type . isKnownProtoOrUnionOfProtos ( ) ) { MethodRef . SOY_PROTO_VALUE_CREATE . invokeUnchecked ( adapter ) ; } else { throw new IllegalStateException ( "Can't box soy expression of type " + type ) ; } } | Generates code to box the expression assuming that it is non - nullable and on the top of the stack . | 346 | 23 |
30,811 | public SoyExpression coerceToBoolean ( ) { // First deal with primitives which don't have to care about null. if ( BytecodeUtils . isPrimitive ( resultType ( ) ) ) { return coercePrimitiveToBoolean ( ) ; } if ( soyType ( ) . equals ( NullType . getInstance ( ) ) ) { return FALSE ; } if ( delegate . isNonNullable ( ) ) { return coerceNonNullableReferenceTypeToBoolean ( ) ; } else { // If we are potentially nullable, then map null to false and run the normal logic recursively // for the non-nullable branch. final Label end = new Label ( ) ; return withSource ( new Expression ( delegate . resultType ( ) , delegate . features ( ) ) { @ Override protected void doGen ( CodeBuilder adapter ) { delegate . gen ( adapter ) ; adapter . dup ( ) ; Label nonNull = new Label ( ) ; adapter . ifNonNull ( nonNull ) ; adapter . pop ( ) ; adapter . pushBoolean ( false ) ; adapter . goTo ( end ) ; adapter . mark ( nonNull ) ; } } ) . asNonNullable ( ) . coerceToBoolean ( ) . labelEnd ( end ) ; } } | Coerce this expression to a boolean value . | 272 | 10 |
30,812 | public SoyExpression coerceToString ( ) { if ( soyRuntimeType . isKnownString ( ) && ! isBoxed ( ) ) { return this ; } if ( BytecodeUtils . isPrimitive ( resultType ( ) ) ) { if ( resultType ( ) . equals ( Type . BOOLEAN_TYPE ) ) { return forString ( MethodRef . BOOLEAN_TO_STRING . invoke ( delegate ) ) ; } else if ( resultType ( ) . equals ( Type . DOUBLE_TYPE ) ) { return forString ( MethodRef . DOUBLE_TO_STRING . invoke ( delegate ) ) ; } else if ( resultType ( ) . equals ( Type . LONG_TYPE ) ) { return forString ( MethodRef . LONG_TO_STRING . invoke ( delegate ) ) ; } else { throw new AssertionError ( "resultType(): " + resultType ( ) + " is not a valid type for a SoyExpression" ) ; } } if ( ! isBoxed ( ) ) { // this is for unboxed reference types (strings, lists, protos) String.valueOf handles null // implicitly return forString ( MethodRef . STRING_VALUE_OF . invoke ( delegate ) ) ; } return forString ( MethodRef . RUNTIME_COERCE_TO_STRING . invoke ( delegate ) ) ; } | Coerce this expression to a string value . | 297 | 10 |
30,813 | public SoyExpression coerceToDouble ( ) { if ( ! isBoxed ( ) ) { if ( soyRuntimeType . isKnownFloat ( ) ) { return this ; } if ( soyRuntimeType . isKnownInt ( ) ) { return forFloat ( BytecodeUtils . numericConversion ( delegate , Type . DOUBLE_TYPE ) ) ; } throw new UnsupportedOperationException ( "Can't convert " + resultType ( ) + " to a double" ) ; } if ( soyRuntimeType . isKnownFloat ( ) ) { return forFloat ( delegate . invoke ( MethodRef . SOY_VALUE_FLOAT_VALUE ) ) ; } return forFloat ( delegate . invoke ( MethodRef . SOY_VALUE_NUMBER_VALUE ) ) ; } | Coerce this expression to a double value . Useful for float - int comparisons . | 165 | 17 |
30,814 | public static com . liferay . commerce . price . list . model . CommercePriceListAccountRel getCommercePriceListAccountRel ( long commercePriceListAccountRelId ) throws com . liferay . portal . kernel . exception . PortalException { return getService ( ) . getCommercePriceListAccountRel ( commercePriceListAccountRelId ) ; } | Returns the commerce price list account rel with the primary key . | 74 | 12 |
30,815 | @ Indexable ( type = IndexableType . DELETE ) @ Override public CommerceNotificationTemplateUserSegmentRel deleteCommerceNotificationTemplateUserSegmentRel ( long commerceNotificationTemplateUserSegmentRelId ) throws PortalException { return commerceNotificationTemplateUserSegmentRelPersistence . remove ( commerceNotificationTemplateUserSegmentRelId ) ; } | Deletes the commerce notification template user segment rel with the primary key from the database . Also notifies the appropriate model listeners . | 77 | 25 |
30,816 | @ Indexable ( type = IndexableType . DELETE ) @ Override public CommerceNotificationTemplateUserSegmentRel deleteCommerceNotificationTemplateUserSegmentRel ( CommerceNotificationTemplateUserSegmentRel commerceNotificationTemplateUserSegmentRel ) { return commerceNotificationTemplateUserSegmentRelPersistence . remove ( commerceNotificationTemplateUserSegmentRel ) ; } | Deletes the commerce notification template user segment rel from the database . Also notifies the appropriate model listeners . | 79 | 21 |
30,817 | public void setCommerceNotificationAttachmentLocalService ( com . liferay . commerce . notification . service . CommerceNotificationAttachmentLocalService commerceNotificationAttachmentLocalService ) { this . commerceNotificationAttachmentLocalService = commerceNotificationAttachmentLocalService ; } | Sets the commerce notification attachment local service . | 58 | 9 |
30,818 | public void setCommerceNotificationQueueEntryLocalService ( com . liferay . commerce . notification . service . CommerceNotificationQueueEntryLocalService commerceNotificationQueueEntryLocalService ) { this . commerceNotificationQueueEntryLocalService = commerceNotificationQueueEntryLocalService ; } | Sets the commerce notification queue entry local service . | 58 | 10 |
30,819 | public void setCommerceNotificationTemplateLocalService ( com . liferay . commerce . notification . service . CommerceNotificationTemplateLocalService commerceNotificationTemplateLocalService ) { this . commerceNotificationTemplateLocalService = commerceNotificationTemplateLocalService ; } | Sets the commerce notification template local service . | 53 | 9 |
30,820 | public void setCounterLocalService ( com . liferay . counter . kernel . service . CounterLocalService counterLocalService ) { this . counterLocalService = counterLocalService ; } | Sets the counter local service . | 38 | 7 |
30,821 | public void setClassNameLocalService ( com . liferay . portal . kernel . service . ClassNameLocalService classNameLocalService ) { this . classNameLocalService = classNameLocalService ; } | Sets the class name local service . | 43 | 8 |
30,822 | public void setResourceLocalService ( com . liferay . portal . kernel . service . ResourceLocalService resourceLocalService ) { this . resourceLocalService = resourceLocalService ; } | Sets the resource local service . | 38 | 7 |
30,823 | public void setUserLocalService ( com . liferay . portal . kernel . service . UserLocalService userLocalService ) { this . userLocalService = userLocalService ; } | Sets the user local service . | 38 | 7 |
30,824 | public void setCPAttachmentFileEntryLocalService ( com . liferay . commerce . product . service . CPAttachmentFileEntryLocalService cpAttachmentFileEntryLocalService ) { this . cpAttachmentFileEntryLocalService = cpAttachmentFileEntryLocalService ; } | Sets the cp attachment file entry local service . | 60 | 10 |
30,825 | public void setCPAttachmentFileEntryService ( com . liferay . commerce . product . service . CPAttachmentFileEntryService cpAttachmentFileEntryService ) { this . cpAttachmentFileEntryService = cpAttachmentFileEntryService ; } | Sets the cp attachment file entry remote service . | 55 | 10 |
30,826 | public void setCPDefinitionLocalService ( com . liferay . commerce . product . service . CPDefinitionLocalService cpDefinitionLocalService ) { this . cpDefinitionLocalService = cpDefinitionLocalService ; } | Sets the cp definition local service . | 47 | 8 |
30,827 | public void setCPDefinitionService ( com . liferay . commerce . product . service . CPDefinitionService cpDefinitionService ) { this . cpDefinitionService = cpDefinitionService ; } | Sets the cp definition remote service . | 42 | 8 |
30,828 | public void setCPDefinitionLinkLocalService ( com . liferay . commerce . product . service . CPDefinitionLinkLocalService cpDefinitionLinkLocalService ) { this . cpDefinitionLinkLocalService = cpDefinitionLinkLocalService ; } | Sets the cp definition link local service . | 52 | 9 |
30,829 | public void setCPDefinitionLinkService ( com . liferay . commerce . product . service . CPDefinitionLinkService cpDefinitionLinkService ) { this . cpDefinitionLinkService = cpDefinitionLinkService ; } | Sets the cp definition link remote service . | 47 | 9 |
30,830 | public void setCPDefinitionOptionRelLocalService ( com . liferay . commerce . product . service . CPDefinitionOptionRelLocalService cpDefinitionOptionRelLocalService ) { this . cpDefinitionOptionRelLocalService = cpDefinitionOptionRelLocalService ; } | Sets the cp definition option rel local service . | 57 | 10 |
30,831 | public void setCPDefinitionOptionRelService ( com . liferay . commerce . product . service . CPDefinitionOptionRelService cpDefinitionOptionRelService ) { this . cpDefinitionOptionRelService = cpDefinitionOptionRelService ; } | Sets the cp definition option rel remote service . | 52 | 10 |
30,832 | public void setCPDefinitionOptionValueRelLocalService ( com . liferay . commerce . product . service . CPDefinitionOptionValueRelLocalService cpDefinitionOptionValueRelLocalService ) { this . cpDefinitionOptionValueRelLocalService = cpDefinitionOptionValueRelLocalService ; } | Sets the cp definition option value rel local service . | 62 | 11 |
30,833 | public void setCPDefinitionOptionValueRelService ( com . liferay . commerce . product . service . CPDefinitionOptionValueRelService cpDefinitionOptionValueRelService ) { this . cpDefinitionOptionValueRelService = cpDefinitionOptionValueRelService ; } | Sets the cp definition option value rel remote service . | 57 | 11 |
30,834 | public void setCPDefinitionSpecificationOptionValueLocalService ( com . liferay . commerce . product . service . CPDefinitionSpecificationOptionValueLocalService cpDefinitionSpecificationOptionValueLocalService ) { this . cpDefinitionSpecificationOptionValueLocalService = cpDefinitionSpecificationOptionValueLocalService ; } | Sets the cp definition specification option value local service . | 67 | 11 |
30,835 | public void setCPDefinitionSpecificationOptionValueService ( com . liferay . commerce . product . service . CPDefinitionSpecificationOptionValueService cpDefinitionSpecificationOptionValueService ) { this . cpDefinitionSpecificationOptionValueService = cpDefinitionSpecificationOptionValueService ; } | Sets the cp definition specification option value remote service . | 62 | 11 |
30,836 | public void setCPDisplayLayoutLocalService ( com . liferay . commerce . product . service . CPDisplayLayoutLocalService cpDisplayLayoutLocalService ) { this . cpDisplayLayoutLocalService = cpDisplayLayoutLocalService ; } | Sets the cp display layout local service . | 52 | 9 |
30,837 | public void setCPFriendlyURLEntryLocalService ( com . liferay . commerce . product . service . CPFriendlyURLEntryLocalService cpFriendlyURLEntryLocalService ) { this . cpFriendlyURLEntryLocalService = cpFriendlyURLEntryLocalService ; } | Sets the cp friendly url entry local service . | 68 | 10 |
30,838 | public void setCPInstanceLocalService ( com . liferay . commerce . product . service . CPInstanceLocalService cpInstanceLocalService ) { this . cpInstanceLocalService = cpInstanceLocalService ; } | Sets the cp instance local service . | 43 | 8 |
30,839 | public void setCPInstanceService ( com . liferay . commerce . product . service . CPInstanceService cpInstanceService ) { this . cpInstanceService = cpInstanceService ; } | Sets the cp instance remote service . | 38 | 8 |
30,840 | public void setCPMeasurementUnitLocalService ( com . liferay . commerce . product . service . CPMeasurementUnitLocalService cpMeasurementUnitLocalService ) { this . cpMeasurementUnitLocalService = cpMeasurementUnitLocalService ; } | Sets the cp measurement unit local service . | 53 | 9 |
30,841 | public void setCPMeasurementUnitService ( com . liferay . commerce . product . service . CPMeasurementUnitService cpMeasurementUnitService ) { this . cpMeasurementUnitService = cpMeasurementUnitService ; } | Sets the cp measurement unit remote service . | 48 | 9 |
30,842 | public void setCPOptionLocalService ( com . liferay . commerce . product . service . CPOptionLocalService cpOptionLocalService ) { this . cpOptionLocalService = cpOptionLocalService ; } | Sets the cp option local service . | 44 | 8 |
30,843 | public void setCPOptionService ( com . liferay . commerce . product . service . CPOptionService cpOptionService ) { this . cpOptionService = cpOptionService ; } | Sets the cp option remote service . | 39 | 8 |
30,844 | public void setCPOptionCategoryLocalService ( com . liferay . commerce . product . service . CPOptionCategoryLocalService cpOptionCategoryLocalService ) { this . cpOptionCategoryLocalService = cpOptionCategoryLocalService ; } | Sets the cp option category local service . | 49 | 9 |
30,845 | public void setCPOptionCategoryService ( com . liferay . commerce . product . service . CPOptionCategoryService cpOptionCategoryService ) { this . cpOptionCategoryService = cpOptionCategoryService ; } | Sets the cp option category remote service . | 44 | 9 |
30,846 | public void setCPOptionValueLocalService ( com . liferay . commerce . product . service . CPOptionValueLocalService cpOptionValueLocalService ) { this . cpOptionValueLocalService = cpOptionValueLocalService ; } | Sets the cp option value local service . | 49 | 9 |
30,847 | public void setCPOptionValueService ( com . liferay . commerce . product . service . CPOptionValueService cpOptionValueService ) { this . cpOptionValueService = cpOptionValueService ; } | Sets the cp option value remote service . | 44 | 9 |
30,848 | public void setCProductLocalService ( com . liferay . commerce . product . service . CProductLocalService cProductLocalService ) { this . cProductLocalService = cProductLocalService ; } | Sets the c product local service . | 44 | 8 |
30,849 | public void setCPRuleLocalService ( com . liferay . commerce . product . service . CPRuleLocalService cpRuleLocalService ) { this . cpRuleLocalService = cpRuleLocalService ; } | Sets the cp rule local service . | 44 | 8 |
30,850 | public void setCPRuleService ( com . liferay . commerce . product . service . CPRuleService cpRuleService ) { this . cpRuleService = cpRuleService ; } | Sets the cp rule remote service . | 39 | 8 |
30,851 | public void setCPRuleAssetCategoryRelLocalService ( com . liferay . commerce . product . service . CPRuleAssetCategoryRelLocalService cpRuleAssetCategoryRelLocalService ) { this . cpRuleAssetCategoryRelLocalService = cpRuleAssetCategoryRelLocalService ; } | Sets the cp rule asset category rel local service . | 59 | 11 |
30,852 | public void setCPRuleAssetCategoryRelService ( com . liferay . commerce . product . service . CPRuleAssetCategoryRelService cpRuleAssetCategoryRelService ) { this . cpRuleAssetCategoryRelService = cpRuleAssetCategoryRelService ; } | Sets the cp rule asset category rel remote service . | 54 | 11 |
30,853 | public void setCPRuleUserSegmentRelLocalService ( com . liferay . commerce . product . service . CPRuleUserSegmentRelLocalService cpRuleUserSegmentRelLocalService ) { this . cpRuleUserSegmentRelLocalService = cpRuleUserSegmentRelLocalService ; } | Sets the cp rule user segment rel local service . | 64 | 11 |
30,854 | public void setCPRuleUserSegmentRelService ( com . liferay . commerce . product . service . CPRuleUserSegmentRelService cpRuleUserSegmentRelService ) { this . cpRuleUserSegmentRelService = cpRuleUserSegmentRelService ; } | Sets the cp rule user segment rel remote service . | 59 | 11 |
30,855 | public void setCPSpecificationOptionLocalService ( com . liferay . commerce . product . service . CPSpecificationOptionLocalService cpSpecificationOptionLocalService ) { this . cpSpecificationOptionLocalService = cpSpecificationOptionLocalService ; } | Sets the cp specification option local service . | 54 | 9 |
30,856 | public void setCPSpecificationOptionService ( com . liferay . commerce . product . service . CPSpecificationOptionService cpSpecificationOptionService ) { this . cpSpecificationOptionService = cpSpecificationOptionService ; } | Sets the cp specification option remote service . | 49 | 9 |
30,857 | public void setCPTaxCategoryLocalService ( com . liferay . commerce . product . service . CPTaxCategoryLocalService cpTaxCategoryLocalService ) { this . cpTaxCategoryLocalService = cpTaxCategoryLocalService ; } | Sets the cp tax category local service . | 49 | 9 |
30,858 | public void setClassNameService ( com . liferay . portal . kernel . service . ClassNameService classNameService ) { this . classNameService = classNameService ; } | Sets the class name remote service . | 38 | 8 |
30,859 | public void setUserService ( com . liferay . portal . kernel . service . UserService userService ) { this . userService = userService ; } | Sets the user remote service . | 33 | 7 |
30,860 | @ Override public void cacheResult ( CPRuleUserSegmentRel cpRuleUserSegmentRel ) { entityCache . putResult ( CPRuleUserSegmentRelModelImpl . ENTITY_CACHE_ENABLED , CPRuleUserSegmentRelImpl . class , cpRuleUserSegmentRel . getPrimaryKey ( ) , cpRuleUserSegmentRel ) ; cpRuleUserSegmentRel . resetOriginalValues ( ) ; } | Caches the cp rule user segment rel in the entity cache if it is enabled . | 93 | 17 |
30,861 | @ Override public void cacheResult ( List < CPRuleUserSegmentRel > cpRuleUserSegmentRels ) { for ( CPRuleUserSegmentRel cpRuleUserSegmentRel : cpRuleUserSegmentRels ) { if ( entityCache . getResult ( CPRuleUserSegmentRelModelImpl . ENTITY_CACHE_ENABLED , CPRuleUserSegmentRelImpl . class , cpRuleUserSegmentRel . getPrimaryKey ( ) ) == null ) { cacheResult ( cpRuleUserSegmentRel ) ; } else { cpRuleUserSegmentRel . resetOriginalValues ( ) ; } } } | Caches the cp rule user segment rels in the entity cache if it is enabled . | 135 | 18 |
30,862 | @ Override public void clearCache ( ) { entityCache . clearCache ( CPRuleUserSegmentRelImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; } | Clears the cache for all cp rule user segment rels . | 100 | 13 |
30,863 | @ Override public void clearCache ( CPRuleUserSegmentRel cpRuleUserSegmentRel ) { entityCache . removeResult ( CPRuleUserSegmentRelModelImpl . ENTITY_CACHE_ENABLED , CPRuleUserSegmentRelImpl . class , cpRuleUserSegmentRel . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; } | Clears the cache for the cp rule user segment rel . | 126 | 12 |
30,864 | @ Override public List < CPRuleUserSegmentRel > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; } | Returns all the cp rule user segment rels . | 42 | 10 |
30,865 | @ Indexable ( type = IndexableType . DELETE ) @ Override public CommerceAddressRestriction deleteCommerceAddressRestriction ( long commerceAddressRestrictionId ) throws PortalException { return commerceAddressRestrictionPersistence . remove ( commerceAddressRestrictionId ) ; } | Deletes the commerce address restriction with the primary key from the database . Also notifies the appropriate model listeners . | 57 | 22 |
30,866 | @ Indexable ( type = IndexableType . REINDEX ) @ Override public CPDefinitionOptionValueRel addCPDefinitionOptionValueRel ( CPDefinitionOptionValueRel cpDefinitionOptionValueRel ) { cpDefinitionOptionValueRel . setNew ( true ) ; return cpDefinitionOptionValueRelPersistence . update ( cpDefinitionOptionValueRel ) ; } | Adds the cp definition option value rel to the database . Also notifies the appropriate model listeners . | 79 | 19 |
30,867 | public void setExpandoRowLocalService ( com . liferay . expando . kernel . service . ExpandoRowLocalService expandoRowLocalService ) { this . expandoRowLocalService = expandoRowLocalService ; } | Sets the expando row local service . | 49 | 9 |
30,868 | @ Override public String getDescription ( String languageId , boolean useDefault ) { return _cpOptionCategory . getDescription ( languageId , useDefault ) ; } | Returns the localized description of this cp option category in the language optionally using the default language if no localization exists for the requested language . | 34 | 26 |
30,869 | @ Override public String getTitle ( String languageId , boolean useDefault ) { return _cpOptionCategory . getTitle ( languageId , useDefault ) ; } | Returns the localized title of this cp option category in the language optionally using the default language if no localization exists for the requested language . | 34 | 26 |
30,870 | @ Override public void setTitle ( String title , java . util . Locale locale , java . util . Locale defaultLocale ) { _cpOptionCategory . setTitle ( title , locale , defaultLocale ) ; } | Sets the localized title of this cp option category in the language and sets the default locale . | 48 | 19 |
30,871 | @ Indexable ( type = IndexableType . DELETE ) @ Override public CommerceOrderNote deleteCommerceOrderNote ( long commerceOrderNoteId ) throws PortalException { return commerceOrderNotePersistence . remove ( commerceOrderNoteId ) ; } | Deletes the commerce order note with the primary key from the database . Also notifies the appropriate model listeners . | 52 | 22 |
30,872 | @ Override public CommerceOrderNote fetchCommerceOrderNoteByReferenceCode ( long companyId , String externalReferenceCode ) { return commerceOrderNotePersistence . fetchByC_ERC ( companyId , null ) ; } | Returns the commerce order note with the matching external reference code and company . | 45 | 14 |
30,873 | @ Override public void cacheResult ( CProduct cProduct ) { entityCache . putResult ( CProductModelImpl . ENTITY_CACHE_ENABLED , CProductImpl . class , cProduct . getPrimaryKey ( ) , cProduct ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { cProduct . getUuid ( ) , cProduct . getGroupId ( ) } , cProduct ) ; cProduct . resetOriginalValues ( ) ; } | Caches the c product in the entity cache if it is enabled . | 117 | 14 |
30,874 | @ Override public void cacheResult ( List < CProduct > cProducts ) { for ( CProduct cProduct : cProducts ) { if ( entityCache . getResult ( CProductModelImpl . ENTITY_CACHE_ENABLED , CProductImpl . class , cProduct . getPrimaryKey ( ) ) == null ) { cacheResult ( cProduct ) ; } else { cProduct . resetOriginalValues ( ) ; } } } | Caches the c products in the entity cache if it is enabled . | 93 | 14 |
30,875 | @ Override public void clearCache ( ) { entityCache . clearCache ( CProductImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; } | Clears the cache for all c products . | 96 | 9 |
30,876 | @ Override public void clearCache ( CProduct cProduct ) { entityCache . removeResult ( CProductModelImpl . ENTITY_CACHE_ENABLED , CProductImpl . class , cProduct . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CProductModelImpl ) cProduct , true ) ; } | Clears the cache for the c product . | 124 | 9 |
30,877 | @ Override public List < CProduct > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; } | Returns all the c products . | 38 | 6 |
30,878 | @ Override public com . liferay . commerce . shipping . engine . fixed . model . CommerceShippingFixedOptionRel getCommerceShippingFixedOptionRel ( long commerceShippingFixedOptionRelId ) throws com . liferay . portal . kernel . exception . PortalException { return _commerceShippingFixedOptionRelLocalService . getCommerceShippingFixedOptionRel ( commerceShippingFixedOptionRelId ) ; } | Returns the commerce shipping fixed option rel with the primary key . | 82 | 12 |
30,879 | public void setCommerceDiscountLocalService ( com . liferay . commerce . discount . service . CommerceDiscountLocalService commerceDiscountLocalService ) { this . commerceDiscountLocalService = commerceDiscountLocalService ; } | Sets the commerce discount local service . | 48 | 8 |
30,880 | public void setCommerceDiscountService ( com . liferay . commerce . discount . service . CommerceDiscountService commerceDiscountService ) { this . commerceDiscountService = commerceDiscountService ; } | Sets the commerce discount remote service . | 43 | 8 |
30,881 | public void setCommerceDiscountRelLocalService ( com . liferay . commerce . discount . service . CommerceDiscountRelLocalService commerceDiscountRelLocalService ) { this . commerceDiscountRelLocalService = commerceDiscountRelLocalService ; } | Sets the commerce discount rel local service . | 53 | 9 |
30,882 | public void setCommerceDiscountRuleLocalService ( com . liferay . commerce . discount . service . CommerceDiscountRuleLocalService commerceDiscountRuleLocalService ) { this . commerceDiscountRuleLocalService = commerceDiscountRuleLocalService ; } | Sets the commerce discount rule local service . | 53 | 9 |
30,883 | public void setCommerceDiscountRuleService ( com . liferay . commerce . discount . service . CommerceDiscountRuleService commerceDiscountRuleService ) { this . commerceDiscountRuleService = commerceDiscountRuleService ; } | Sets the commerce discount rule remote service . | 48 | 9 |
30,884 | public void setCommerceDiscountUsageEntryLocalService ( com . liferay . commerce . discount . service . CommerceDiscountUsageEntryLocalService commerceDiscountUsageEntryLocalService ) { this . commerceDiscountUsageEntryLocalService = commerceDiscountUsageEntryLocalService ; } | Sets the commerce discount usage entry local service . | 58 | 10 |
30,885 | public void setCommerceDiscountUserSegmentRelLocalService ( com . liferay . commerce . discount . service . CommerceDiscountUserSegmentRelLocalService commerceDiscountUserSegmentRelLocalService ) { this . commerceDiscountUserSegmentRelLocalService = commerceDiscountUserSegmentRelLocalService ; } | Sets the commerce discount user segment rel local service . | 68 | 11 |
30,886 | public void setCommerceDiscountUserSegmentRelService ( com . liferay . commerce . discount . service . CommerceDiscountUserSegmentRelService commerceDiscountUserSegmentRelService ) { this . commerceDiscountUserSegmentRelService = commerceDiscountUserSegmentRelService ; } | Sets the commerce discount user segment rel remote service . | 63 | 11 |
30,887 | @ Override public CPOption fetchCPOptionByReferenceCode ( long companyId , String externalReferenceCode ) { return cpOptionPersistence . fetchByC_ERC ( companyId , null ) ; } | Returns the cp option with the matching external reference code and company . | 43 | 13 |
30,888 | @ Override public List < CPOption > getCPOptionsByUuidAndCompanyId ( String uuid , long companyId , int start , int end , OrderByComparator < CPOption > orderByComparator ) { return cpOptionPersistence . findByUuid_C ( uuid , companyId , start , end , orderByComparator ) ; } | Returns a range of cp options matching the UUID and company . | 79 | 13 |
30,889 | @ Override public void cacheResult ( CPOptionValue cpOptionValue ) { entityCache . putResult ( CPOptionValueModelImpl . ENTITY_CACHE_ENABLED , CPOptionValueImpl . class , cpOptionValue . getPrimaryKey ( ) , cpOptionValue ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_UUID_G , new Object [ ] { cpOptionValue . getUuid ( ) , cpOptionValue . getGroupId ( ) } , cpOptionValue ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_K , new Object [ ] { cpOptionValue . getCPOptionId ( ) , cpOptionValue . getKey ( ) } , cpOptionValue ) ; finderCache . putResult ( FINDER_PATH_FETCH_BY_C_ERC , new Object [ ] { cpOptionValue . getCompanyId ( ) , cpOptionValue . getExternalReferenceCode ( ) } , cpOptionValue ) ; cpOptionValue . resetOriginalValues ( ) ; } | Caches the cp option value in the entity cache if it is enabled . | 239 | 15 |
30,890 | @ Override public void cacheResult ( List < CPOptionValue > cpOptionValues ) { for ( CPOptionValue cpOptionValue : cpOptionValues ) { if ( entityCache . getResult ( CPOptionValueModelImpl . ENTITY_CACHE_ENABLED , CPOptionValueImpl . class , cpOptionValue . getPrimaryKey ( ) ) == null ) { cacheResult ( cpOptionValue ) ; } else { cpOptionValue . resetOriginalValues ( ) ; } } } | Caches the cp option values in the entity cache if it is enabled . | 107 | 15 |
30,891 | @ Override public void clearCache ( ) { entityCache . clearCache ( CPOptionValueImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; } | Clears the cache for all cp option values . | 98 | 10 |
30,892 | @ Override public void clearCache ( CPOptionValue cpOptionValue ) { entityCache . removeResult ( CPOptionValueModelImpl . ENTITY_CACHE_ENABLED , CPOptionValueImpl . class , cpOptionValue . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; clearUniqueFindersCache ( ( CPOptionValueModelImpl ) cpOptionValue , true ) ; } | Clears the cache for the cp option value . | 135 | 10 |
30,893 | @ Override public List < CPOptionValue > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; } | Returns all the cp option values . | 40 | 7 |
30,894 | @ Override public void cacheResult ( CommerceOrderPayment commerceOrderPayment ) { entityCache . putResult ( CommerceOrderPaymentModelImpl . ENTITY_CACHE_ENABLED , CommerceOrderPaymentImpl . class , commerceOrderPayment . getPrimaryKey ( ) , commerceOrderPayment ) ; commerceOrderPayment . resetOriginalValues ( ) ; } | Caches the commerce order payment in the entity cache if it is enabled . | 79 | 15 |
30,895 | @ Override public void cacheResult ( List < CommerceOrderPayment > commerceOrderPayments ) { for ( CommerceOrderPayment commerceOrderPayment : commerceOrderPayments ) { if ( entityCache . getResult ( CommerceOrderPaymentModelImpl . ENTITY_CACHE_ENABLED , CommerceOrderPaymentImpl . class , commerceOrderPayment . getPrimaryKey ( ) ) == null ) { cacheResult ( commerceOrderPayment ) ; } else { commerceOrderPayment . resetOriginalValues ( ) ; } } } | Caches the commerce order payments in the entity cache if it is enabled . | 113 | 15 |
30,896 | @ Override public void clearCache ( ) { entityCache . clearCache ( CommerceOrderPaymentImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; } | Clears the cache for all commerce order payments . | 98 | 10 |
30,897 | @ Override public void clearCache ( CommerceOrderPayment commerceOrderPayment ) { entityCache . removeResult ( CommerceOrderPaymentModelImpl . ENTITY_CACHE_ENABLED , CommerceOrderPaymentImpl . class , commerceOrderPayment . getPrimaryKey ( ) ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ; } | Clears the cache for the commerce order payment . | 116 | 10 |
30,898 | @ Override public List < CommerceOrderPayment > findAll ( ) { return findAll ( QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; } | Returns all the commerce order payments . | 40 | 7 |
30,899 | @ Override public String getValue ( java . util . Locale locale ) { return _cpDefinitionSpecificationOptionValue . getValue ( locale ) ; } | Returns the localized value of this cp definition specification option value in the language . Uses the default language if no localization exists for the requested language . | 33 | 28 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.