當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。