com.fnklabs.draenei.orm.PrimaryKeyMetadata Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fnklabs-draenei Show documentation
Show all versions of fnklabs-draenei Show documentation
ORM for Cassandra but with distributed cache and analytics utils from package
package com.fnklabs.draenei.orm;
import java.beans.PropertyDescriptor;
class PrimaryKeyMetadata extends ColumnMetadata {
/**
* Primary key order
*/
private final int order;
/**
* Flag that can determine if current key is belong to partition keys
*/
private final boolean isPartitionKey;
/**
* @param propertyDescriptor Field property descriptor
* @param name Primary key name
* @param order Primary key order (from 0 to n) 0 means first
* @param isPartitionKey Flag that can determine if current key is belong to partition keys
* @param type Field java class type
*/
public PrimaryKeyMetadata(PropertyDescriptor propertyDescriptor,
String name,
int order,
boolean isPartitionKey,
Class type,
com.datastax.driver.core.ColumnMetadata columnMetadata) {
super(propertyDescriptor, type, name, columnMetadata);
this.order = order;
this.isPartitionKey = isPartitionKey;
}
public int getOrder() {
return order;
}
public boolean isPartitionKey() {
return isPartitionKey;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy