本文整理汇总了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;
}