|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.perforce.p4java.impl.generic.admin.DbSchema
public class DbSchema
Simple default implementation class for the IDbSchema interface.
Field Summary |
---|
Fields inherited from interface com.perforce.p4java.admin.IDbSchema |
---|
NOVERSION |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.
Method Detail |
---|
public List<Map<String,String>> getColumnMetadata()
IDbSchema
getColumnMetadata
in interface IDbSchema
IDbSchema.getColumnMetadata()
public String getName()
IDbSchema
getName
in interface IDbSchema
IDbSchema.getName()
public int getVersion()
IDbSchema
getVersion
in interface IDbSchema
IDbSchema.getVersion()
public void setName(String name)
IDbSchema
setName
in interface IDbSchema
public void setVersion(int version)
IDbSchema
setVersion
in interface IDbSchema
public void setColumnMetadata(List<Map<String,String>> columnMetadata)
IDbSchema
setColumnMetadata
in interface IDbSchema
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |