* @param name
* @param secondaryIndexes
*/
public Resource(int id, String name, int columnType, boolean isPartitioningResource, Collection<SecondaryIndex> secondaryIndexes) {
this.id = id;
this.columnInfo = new ColumnInfo(name, columnType);
this.isPartitioningResource = isPartitioningResource;
this.secondaryIndexes = insetThisInstance(secondaryIndexes);
this.idIndex = new ResourceIndex(name, columnType);
idIndex.setResource(this);
}