当前位置: 首页>>代码示例>>Java>>正文


Java EntityColumn类代码示例

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


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

示例1: testGetColumns

import com.alexrnl.commons.database.structure.EntityColumn; //导入依赖的package包/类
/**
 * Test method for {@link Party#getColumns()}.
 */
@Test
public void testGetColumns () {
	final Map<? extends Enum<? extends EntityColumn>, Column> columns = Party.getColumns();
	
	assertEquals("idParty", columns.get(PartyColumn.ID).getName());
	assertEquals(Integer.class, columns.get(PartyColumn.ID).getType());
	assertTrue(columns.get(PartyColumn.ID).isID());
	
	assertEquals("date", columns.get(PartyColumn.DATE).getName());
	assertEquals(Date.class, columns.get(PartyColumn.DATE).getType());
	assertFalse(columns.get(PartyColumn.DATE).isID());
	
	assertEquals("entriesTotal", columns.get(PartyColumn.ENTRIES_TOTAL).getName());
	assertEquals(Integer.class, columns.get(PartyColumn.ENTRIES_TOTAL).getType());
	assertFalse(columns.get(PartyColumn.ENTRIES_TOTAL).isID());
	
	assertEquals("entriesMale", columns.get(PartyColumn.ENTRIES_MALE).getName());
	assertEquals(Integer.class, columns.get(PartyColumn.ENTRIES_MALE).getType());
	assertFalse(columns.get(PartyColumn.ENTRIES_MALE).isID());
	
	assertEquals("entriesFemale", columns.get(PartyColumn.ENTRIES_FEMALE).getName());
	assertEquals(Integer.class, columns.get(PartyColumn.ENTRIES_FEMALE).getType());
	assertFalse(columns.get(PartyColumn.ENTRIES_FEMALE).isID());
}
 
开发者ID:Club-Rock-ISEN,项目名称:EntryCounter,代码行数:28,代码来源:PartyTest.java

示例2: testGetEntityColumns

import com.alexrnl.commons.database.structure.EntityColumn; //导入依赖的package包/类
/**
 * Test method for {@link Party#getEntityColumns()}.
 */
@Test
public void testGetEntityColumns () {
	for (final Party party : parties) {
		final Map<? extends Enum<? extends EntityColumn>, Column> columns = party.getEntityColumns();
		
		assertEquals("idParty", columns.get(PartyColumn.ID).getName());
		assertEquals(Integer.class, columns.get(PartyColumn.ID).getType());
		assertTrue(columns.get(PartyColumn.ID).isID());
		
		assertEquals("date", columns.get(PartyColumn.DATE).getName());
		assertEquals(Date.class, columns.get(PartyColumn.DATE).getType());
		assertFalse(columns.get(PartyColumn.DATE).isID());
		
		assertEquals("entriesTotal", columns.get(PartyColumn.ENTRIES_TOTAL).getName());
		assertEquals(Integer.class, columns.get(PartyColumn.ENTRIES_TOTAL).getType());
		assertFalse(columns.get(PartyColumn.ENTRIES_TOTAL).isID());
		
		assertEquals("entriesMale", columns.get(PartyColumn.ENTRIES_MALE).getName());
		assertEquals(Integer.class, columns.get(PartyColumn.ENTRIES_MALE).getType());
		assertFalse(columns.get(PartyColumn.ENTRIES_MALE).isID());
		
		assertEquals("entriesFemale", columns.get(PartyColumn.ENTRIES_FEMALE).getName());
		assertEquals(Integer.class, columns.get(PartyColumn.ENTRIES_FEMALE).getType());
		assertFalse(columns.get(PartyColumn.ENTRIES_FEMALE).isID());
	}
}
 
开发者ID:Club-Rock-ISEN,项目名称:EntryCounter,代码行数:30,代码来源:PartyTest.java

示例3: getEntityColumns

import com.alexrnl.commons.database.structure.EntityColumn; //导入依赖的package包/类
@Override
public Map<? extends Enum<? extends EntityColumn>, Column> getEntityColumns () {
	return columns;
}
 
开发者ID:Club-Rock-ISEN,项目名称:EntryManager,代码行数:5,代码来源:Member.java

示例4: getColumns

import com.alexrnl.commons.database.structure.EntityColumn; //导入依赖的package包/类
/**
 * Return the list of the columns of the table Member.
 * @return the list of the columns.
 */
public static Map<? extends Enum<? extends EntityColumn>, Column> getColumns () {
	return columns;
}
 
开发者ID:Club-Rock-ISEN,项目名称:EntryManager,代码行数:8,代码来源:Member.java

示例5: getColumns

import com.alexrnl.commons.database.structure.EntityColumn; //导入依赖的package包/类
/**
 * Return the list of the columns of the table.
 * @return the list of the columns.
 */
public static Map<? extends Enum<? extends EntityColumn>, Column> getColumns () {
	return columns;
}
 
开发者ID:Club-Rock-ISEN,项目名称:EntryManager,代码行数:8,代码来源:Parameter.java

示例6: getColumns

import com.alexrnl.commons.database.structure.EntityColumn; //导入依赖的package包/类
/**
 * Return the list of the columns of the table party.
 * @return the columns.
 */
public static Map<? extends Enum<? extends EntityColumn>, Column> getColumns () {
	return columns;
}
 
开发者ID:Club-Rock-ISEN,项目名称:EntryManager,代码行数:8,代码来源:Party.java

示例7: getColumns

import com.alexrnl.commons.database.structure.EntityColumn; //导入依赖的package包/类
/**
 * Return the list of the columns of the table entry member party.
 * @return the columns.
 */
public static Map<? extends Enum<? extends EntityColumn>, Column> getColumns () {
	return columns;
}
 
开发者ID:Club-Rock-ISEN,项目名称:EntryManager,代码行数:8,代码来源:EntryMemberParty.java

示例8: getColumns

import com.alexrnl.commons.database.structure.EntityColumn; //导入依赖的package包/类
/**
 * Statically returns the entity columns.
 * @return the entity columns.
 */
public static Map<? extends Enum<? extends EntityColumn>, Column> getColumns () {
	return columns;
}
 
开发者ID:Club-Rock-ISEN,项目名称:EntryCounter,代码行数:8,代码来源:Party.java


注:本文中的com.alexrnl.commons.database.structure.EntityColumn类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。