public class Table extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
String |
alias |
Vector<String> |
allUsers |
String |
check |
Vector<String> |
comments |
Vector<Const> |
consts |
Database |
database |
Vector<Field> |
fields |
Vector<Grant> |
grants |
boolean |
hasAutoTimeStamp |
boolean |
hasBigXML |
boolean |
hasDelete |
boolean |
hasExecute |
boolean |
hasIdentity |
boolean |
hasInsert |
boolean |
hasPrimaryKey |
boolean |
hasSelect |
boolean |
hasSequence |
boolean |
hasSequenceReturning |
boolean |
hasStdProcs |
boolean |
hasTimeStamp |
boolean |
hasUpdate |
boolean |
hasUserStamp |
boolean |
isLiteral |
boolean |
isStoredProc |
Vector<Key> |
keys |
Vector<Link> |
links |
String |
literalName |
String |
name |
Vector<String> |
options |
Vector<Parameter> |
parameters |
Vector<Proc> |
procs |
int |
start |
Vector<View> |
views |
| Constructor and Description |
|---|
Table() |
| Modifier and Type | Method and Description |
|---|---|
Table |
add(Table addin) |
void |
buildBulkInsert(Proc proc)
Builds an insert proc generated as part of standard record class
|
void |
buildBulkUpdate(Proc proc)
Builds an update proc generated as part of standard record class
|
void |
buildCount(Proc proc)
Builds a count rows proc
|
void |
buildDeleteAll(Proc proc)
Builds a delete all rows proc
|
void |
buildDeleteBy(Proc proc) |
void |
buildDeleteOne(Proc proc)
Builds a delete by primary key proc
|
void |
buildExists(Proc proc)
Builds a check for primary key existance proc
|
void |
buildIdentity(Proc proc)
Builds an identity proc generated as part of standard record class
|
void |
buildInsert(Proc proc)
Builds an insert proc generated as part of standard record class
|
void |
buildMaxTmStamp(Proc proc)
Builds a select on primary key proc
|
void |
buildMerge(Proc proc)
Builds a merge proc generated as part of standard record class
|
void |
buildSelectAll(Proc proc,
boolean update,
boolean readonly,
boolean inOrder,
boolean descending)
Builds a select all rows proc
|
void |
buildSelectBy(Proc proc,
boolean forUpdate,
boolean forReadOnly,
boolean inOrder,
boolean descending) |
void |
buildSelectFrom(Proc proc,
Table table) |
void |
buildSelectOne(Proc proc,
boolean update,
boolean readonly)
Builds a select on primary key proc
|
void |
buildUpdate(Proc proc)
Builds an update proc generated as part of standard record class
|
void |
buildUpdateBy(Proc proc)
Builds an updateby proc generated as part of standard record class
|
void |
buildUpdateFor(Proc proc)
Builds an update proc generated as part of standard record class
|
String |
getAlias() |
Vector<String> |
getAllUsers() |
String |
getCheck() |
Vector<String> |
getComments() |
Vector<Const> |
getConsts() |
Database |
getDatabase() |
Field |
getField(String s) |
int |
getFieldIndex(String s) |
Vector<Field> |
getFields() |
Vector<Grant> |
getGrants() |
Vector<Key> |
getKeys() |
Vector<Link> |
getLinks() |
String |
getLiteralName() |
String |
getName() |
Vector<String> |
getOptions() |
Vector<Parameter> |
getParameters() |
Proc |
getProc(String name)
Returns proc or null
|
Vector<Proc> |
getProcs() |
Vector<View> |
getViews() |
boolean |
hasCursorStdProc()
Checks for the existence of a proc
|
boolean |
hasField(String s)
Checks for the existence of a field
|
boolean |
hasFieldAsNull(String s)
Checks if table field is declared as null
|
boolean |
hasOption(String value) |
boolean |
hasProc(Proc p)
Checks for the existence of a proc
|
boolean |
isHasAutoTimeStamp() |
boolean |
isHasBigXML() |
boolean |
isHasDelete() |
boolean |
isHasExecute() |
boolean |
isHasIdentity() |
boolean |
isHasInsert() |
boolean |
isHasPrimaryKey() |
boolean |
isHasSelect() |
boolean |
isHasSequence() |
boolean |
isHasSequenceReturning() |
boolean |
isHasStdProcs() |
boolean |
isHasTimeStamp() |
boolean |
isHasUpdate() |
boolean |
isHasUserStamp() |
boolean |
isLiteral() |
boolean |
isStoredProc() |
void |
reader(DataInputStream ids) |
void |
reader(DataInputStream ids,
Vector<?> useProcs) |
void |
setPrimary(String s)
Sets a field to be primary key
|
String |
tableName() |
String |
toString() |
String |
useLiteral()
If there is an literal uses that else returns name
|
String |
useName()
If there is an alias uses that else returns name
|
void |
writer(DataOutputStream ods) |
public Database database
public String literalName
public String name
public String alias
public String check
public boolean hasPrimaryKey
public boolean hasSequence
public boolean hasTimeStamp
public boolean hasAutoTimeStamp
public boolean hasUserStamp
public boolean hasExecute
public boolean hasSelect
public boolean hasInsert
public boolean hasDelete
public boolean hasUpdate
public boolean hasStdProcs
public boolean hasIdentity
public boolean hasSequenceReturning
public boolean hasBigXML
public boolean isStoredProc
public boolean isLiteral
public int start
public Database getDatabase()
public String getLiteralName()
public String getName()
public String getAlias()
public String getCheck()
public boolean isHasPrimaryKey()
public boolean isHasSequence()
public boolean isHasTimeStamp()
public boolean isHasAutoTimeStamp()
public boolean isHasUserStamp()
public boolean isHasExecute()
public boolean isHasSelect()
public boolean isHasInsert()
public boolean isHasDelete()
public boolean isHasUpdate()
public boolean isHasStdProcs()
public boolean isHasIdentity()
public boolean isHasSequenceReturning()
public boolean isHasBigXML()
public boolean isStoredProc()
public boolean isLiteral()
public void reader(DataInputStream ids) throws IOException
IOExceptionpublic void reader(DataInputStream ids, Vector<?> useProcs) throws IOException
IOExceptionpublic void writer(DataOutputStream ods) throws IOException
IOExceptionpublic String useLiteral()
public String useName()
public boolean hasField(String s)
public int getFieldIndex(String s)
public boolean hasFieldAsNull(String s)
public boolean hasProc(Proc p)
public boolean hasCursorStdProc()
public void setPrimary(String s)
public String tableName()
public void buildMerge(Proc proc)
public void buildInsert(Proc proc)
public void buildBulkInsert(Proc proc)
public void buildIdentity(Proc proc)
public void buildUpdate(Proc proc)
public void buildUpdateFor(Proc proc)
public void buildUpdateBy(Proc proc)
public void buildBulkUpdate(Proc proc)
public void buildDeleteOne(Proc proc)
public void buildDeleteAll(Proc proc)
public void buildCount(Proc proc)
public void buildExists(Proc proc)
public void buildSelectOne(Proc proc, boolean update, boolean readonly)
public void buildMaxTmStamp(Proc proc)
public void buildSelectAll(Proc proc, boolean update, boolean readonly, boolean inOrder, boolean descending)
public void buildDeleteBy(Proc proc)
public void buildSelectBy(Proc proc, boolean forUpdate, boolean forReadOnly, boolean inOrder, boolean descending)
public boolean hasOption(String value)
Copyright © 2019. All rights reserved.