本文整理匯總了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());
}
示例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());
}
}
示例3: getEntityColumns
import com.alexrnl.commons.database.structure.EntityColumn; //導入依賴的package包/類
@Override
public Map<? extends Enum<? extends EntityColumn>, Column> getEntityColumns () {
return columns;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}