public class Key extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
Vector<String> |
fields
List of fields used in the index or key
|
boolean |
isPrimary
Indicates the primary key
|
boolean |
isUnique
Indicates the index is unique (not defined if primary key)
|
String |
name
Name of index or key
|
Vector<String> |
options |
| Constructor and Description |
|---|
Key()
Contructs with default values
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasField(String s)
Checks if field is already used
|
void |
reader(DataInputStream ids) |
void |
writer(DataOutputStream ods) |
public String name
public boolean isPrimary
public boolean isUnique
public void reader(DataInputStream ids) throws IOException
IOExceptionpublic void writer(DataOutputStream ods) throws IOException
IOExceptionpublic boolean hasField(String s)
Copyright © 2019. All rights reserved.