All Downloads are FREE. Search and download functionalities are using the official Maven repository.

.hazelcast-code-generator.1.8.0-6.source-code.compatibility-common.ftl Maven / Gradle / Ivy

There is a newer version: 3.6-EA3
Show newest version
<#function convertTypeToSampleValue javaType>
    <#switch javaType?trim>
        <#case "int">
            <#return "anInt">
        <#case "short">
            <#return "aShort">
        <#case "boolean">
            <#return "aBoolean">
        <#case "byte">
            <#return "aByte">
        <#case "long">
            <#return "aLong">
        <#case "char">
            <#return "aChar">
        <#case "long[]">
            <#return "arrLongs">
        <#case util.DATA_FULL_NAME>
            <#return "aData">
        <#case "java.lang.String">
            <#return "aString">
        <#case "java.util.UUID">
            <#return "aUUID">
        <#case "boolean">
            <#return "boolean">
        <#case "java.util.List<" + util.DATA_FULL_NAME + ">">
            <#return "datas">
        <#case "java.util.List">
            <#return "members">
        <#case "java.util.List">
            <#return "distributedObjectInfos">
        <#case "java.util.List>>">
            <#return "aPartitionTable">
        <#case "java.util.List>">
            <#return "aListOfEntry">
        <#case "java.util.List>>">
            <#return "taskHandlers">
        <#case "com.hazelcast.map.impl.SimpleEntryView<" + util.DATA_FULL_NAME +"," + util.DATA_FULL_NAME +">">
            <#return "anEntryView">
        <#case "java.util.List>>>">
            <#return "aNamePartitionSequenceList">
        <#case "java.util.List>">
            <#return "aPartitionUuidList">
        <#case "java.util.List>">
            <#return "aListOfStringToByteArrEntry">
        <#case "com.hazelcast.nio.Address">
            <#return "anAddress">
        <#case "com.hazelcast.core.Member">
            <#return "aMember">
        <#case "javax.transaction.xa.Xid">
            <#return "anXid">
        <#case "com.hazelcast.map.impl.querycache.event.QueryCacheEventData">
            <#return "aQueryCacheEventData">
        <#case "java.util.List">
            <#return "jobPartitionStates">
        <#case "java.util.List">
            <#return "queryCacheEventDatas">
        <#case "java.util.List">
            <#return "cacheEventDatas">
        <#case "java.util.List">
            <#return "strings">
        <#case "java.util.List">
            <#return "longs">
        <#case "java.util.List">
            <#return "uuids">
        <#case "java.util.List">
            <#return "listenerConfigs">
        <#case "com.hazelcast.client.impl.protocol.task.dynamicconfig.RingbufferStoreConfigHolder">
            <#return "ringbufferStore">
        <#case "com.hazelcast.client.impl.protocol.task.dynamicconfig.QueueStoreConfigHolder">
            <#return "queueStoreConfig">
        <#case "com.hazelcast.client.impl.protocol.task.dynamicconfig.MapStoreConfigHolder">
            <#return "mapStoreConfig">
        <#case "com.hazelcast.client.impl.protocol.task.dynamicconfig.NearCacheConfigHolder">
            <#return "nearCacheConfig">
        <#case "com.hazelcast.config.WanReplicationRef">
            <#return "wanReplicationRef">
        <#case "java.util.List">
            <#return "mapIndexConfigs">
        <#case "java.util.List">
            <#return "mapAttributeConfigs">
        <#case "java.util.List">
            <#return "queryCacheConfigs">
        <#case "com.hazelcast.config.HotRestartConfig">
            <#return "hotRestartConfig">
        <#case "com.hazelcast.config.CacheSimpleConfig.ExpiryPolicyFactoryConfig.TimedExpiryPolicyFactoryConfig">
            <#return "timedExpiryPolicyFactoryConfig">
        <#case "java.util.List">
            <#return "cacheEntryListenerConfigs">
        <#case "com.hazelcast.client.impl.protocol.task.dynamicconfig.EvictionConfigHolder">
            <#return "evictionConfig">
        <#case "java.util.List>">
            <#return "aListOfStringToLong">
        <#case "java.util.List>">
             <#return "aListOfStringToString">
         <#case "java.lang.Integer">
            <#return "anInt">
        <#default>
            <#return "Unknown Data Type " + javaType>
    





© 2015 - 2024 Weber Informatics LLC | Privacy Policy