| Constructor and Description |
|---|
DbSchema()
Default constructor.
|
DbSchema(Map<String,Object> map)
Construct a DbSchema from a map returned by the Perforce server.
|
DbSchema(String name,
int version,
List<Map<String,String>> columnMetadata)
Construct a DbSchema using explicit field values.
|
| Modifier and Type | Method and Description |
|---|---|
List<Map<String,String>> |
getColumnMetadata()
Get a list of column metadata maps.
|
String |
getName()
Get the name of the table.
|
int |
getVersion()
Get the table schema version.
|
void |
setColumnMetadata(List<Map<String,String>> columnMetadata)
Set the colum metadata map.
|
void |
setName(String name)
Set the name of the table.
|
void |
setVersion(int version)
Get the table schema version.
|
public DbSchema()
public DbSchema(String name, int version, List<Map<String,String>> columnMetadata)
public DbSchema(Map<String,Object> map)
Don't use this unless you know the correct format of the maps and you either got the map directly from the server or you cobbled together something suitable yourself. No real error- or sanity-checking is done here.
public List<Map<String,String>> getColumnMetadata()
IDbSchemagetColumnMetadata in interface IDbSchemaIDbSchema.getColumnMetadata()public String getName()
IDbSchemagetName in interface IDbSchemaIDbSchema.getName()public int getVersion()
IDbSchemagetVersion in interface IDbSchemaIDbSchema.getVersion()public void setName(String name)
IDbSchemapublic void setVersion(int version)
IDbSchemasetVersion in interface IDbSchemaCopyright © 2017 Perforce Software. All Rights Reserved.