当前位置: 首页>>代码示例>>Java>>正文


Java DynamoDBIgnore类代码示例

本文整理汇总了Java中com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore的典型用法代码示例。如果您正苦于以下问题:Java DynamoDBIgnore类的具体用法?Java DynamoDBIgnore怎么用?Java DynamoDBIgnore使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


DynamoDBIgnore类属于com.amazonaws.services.dynamodbv2.datamodeling包,在下文中一共展示了DynamoDBIgnore类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: thumbsup

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore; //导入依赖的package包/类
@JsonIgnore
@DynamoDBIgnore
public Focus thumbsup() {
    thumbsup += 1;
    
    return this;
}
 
开发者ID:coding4people,项目名称:mosquito-report-api,代码行数:8,代码来源:Focus.java

示例2: getMaxDomains

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore; //导入依赖的package包/类
@DynamoDBIgnore
public int getMaxDomains() {
	if (getAccountType() != null && getAccountType().equals(ACCOUNT_DONATE)) {
		return Domain.MAX_DOMAINS_DONATE;
	} else if (getAccountType() != null && getAccountType().equals(ACCOUNT_FRIENDS_OF_DUCK)) {
		return Domain.MAX_DOMAINS_FRIENDS_OF_DUCK;
	} else if (getAccountType() != null && getAccountType().equals(ACCOUNT_SUPER_DUCK)) {
		return Domain.MAX_DOMAINS_SUPER_DUCK;
	} else if (getAccountType() != null && getAccountType().equals(ACCOUNT_NAUGHTY_DUCK)) {
		return Domain.MAX_DOMAINS_NAUGHTY_DUCK;
	} else {
		return Domain.MAX_DOMAINS_FREE;
	}
}
 
开发者ID:tahamsaglam,项目名称:duckdns,代码行数:15,代码来源:Account.java

示例3: createConfiguration

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore; //导入依赖的package包/类
@Override
protected Configuration createConfiguration(RoundEnvironment roundEnv) {
    Class<? extends Annotation> entities = QueryEntities.class;
    Class<? extends Annotation> entity = DynamoDBTable.class;
    Class<? extends Annotation> skip = DynamoDBIgnore.class;
    DefaultConfiguration conf = new DefaultConfiguration(roundEnv, processingEnv.getOptions(), Collections.<String>emptySet(),
            entities, entity, null, null, null, skip);
    return conf;
}
 
开发者ID:querydsl,项目名称:querydsl-contrib,代码行数:10,代码来源:DynamoAnnotationProcessor.java

示例4: compareTo

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore; //导入依赖的package包/类
@DynamoDBIgnore
public int compareTo(HNItemItem o) // this makes more recent comments come first
{
    long othertime = ((HNItemItem)o).getTime();
    if(othertime < getTime()) // this is to prevent equals
    	return 1;
    else if(othertime > getTime())
    	return -1;
    else
    	return 0;
}
 
开发者ID:fivedogit,项目名称:hn_firebase_listener,代码行数:12,代码来源:HNItemItem.java

示例5: compareTo

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore; //导入依赖的package包/类
@DynamoDBIgnore
public int compareTo(HNUserItem o) // this makes more recent comments come first
{
    String otherscreenname = ((HNUserItem)o).getId();
    int x = otherscreenname.compareTo(getId());
    if(x >= 0) // this is to prevent equals
    	return 1;
    else
    	return -1;
}
 
开发者ID:fivedogit,项目名称:hn_firebase_listener,代码行数:11,代码来源:HNUserItem.java

示例6: getSum

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore; //导入依赖的package包/类
@DynamoDBIgnore
public double getSum() {
    return super.getSum();
}
 
开发者ID:satr,项目名称:aws-amazon-shopping-bot-lambda-func,代码行数:5,代码来源:OrderItem.java

示例7: isEmpty

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore; //导入依赖的package包/类
@DynamoDBIgnore
public boolean isEmpty() {
    return super.isEmpty();
}
 
开发者ID:satr,项目名称:aws-amazon-shopping-bot-lambda-func,代码行数:5,代码来源:OrderItem.java

示例8: getSum

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore; //导入依赖的package包/类
@DynamoDBIgnore
public double getSum() {
    return amount * price;
}
 
开发者ID:satr,项目名称:aws-amazon-shopping-bot-lambda-func,代码行数:5,代码来源:OrderItemInfo.java

示例9: isEmpty

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore; //导入依赖的package包/类
@DynamoDBIgnore
public boolean isEmpty() {
    return getAmount() <= 0.0 || getPrice() <= 0.0;
}
 
开发者ID:satr,项目名称:aws-amazon-shopping-bot-lambda-func,代码行数:5,代码来源:OrderItemInfo.java

示例10: getSearchId

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore; //导入依赖的package包/类
@Override
@JsonIgnore
@DynamoDBIgnore
public String getSearchId() {
    return guid;
}
 
开发者ID:coding4people,项目名称:mosquito-report-api,代码行数:7,代码来源:Focus.java

示例11: compareTo

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore; //导入依赖的package包/类
@DynamoDBIgnore
@Override
public int compareTo(Domain compareDomain){
	return (this.getDomainName()).compareTo(compareDomain.getDomainName());
}
 
开发者ID:tahamsaglam,项目名称:duckdns,代码行数:6,代码来源:Domain.java

示例12: getSourceFileName

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore; //导入依赖的package包/类
@DynamoDBIgnore
public String getSourceFileName() {
    return options.split(", ")[0];
}
 
开发者ID:SungardAS,项目名称:enhanced-snapshots,代码行数:5,代码来源:TaskEntry.java

示例13: getAvailabilityZone

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore; //导入依赖的package包/类
@DynamoDBIgnore
public String getAvailabilityZone() {
    return options.split(", ")[1];
}
 
开发者ID:SungardAS,项目名称:enhanced-snapshots,代码行数:5,代码来源:TaskEntry.java

示例14: getHNItemsByd

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore; //导入依赖的package包/类
@DynamoDBIgnore
public HashSet<HNItemItem> getHNItemsByd(int minutes_ago, DynamoDBMapper mapper, DynamoDBMapperConfig dynamo_config) { 
	// set up an expression to query screename#id
	DynamoDBQueryExpression<HNItemItem> queryExpression = new DynamoDBQueryExpression<HNItemItem>()
			.withIndexName("by-time-index")
			.withScanIndexForward(true)
			.withConsistentRead(false);
        
	// set the user_id part
	HNItemItem key = new HNItemItem();
	key.setBy(getId());
	queryExpression.setHashKeyValues(key);
	
	// set the msfe range part
	if(minutes_ago > 0)
	{
		//System.out.println("Getting comment children with a valid cutoff time.");
		Calendar cal = Calendar.getInstance();
		cal.add(Calendar.MINUTE, (minutes_ago * -1));
		long time_cutoff = cal.getTimeInMillis() / 1000;
		// set the msfe range part
		Map<String, Condition> keyConditions = new HashMap<String, Condition>();
		keyConditions.put("time",new Condition()
		.withComparisonOperator(ComparisonOperator.GT)
		.withAttributeValueList(new AttributeValue().withN(new Long(time_cutoff).toString())));
		queryExpression.setRangeKeyConditions(keyConditions);
	}	

	// execute
	List<HNItemItem> notificationitems = mapper.query(HNItemItem.class, queryExpression, dynamo_config);
	if(notificationitems != null && notificationitems.size() > 0)
	{	
		HashSet<HNItemItem> returnset = new HashSet<HNItemItem>();
		for (HNItemItem notificationitem : notificationitems) {
			returnset.add(notificationitem);
		}
		return returnset;
	}
	else
	{
		return null;
	}
}
 
开发者ID:fivedogit,项目名称:hn_firebase_listener,代码行数:44,代码来源:HNUserItem.java

示例15: getIgnored

import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore; //导入依赖的package包/类
@DynamoDBIgnore
public String getIgnored() {
    return ignored;
}
 
开发者ID:awslabs,项目名称:aws-dynamodb-encryption-java,代码行数:5,代码来源:NumberAttributeTestClass.java


注:本文中的com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。