• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java CharField类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中com.orm.androrm.field.CharField的典型用法代码示例。如果您正苦于以下问题:Java CharField类的具体用法?Java CharField怎么用?Java CharField使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

CharField类属于com.orm.androrm.field包,在下文中一共展示了CharField类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: GameSession

点赞 3

import com.orm.androrm.field.CharField; //导入依赖的package包/类
public GameSession(){
    super();
    this.session_name = new CharField(32);
    this.person_name = new CharField(32);
    this.locale_pack = new CharField(32);
    this.start_timestamp = new DoubleField();
    this.last_timestamp = new DoubleField();
    this.sessions_played = new IntegerField();
    this.days_played = new IntegerField();
    this.current_level = new CharField();
    this.points = new IntegerField();
    this.account_balance = new IntegerField();
    this.gross_income = new IntegerField();

    this.is_active = new BooleanField();
    this.pref_music = new BooleanField();

    this.listeners = new ArrayList<ExperienceChangeListener>();
}
 

开发者ID:Linguaculturalists,
项目名称:Phoenicia,
代码行数:20,
代码来源:GameSession.java

示例2: migrate

点赞 3

import com.orm.androrm.field.CharField; //导入依赖的package包/类
@Override
protected void migrate(Context context) {
    Migrator<GameSession> migrator = new Migrator<GameSession>(GameSession.class);

    // Add level field
    migrator.addField("current_level", new IntegerField());

    // Add points field
    migrator.addField("points", new IntegerField());
    migrator.addField("account_balance", new IntegerField());
    migrator.addField("gross_income", new IntegerField());
    migrator.addField("person_name", new CharField());

    // Add state fields
    migrator.addField("is_active", new BooleanField());
    migrator.addField("pref_music", new BooleanField());

    // roll out all migrations
    migrator.migrate(context);
    return;
}
 

开发者ID:Linguaculturalists,
项目名称:Phoenicia,
代码行数:22,
代码来源:GameSession.java

示例3: GameTileTimer

点赞 2

import com.orm.androrm.field.CharField; //导入依赖的package包/类
public GameTileTimer() {
    super();
    this.game = new ForeignKeyField<GameSession>(GameSession.class);
    this.tile = new ForeignKeyField<GameTile>(GameTile.class);
    this.item_name = new CharField(32);
    this.time = new IntegerField();
    this.progress = new IntegerField();
    this.status = new IntegerField();
    this.progress.set(0);
    this.status.set(NONE);
}
 

开发者ID:Linguaculturalists,
项目名称:Phoenicia,
代码行数:12,
代码来源:GameTileTimer.java

示例4: LetterTile

点赞 2

import com.orm.androrm.field.CharField; //导入依赖的package包/类
public LetterTile() {
    super();
    this.game = new ForeignKeyField<GameSession>(GameSession.class);
    this.builder = new ForeignKeyField<LetterBuilder>(LetterBuilder.class);
    this.isoX = new IntegerField();
    this.isoY = new IntegerField();
    this.item_name = new CharField(32);
    this.cached_builder = null;
}
 

开发者ID:Linguaculturalists,
项目名称:Phoenicia,
代码行数:10,
代码来源:LetterTile.java

示例5: WordTile

点赞 2

import com.orm.androrm.field.CharField; //导入依赖的package包/类
public WordTile() {
    super();
    this.game = new ForeignKeyField<GameSession>(GameSession.class);
    this.builder = new ForeignKeyField<WordTileBuilder>(WordTileBuilder.class);
    this.isoX = new IntegerField();
    this.isoY = new IntegerField();
    this.item_name = new CharField(32);
    this.stock = new IntegerField();
    this.buildQueue = new ArrayList<WordBuilder>();
}
 

开发者ID:Linguaculturalists,
项目名称:Phoenicia,
代码行数:11,
代码来源:WordTile.java

示例6: RequestItem

点赞 2

import com.orm.androrm.field.CharField; //导入依赖的package包/类
public RequestItem() {
    super();
    this.game = new ForeignKeyField<GameSession>(GameSession.class);
    this.request = new ForeignKeyField<MarketRequest>(MarketRequest.class);
    this.item_name = new CharField(32);
    this.quantity = new IntegerField();
}
 

开发者ID:Linguaculturalists,
项目名称:Phoenicia,
代码行数:8,
代码来源:RequestItem.java

示例7: DecorationTile

点赞 2

import com.orm.androrm.field.CharField; //导入依赖的package包/类
public DecorationTile() {
    super();
    this.session = new ForeignKeyField<GameSession>(GameSession.class);
    this.builder = new ForeignKeyField<GameTileBuilder>(GameTileBuilder.class);
    this.isoX = new IntegerField();
    this.isoY = new IntegerField();
    this.item_name = new CharField(32);
}
 

开发者ID:Linguaculturalists,
项目名称:Phoenicia,
代码行数:9,
代码来源:DecorationTile.java

示例8: WordBuilder

点赞 2

import com.orm.androrm.field.CharField; //导入依赖的package包/类
/**
 * Create empty WordBuilder.
 */
public WordBuilder() {
    super();
    this.game = new ForeignKeyField<GameSession>(GameSession.class);
    this.tile = new ForeignKeyField<WordTile>(WordTile.class);
    this.item_name = new CharField(32);
    this.time = new IntegerField();
    this.progress = new IntegerField();
    this.status = new IntegerField();
    this.progress.set(0);
    this.status.set(NONE);

}
 

开发者ID:Linguaculturalists,
项目名称:Phoenicia,
代码行数:16,
代码来源:WordBuilder.java

示例9: WorkshopBuilder

点赞 2

import com.orm.androrm.field.CharField; //导入依赖的package包/类
/**
 * Create empty WordBuilder.
 */
public WorkshopBuilder() {
    super();
    this.game = new ForeignKeyField<GameSession>(GameSession.class);
    this.tile = new ForeignKeyField<DefaultTile>(DefaultTile.class);
    this.item_name = new CharField(32);
    this.time = new IntegerField();
    this.progress = new IntegerField();
    this.status = new IntegerField();
    this.progress.set(0);
    this.status.set(NONE);

}
 

开发者ID:Linguaculturalists,
项目名称:Phoenicia,
代码行数:16,
代码来源:WorkshopBuilder.java

示例10: DefaultTile

点赞 2

import com.orm.androrm.field.CharField; //导入依赖的package包/类
public DefaultTile() {
    super();
    this.game = new ForeignKeyField<GameSession>(GameSession.class);
    this.isoX = new IntegerField();
    this.isoY = new IntegerField();
    this.item_type = new CharField(32);
}
 

开发者ID:Linguaculturalists,
项目名称:Phoenicia,
代码行数:8,
代码来源:DefaultTile.java

示例11: InventoryItem

点赞 2

import com.orm.androrm.field.CharField; //导入依赖的package包/类
public InventoryItem() {
    super();
    this.game = new ForeignKeyField<GameSession>(GameSession.class);
    this.item_name = new CharField(32);
    this.quantity = new IntegerField();
    this.history = new IntegerField();
}
 

开发者ID:Linguaculturalists,
项目名称:Phoenicia,
代码行数:8,
代码来源:InventoryItem.java

示例12: MarketRequest

点赞 2

import com.orm.androrm.field.CharField; //导入依赖的package包/类
public MarketRequest() {
    super();
    this.game = new ForeignKeyField<GameSession>(GameSession.class);
    this.person_name = new CharField(32);
    this.status = new IntegerField();
    this.coins = new IntegerField();
    this.points = new IntegerField();
    this.requested = new DoubleField();
    this.fulfilled = new DoubleField();
}
 

开发者ID:Linguaculturalists,
项目名称:Phoenicia,
代码行数:11,
代码来源:MarketRequest.java

示例13: GameTile

点赞 2

import com.orm.androrm.field.CharField; //导入依赖的package包/类
public GameTile() {
    super();
    this.session = new ForeignKeyField<GameSession>(GameSession.class);
    this.builder = new ForeignKeyField<GameTileBuilder>(GameTileBuilder.class);
    this.timer = new ForeignKeyField<GameTileTimer>(GameTileTimer.class);
    this.isoX = new IntegerField();
    this.isoY = new IntegerField();
    this.item_name = new CharField(32);
}
 

开发者ID:Linguaculturalists,
项目名称:Phoenicia,
代码行数:10,
代码来源:GameTile.java

示例14: LetterBuilder

点赞 2

import com.orm.androrm.field.CharField; //导入依赖的package包/类
/**
 * Create empty LetterBuilder.
 */
public LetterBuilder() {
    super();
    this.game = new ForeignKeyField<GameSession>(GameSession.class);
    this.tile = new ForeignKeyField<LetterTile>(LetterTile.class);
    this.item_name = new CharField(32);
    this.time = new IntegerField();
    this.progress = new IntegerField();
    this.status = new IntegerField();
    this.progress.set(0);
    this.status.set(NONE);

}
 

开发者ID:Linguaculturalists,
项目名称:Phoenicia,
代码行数:16,
代码来源:LetterBuilder.java

示例15: WordTileBuilder

点赞 2

import com.orm.androrm.field.CharField; //导入依赖的package包/类
/**
 * Create empty WordBuilder.
 */
public WordTileBuilder() {
    super();
    this.game = new ForeignKeyField<GameSession>(GameSession.class);
    this.tile = new ForeignKeyField<WordTile>(WordTile.class);
    this.item_name = new CharField(32);
    this.time = new IntegerField();
    this.progress = new IntegerField();
    this.status = new IntegerField();
    this.progress.set(0);
    this.status.set(NONE);

}
 

开发者ID:Linguaculturalists,
项目名称:Phoenicia,
代码行数:16,
代码来源:WordTileBuilder.java

示例16: GameTileBuilder

点赞 2

import com.orm.androrm.field.CharField; //导入依赖的package包/类
/**
 * Create empty WordBuilder.
 */
public GameTileBuilder() {
    super();
    this.game = new ForeignKeyField<GameSession>(GameSession.class);
    this.tile = new ForeignKeyField<GameTile>(GameTile.class);
    this.item_name = new CharField(32);
    this.time = new IntegerField();
    this.progress = new IntegerField();
    this.status = new IntegerField();
    this.progress.set(0);
    this.status.set(NONE);

}
 

开发者ID:Linguaculturalists,
项目名称:Phoenicia,
代码行数:16,
代码来源:GameTileBuilder.java

示例17: Migration

点赞 2

import com.orm.androrm.field.CharField; //导入依赖的package包/类
public Migration() {
	super();
	
	mModel = new CharField();
	mAction = new CharField();
	mValue = new CharField();
}
 

开发者ID:Linguaculturalists,
项目名称:Phoenicia,
代码行数:8,
代码来源:Migration.java

示例18: Branch

点赞 2

import com.orm.androrm.field.CharField; //导入依赖的package包/类
public Branch() {
	super();

	mName = new CharField(50);
	mProducts = new ManyToManyField<Branch, Product>(Branch.class, Product.class);
	mSuppliers = new ManyToManyField<Branch, Supplier>(Branch.class, Supplier.class);
	mBrand = new ForeignKeyField<Brand>(Brand.class);
}
 

开发者ID:Linguaculturalists,
项目名称:Phoenicia,
代码行数:9,
代码来源:Branch.java

示例19: BlankModel

点赞 2

import com.orm.androrm.field.CharField; //导入依赖的package包/类
public BlankModel() {
	super();
	
	mName = new CharField();
	mLocation = new LocationField();
	mDate = new DateField();
}
 

开发者ID:Linguaculturalists,
项目名称:Phoenicia,
代码行数:8,
代码来源:BlankModel.java

示例20: Supplier

点赞 2

import com.orm.androrm.field.CharField; //导入依赖的package包/类
public Supplier() {
	super();
	
	mName = new CharField(50);
	mProducts = new ManyToManyField<Supplier, Product>(Supplier.class, Product.class);
	mBranches = new ManyToManyField<Supplier, Branch>(Supplier.class, Branch.class);
	mBrand = new ForeignKeyField<Brand>(Brand.class);
	mBrand.doNotCascade();
}
 

开发者ID:Linguaculturalists,
项目名称:Phoenicia,
代码行数:10,
代码来源:Supplier.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)