|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gswing.components.common.db.DbTable
public class DbTable
Purpose: Represents a database table.
Field Summary | |
---|---|
static String |
ABBREVIATION
|
static String |
CANDIDATE_NO
|
static String |
CANDIDATE_TABLE
|
static String |
COMPLETE
|
static String |
CONSTITUENCY
|
static String |
CONSTITUENCY_NO
|
static String |
CONSTITUENCY_TABLE
|
static String |
CONSTITUENCY_TYPE
|
static String |
DATE
|
static String |
DOB
|
static String |
ELECTION_NO
|
static String |
ELECTION_TABLE
|
static String |
ELECTORATE
|
static String |
ELECTORATE_TABLE
|
static String |
FIRST_NAME
|
static String |
LEADERSHIP_TABLE
|
static String |
NAME
|
static String |
PARENT
|
static String |
PARTICIPANT
|
static String |
PARTY
|
static String |
PARTY_TABLE
|
static String |
SURNAME
|
static String |
SYSTEM
|
static String |
TYPE
|
static String |
URL
|
static String |
VOTE_LIST_TABLE
|
static String |
VOTE_TABLE
|
static String |
VOTES
|
Constructor Summary | |
---|---|
DbTable(String name)
Constructor. |
Method Summary | |
---|---|
void |
addField(DbField field)
Add a field to the table. |
DbField |
getField(int index)
Get the field in this element. |
String |
getName()
Get the name of this table. |
int |
getNumberOfFields()
Get number of fields in the table. |
boolean |
hasPrimaryKey()
Does this table have a primary key? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String VOTE_TABLE
public static final String VOTE_LIST_TABLE
public static final String CONSTITUENCY
public static final String ELECTION_NO
public static final String VOTES
public static final String PARTICIPANT
public static final String CANDIDATE_TABLE
public static final String CANDIDATE_NO
public static final String FIRST_NAME
public static final String SURNAME
public static final String DOB
public static final String PARTY
public static final String ELECTION_TABLE
public static final String NAME
public static final String TYPE
public static final String DATE
public static final String SYSTEM
public static final String COMPLETE
public static final String CONSTITUENCY_TABLE
public static final String CONSTITUENCY_NO
public static final String PARENT
public static final String CONSTITUENCY_TYPE
public static final String PARTY_TABLE
public static final String ABBREVIATION
public static final String URL
public static final String ELECTORATE_TABLE
public static final String ELECTORATE
public static final String LEADERSHIP_TABLE
Constructor Detail |
---|
public DbTable(String name)
name
- The table name.Method Detail |
---|
public void addField(DbField field)
field
- The new database field to add to the table.public int getNumberOfFields()
public String getName()
public DbField getField(int index)
public boolean hasPrimaryKey()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |