Java 类com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBIgnore 实例源码

项目:mosquito-report-api    文件:Focus.java   
@JsonIgnore
@DynamoDBIgnore
public Focus thumbsup() {
    thumbsup += 1;

    return this;
}
项目:duckdns    文件:Account.java   
@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;
    }
}
项目:duckdns    文件:Account.java   
@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;
    }
}
项目:querydsl-contrib    文件:DynamoAnnotationProcessor.java   
@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;
}
项目:hn_firebase_listener    文件:HNItemItem.java   
@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;
}
项目:hn_firebase_listener    文件:HNUserItem.java   
@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;
}
项目:aws-amazon-shopping-bot-lambda-func    文件:OrderItem.java   
@DynamoDBIgnore
public double getSum() {
    return super.getSum();
}
项目:aws-amazon-shopping-bot-lambda-func    文件:OrderItem.java   
@DynamoDBIgnore
public boolean isEmpty() {
    return super.isEmpty();
}
项目:aws-amazon-shopping-bot-lambda-func    文件:OrderItemInfo.java   
@DynamoDBIgnore
public double getSum() {
    return amount * price;
}
项目:aws-amazon-shopping-bot-lambda-func    文件:OrderItemInfo.java   
@DynamoDBIgnore
public boolean isEmpty() {
    return getAmount() <= 0.0 || getPrice() <= 0.0;
}
项目:aws-amazon-shopping-bot-lambda-func    文件:ShoppingCartItem.java   
@DynamoDBIgnore
public double getSum() {
    return super.getSum();
}
项目:aws-amazon-shopping-bot-lambda-func    文件:ShoppingCartItem.java   
@DynamoDBIgnore
public boolean isEmpty() {
    return super.isEmpty();
}
项目:mosquito-report-api    文件:Focus.java   
@Override
@JsonIgnore
@DynamoDBIgnore
public String getSearchId() {
    return guid;
}
项目:duckdns    文件:Domain.java   
@DynamoDBIgnore
@Override
public int compareTo(Domain compareDomain){
    return (this.getDomainName()).compareTo(compareDomain.getDomainName());
}
项目:duckdns    文件:Domain.java   
@DynamoDBIgnore
@Override
public int compareTo(Domain compareDomain){
    return (this.getDomainName()).compareTo(compareDomain.getDomainName());
}
项目:enhanced-snapshots    文件:TaskEntry.java   
@DynamoDBIgnore
public String getSourceFileName() {
    return options.split(", ")[0];
}
项目:enhanced-snapshots    文件:TaskEntry.java   
@DynamoDBIgnore
public String getAvailabilityZone() {
    return options.split(", ")[1];
}
项目:hn_firebase_listener    文件:HNUserItem.java   
@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;
    }
}
项目:aws-dynamodb-encryption-java    文件:NumberAttributeTestClass.java   
@DynamoDBIgnore
public String getIgnored() {
    return ignored;
}
项目:spring-data-dynamodb    文件:DynamoDBPersistentPropertyImpl.java   
@Override
public boolean isWritable() {
    return !isAnnotationPresent(DynamoDBIgnore.class);
}
项目:spring-data-dynamodb    文件:DynamoDBPersistentPropertyImpl.java   
@Override
public boolean isTransient() {
    return isAnnotationPresent(Transient.class) || super.isTransient() || isAnnotationPresent(DynamoDBIgnore.class);
}
项目:spring-data-dynamodb    文件:DynamoDBPersistentPropertyImplUnitTests.java   
@DynamoDBIgnore
public String getIgnoredProp() {
    return ignoredProp;
}
项目:wildfly-camel    文件:CatalogItem.java   
@DynamoDBIgnore
public String getSomeProp() { return someProp;}
项目:qpp-conversion-tool    文件:Metadata.java   
/**
 * 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;
}