package example.entity;
import jp.co.cac.azarea.cluster.entity.DefaultEntity;
import jp.co.cac.azarea.cluster.entity.EntitySchema;
import jp.co.cac.azarea.cluster.entity.GeneralEntitySchema;
import jp.co.cac.azarea.cluster.entity.column.EntityColumn;
import jp.co.cac.azarea.cluster.entity.column.StringEntityColumn;
import jp.co.cac.azarea.cluster.util.Generated;
/**
*
*/
@Generated("AZAREA-Cluster 1.0")
public class TextEntity extends DefaultEntity {
/**
*
*/
private static final EntityColumn textColumn = new StringEntityColumn("text");
private static final EntityColumn[] ALL_COLUMNS = {
textColumn
};
private static final EntityColumn[] KEY_COLUMNS = {
};
private static final EntitySchema schema = new GeneralEntitySchema("TextEntity", ALL_COLUMNS, KEY_COLUMNS);
/**
*
*/
public String text;
public TextEntity() {
super(schema);
}
/**
* �G���e�B�e�B������������B
*/
@Override
protected void initialize() {
super.initialize();
}
@Override
protected Object innerGetItem(int index) {
switch(index) {
case 0:
return this.text;
default:
throw new IllegalArgumentException("Illegal index : " + index);
}
}
@Override
protected void innerSetItem(int index, Object value) {
switch(index) {
case 0:
this.text = (String)value;
break;
default:
throw new IllegalArgumentException("Illegal index : " + index);
}
}
}