package org.goodev.discourse.model;
import android.content.ContentValues;
import android.database.Cursor;
import org.goodev.discourse.database.tables.Category_propertiesTable;
/**
* Generated model class for usage in your application, defined by classifiers in ecore diagram
* <p/>
* Generated Class. Do not modify!
*
* @author MDSDACP Team - goetzfred@fh-bingen.de
* @date 2013.09.22
*/
public class Category_properties {
private final ContentValues values = new ContentValues();
private Long id;
private boolean can_create_category;
private boolean can_create_topic;
private java.lang.String draft;
private java.lang.String draft_key;
private long draft_sequence;
public Category_properties() {
}
public Category_properties(final Cursor cursor) {
setId(cursor.getLong(cursor.getColumnIndex(Category_propertiesTable.ID)));
setCan_create_category(cursor.isNull(cursor.getColumnIndex(Category_propertiesTable.CAN_CREATE_CATEGORY)) ? false : (cursor.getInt(cursor.getColumnIndex(Category_propertiesTable.CAN_CREATE_CATEGORY)) != 0));
setCan_create_topic(cursor.isNull(cursor.getColumnIndex(Category_propertiesTable.CAN_CREATE_TOPIC)) ? false : (cursor.getInt(cursor.getColumnIndex(Category_propertiesTable.CAN_CREATE_TOPIC)) != 0));
setDraft(cursor.getString(cursor.getColumnIndex(Category_propertiesTable.DRAFT)));
setDraft_key(cursor.getString(cursor.getColumnIndex(Category_propertiesTable.DRAFT_KEY)));
setDraft_sequence(cursor.getLong(cursor.getColumnIndex(Category_propertiesTable.DRAFT_SEQUENCE)));
}
/**
* Get id
*
* @return id from type java.lang.Long
*/
public Long getId() {
return this.id;
}
/**
* Set id
*
* @param id from type java.lang.Long
*/
public void setId(final Long id) {
this.id = id;
this.values.put(Category_propertiesTable.ID, id);
}
/**
* Get can_create_category
*
* @return can_create_category from type boolean
*/
public boolean getCan_create_category() {
return this.can_create_category;
}
/**
* Set can_create_category and set content value
*
* @param can_create_category from type boolean
*/
public void setCan_create_category(final boolean can_create_category) {
this.can_create_category = can_create_category;
this.values.put(Category_propertiesTable.CAN_CREATE_CATEGORY, can_create_category);
}
/**
* Get can_create_topic
*
* @return can_create_topic from type boolean
*/
public boolean getCan_create_topic() {
return this.can_create_topic;
}
/**
* Set can_create_topic and set content value
*
* @param can_create_topic from type boolean
*/
public void setCan_create_topic(final boolean can_create_topic) {
this.can_create_topic = can_create_topic;
this.values.put(Category_propertiesTable.CAN_CREATE_TOPIC, can_create_topic);
}
/**
* Get draft
*
* @return draft from type java.lang.String
*/
public java.lang.String getDraft() {
return this.draft;
}
/**
* Set draft and set content value
*
* @param draft from type java.lang.String
*/
public void setDraft(final java.lang.String draft) {
this.draft = draft;
this.values.put(Category_propertiesTable.DRAFT, draft);
}
/**
* Get draft_key
*
* @return draft_key from type java.lang.String
*/
public java.lang.String getDraft_key() {
return this.draft_key;
}
/**
* Set draft_key and set content value
*
* @param draft_key from type java.lang.String
*/
public void setDraft_key(final java.lang.String draft_key) {
this.draft_key = draft_key;
this.values.put(Category_propertiesTable.DRAFT_KEY, draft_key);
}
/**
* Get draft_sequence
*
* @return draft_sequence from type long
*/
public long getDraft_sequence() {
return this.draft_sequence;
}
/**
* Set draft_sequence and set content value
*
* @param draft_sequence from type long
*/
public void setDraft_sequence(final long draft_sequence) {
this.draft_sequence = draft_sequence;
this.values.put(Category_propertiesTable.DRAFT_SEQUENCE, draft_sequence);
}
/**
* Get ContentValues
*
* @return id from type android.content.ContentValues with the values of this object
*/
public ContentValues getContentValues() {
return this.values;
}
}