Package com.perforce.p4java.admin
Interface IDbSchema
- All Known Implementing Classes:
DbSchema
public interface IDbSchema
Defines Perforce DB schema associated with a Perforce server (admin / superuser feature).
Usage of this feature is intentionally not documented here in any detail; see "p4 help dbschema" for more useful details.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intWhat getVersion returns if there was no version number returned from the server. -
Method Summary
Modifier and TypeMethodDescriptiongetName()intvoidsetColumnMetadata(List<Map<String, String>> columnMetadata) Set the colum metadata map.voidSet the name of the table.voidsetVersion(int version) Set the table schema version.
-
Field Details
-
NOVERSION
static final int NOVERSIONWhat getVersion returns if there was no version number returned from the server.- See Also:
-
-
Method Details
-
getName
String getName()- Returns:
- the name of the table.
-
getVersion
int getVersion()- Returns:
- the table schema version.
-
getColumnMetadata
- Returns:
- a list of column metadata maps. Note that while this list should never be null, individual map values within it may be null. Field (map key) names and values are not explained here.
-
setName
Set the name of the table.- Parameters:
name- table name
-
setVersion
void setVersion(int version) Set the table schema version.- Parameters:
version- schema version
-
setColumnMetadata
Set the colum metadata map.- Parameters:
columnMetadata- data
-