本文整理汇总了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;
}
示例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;
}
}
示例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;
}
示例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;
}
示例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;
}
示例6: getSum
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore; //导入依赖的package包/类
@DynamoDBIgnore
public double getSum() {
return super.getSum();
}
示例7: isEmpty
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore; //导入依赖的package包/类
@DynamoDBIgnore
public boolean isEmpty() {
return super.isEmpty();
}
示例8: getSum
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore; //导入依赖的package包/类
@DynamoDBIgnore
public double getSum() {
return amount * price;
}
示例9: isEmpty
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore; //导入依赖的package包/类
@DynamoDBIgnore
public boolean isEmpty() {
return getAmount() <= 0.0 || getPrice() <= 0.0;
}
示例10: getSearchId
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore; //导入依赖的package包/类
@Override
@JsonIgnore
@DynamoDBIgnore
public String getSearchId() {
return guid;
}
示例11: compareTo
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore; //导入依赖的package包/类
@DynamoDBIgnore
@Override
public int compareTo(Domain compareDomain){
return (this.getDomainName()).compareTo(compareDomain.getDomainName());
}
示例12: getSourceFileName
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore; //导入依赖的package包/类
@DynamoDBIgnore
public String getSourceFileName() {
return options.split(", ")[0];
}
示例13: getAvailabilityZone
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore; //导入依赖的package包/类
@DynamoDBIgnore
public String getAvailabilityZone() {
return options.split(", ")[1];
}
示例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;
}
}
示例15: getIgnored
import com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore; //导入依赖的package包/类
@DynamoDBIgnore
public String getIgnored() {
return ignored;
}