本文整理匯總了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;
}
}
示例2: getCollectionType
public CollectionType getCollectionType() {
return CollectionType.COLLECTION;
}
示例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);
}
示例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);
}
示例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);
}