@JsonIgnore @DynamoDBIgnore public Focus thumbsup() { thumbsup += 1; return this; }
@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; } }
@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; }
@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; }
@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; }
@DynamoDBIgnore public double getSum() { return super.getSum(); }
@DynamoDBIgnore public boolean isEmpty() { return super.isEmpty(); }
@DynamoDBIgnore public double getSum() { return amount * price; }
@DynamoDBIgnore public boolean isEmpty() { return getAmount() <= 0.0 || getPrice() <= 0.0; }
@Override @JsonIgnore @DynamoDBIgnore public String getSearchId() { return guid; }
@DynamoDBIgnore @Override public int compareTo(Domain compareDomain){ return (this.getDomainName()).compareTo(compareDomain.getDomainName()); }
@DynamoDBIgnore public String getSourceFileName() { return options.split(", ")[0]; }
@DynamoDBIgnore public String getAvailabilityZone() { return options.split(", ")[1]; }
@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; } }
@DynamoDBIgnore public String getIgnored() { return ignored; }
@Override public boolean isWritable() { return !isAnnotationPresent(DynamoDBIgnore.class); }
@Override public boolean isTransient() { return isAnnotationPresent(Transient.class) || super.isTransient() || isAnnotationPresent(DynamoDBIgnore.class); }
@DynamoDBIgnore public String getIgnoredProp() { return ignoredProp; }
@DynamoDBIgnore public String getSomeProp() { return someProp;}
/** * Whether the file was processed by the CPC+ team * * Ignored when writing to DynamoDB because {@code CpcProcessed_CreateDate} holds the pertinent information. * * @return Whether the file was processed. */ @DynamoDBIgnore public Boolean getCpcProcessed() { return cpcProcessed; }