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


Java CollectionType.COLLECTION属性代码示例

本文整理汇总了Java中org.netbeans.modules.j2ee.persistence.entitygenerator.EntityRelation.CollectionType.COLLECTION属性的典型用法代码示例。如果您正苦于以下问题:Java CollectionType.COLLECTION属性的具体用法?Java CollectionType.COLLECTION怎么用?Java CollectionType.COLLECTION使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.netbeans.modules.j2ee.persistence.entitygenerator.EntityRelation.CollectionType的用法示例。


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

示例1: getCollectionType

public CollectionType getCollectionType() {
    int selected = collectionTypeComboBox.getSelectedIndex();
    if(selected == 0 ) {
        return CollectionType.COLLECTION;
    } else if(selected == 1 ) {
        return CollectionType.LIST;
    } else {
        return CollectionType.SET;
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:10,代码来源:MappingOptionsPanel.java

示例2: getCollectionType

public CollectionType getCollectionType() {
    return CollectionType.COLLECTION;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:3,代码来源:DbSchemaEjbGeneratorTest.java

示例3: EntitiesFromDBGenerator

/**
 * Creates a new instance of EntitiesFromDBGenerator.
 *
 * @param tableNames the names of the tables for which entities are generated. Must not be null.
 * @param generateNamedQueries specifies whether named queries should be generated.
 * @param packageName the name of the package for the generated entities. Must not be null.
 * @param location the location. Must not be null.
 * @param connection the database connection for the specified tables. Must not be null.
 * @param project the project to which entities are generated.
 * @param persistenceUnit the persistenceUnit to which generated entities should be added
 * as managed classes. May be null, in which case it is up to the client to add
 * the generated entities to an appropriate persistence unit (if any).
 *
 */
public EntitiesFromDBGenerator(List<String> tableNames, boolean generateNamedQueries,
        String packageName, SourceGroup location, DatabaseConnection connection,
        Project project, PersistenceUnit persistenceUnit) {
    
    this(tableNames, generateNamedQueries, false, false, FetchType.DEFAULT, CollectionType.COLLECTION,
            packageName, location, connection, project, persistenceUnit);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:21,代码来源:EntitiesFromDBGenerator.java

示例4: DbSchemaEjbGenerator

/**
 * Creates a generator for a set of beans.
 *
 * @param genTables contains the tables to generate and their respective locations.
 * @param schemaElement the dbschema containing the tables to generate beans for.
 */
public DbSchemaEjbGenerator(GeneratedTables genTables, SchemaElement schemaElement) {
    this(genTables, schemaElement, CollectionType.COLLECTION, false, false, false);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:9,代码来源:DbSchemaEjbGenerator.java

示例5: DbSchemaEjbGenerator

/**
 * Creates a generator for a set of beans.
 *
 * @param genTables contains the tables to generate and their respective
 * locations.
 * @param schemaElement the dbschema containing the tables to generate beans
 * for.
 */
public DbSchemaEjbGenerator(GeneratedTables genTables, SchemaElement schemaElement) {
    this(genTables, schemaElement, CollectionType.COLLECTION, false, false, false);
}
 
开发者ID:jeddict,项目名称:jeddict,代码行数:11,代码来源:DbSchemaEjbGenerator.java


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