public interface CyTableFactory
CyTable
objects. This factory will be
provided as a service through Spring/OSGi.Module: model-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>model-api</artifactId> </dependency>
Modifier and Type | Interface and Description |
---|---|
static class |
CyTableFactory.InitialTableSize
A description of the initial size of the table.
|
Modifier and Type | Method and Description |
---|---|
CyTable |
createTable(String title,
String primaryKey,
Class<?> primaryKeyType,
boolean pub,
boolean isMutable)
Creates a CyTable object with the specified name, primary key, visibility, and mutability.
|
CyTable |
createTable(String title,
String primaryKey,
Class<?> primaryKeyType,
boolean pub,
boolean isMutable,
CyTableFactory.InitialTableSize initialSize)
Creates a CyTable object with the specified name, primary key, visibility, and mutability.
|
CyTable createTable(String title, String primaryKey, Class<?> primaryKeyType, boolean pub, boolean isMutable, CyTableFactory.InitialTableSize initialSize)
title
- The name of the CyTable.primaryKey
- The name primaryKey column for this table.primaryKeyType
- The type of the primaryKey column for this table; this must be Long.class
if the table's keys are to refer to network objects, i.e. nodes, edges, networks.pub
- Whether or not the CyTable should be public.isMutable
- if true, the table can be deleted later on, otherwise it can'tinitialSize
- a rough guess as to the expected size of the tableCyTable
with the specified name that is either public or not (see
CyTable.isPublic()
.CyTable createTable(String title, String primaryKey, Class<?> primaryKeyType, boolean pub, boolean isMutable)
title
- The name of the CyTable.primaryKey
- The name primaryKey column for this table.primaryKeyType
- The type of the primaryKey column for this table; this must be Long.class
if the table's keys are to refer to network objects, i.e. nodes, edges, networks.pub
- Whether or not the CyTable should be public.isMutable
- if true, the table can be deleted later on, otherwise it can'tCyTable
with the specified name that is either public or not (see
CyTable.isPublic()
.Copyright 2011-2015 Cytoscape Consortium. All rights reserved.