Package bbd.jportal2
Class Table
- java.lang.Object
-
- bbd.jportal2.Table
-
- All Implemented Interfaces:
Serializable
public class Table extends Object implements Serializable
Table identified by name holds fields, keys, links, grants, views and procedures associated with the table.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description StringaliasVector<String>allUsersStringcheckVector<String>commentsVector<Const>constsDatabasedatabaseVector<Field>fieldsVector<Grant>grantsbooleanhasAutoTimeStampbooleanhasBigJSONbooleanhasBigXMLbooleanhasDeletebooleanhasExecutebooleanhasIdentitybooleanhasInsertbooleanhasPrimaryKeybooleanhasSelectbooleanhasSequencebooleanhasSequenceReturningbooleanhasStdProcsbooleanhasTimeStampbooleanhasUpdatebooleanhasUserStampbooleanisLiteralbooleanisStoredProcVector<Key>keysVector<Link>linksStringliteralNameStringnameVector<String>optionsVector<Parameter>parametersVector<Proc>procsintstartVector<View>views
-
Constructor Summary
Constructors Constructor Description Table()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tableadd(Table addin)voidbuildBulkInsert(Proc proc)Builds an insert proc generated as part of standard record classvoidbuildBulkUpdate(Proc proc)Builds an update proc generated as part of standard record classvoidbuildCount(Proc proc)Builds a count rows procvoidbuildDeleteAll(Proc proc)Builds a delete all rows procvoidbuildDeleteBy(Proc proc)voidbuildDeleteOne(Proc proc)Builds a delete by primary key procvoidbuildExists(Proc proc)Builds a check for primary key existance procvoidbuildIdentity(Proc proc)Builds an identity proc generated as part of standard record classvoidbuildInsert(Proc proc)Builds an insert proc generated as part of standard record classvoidbuildMaxTmStamp(Proc proc)Builds a select on primary key procvoidbuildMerge(Proc proc)Builds a merge proc generated as part of standard record classvoidbuildSelectAll(Proc proc, boolean update, boolean readonly, boolean inOrder, boolean descending)Builds a select all rows procvoidbuildSelectBy(Proc proc, boolean forUpdate, boolean forReadOnly, boolean inOrder, boolean descending)voidbuildSelectFrom(Proc proc, Table table)voidbuildSelectOne(Proc proc, boolean update, boolean readonly)Builds a select on primary key procvoidbuildUpdate(Proc proc)Builds an update proc generated as part of standard record classvoidbuildUpdateBy(Proc proc)Builds an updateby proc generated as part of standard record classvoidbuildUpdateFor(Proc proc)Builds an update proc generated as part of standard record classStringgetAlias()Vector<String>getAllUsers()StringgetCheck()Vector<String>getComments()Vector<Const>getConsts()DatabasegetDatabase()FieldgetField(String s)FieldgetFieldForLink(Link link)intgetFieldIndex(String s)Vector<Field>getFields()Vector<Grant>getGrants()Vector<Key>getKeys()LinkgetLinkForField(Field field)Vector<Link>getLinks()StringgetLiteralName()StringgetName()Vector<String>getOptions()Vector<Parameter>getParameters()ProcgetProc(String name)Returns proc or nullVector<Proc>getProcs()Vector<View>getViews()booleanhasBigJSON()booleanhasBigXML()booleanhasCursorStdProc()Checks for the existence of a procbooleanhasField(String s)Checks for the existence of a fieldbooleanhasFieldAsNull(String s)Checks if table field is declared as nullbooleanhasOption(String value)booleanhasProc(Proc p)Checks for the existence of a procbooleanisHasAutoTimeStamp()booleanisHasDelete()booleanisHasExecute()booleanisHasIdentity()booleanisHasInsert()booleanisHasPrimaryKey()booleanisHasSelect()booleanisHasSequence()booleanisHasSequenceReturning()booleanisHasStdProcs()booleanisHasTimeStamp()booleanisHasUpdate()booleanisHasUserStamp()booleanisLiteral()booleanisStoredProc()voidreader(DataInputStream ids)voidreader(DataInputStream ids, Vector<?> useProcs)voidsetPrimary(String s)Sets a field to be primary keyStringtableName()StringtoString()StringuseLiteral()If there is an literal uses that else returns nameStringuseName()If there is an alias uses that else returns namevoidwriter(DataOutputStream ods)
-
-
-
Field Detail
-
database
public Database database
-
literalName
public String literalName
-
name
public String name
-
alias
public String alias
-
check
public String check
-
hasPrimaryKey
public boolean hasPrimaryKey
-
hasSequence
public boolean hasSequence
-
hasTimeStamp
public boolean hasTimeStamp
-
hasAutoTimeStamp
public boolean hasAutoTimeStamp
-
hasUserStamp
public boolean hasUserStamp
-
hasExecute
public boolean hasExecute
-
hasSelect
public boolean hasSelect
-
hasInsert
public boolean hasInsert
-
hasDelete
public boolean hasDelete
-
hasUpdate
public boolean hasUpdate
-
hasStdProcs
public boolean hasStdProcs
-
hasIdentity
public boolean hasIdentity
-
hasSequenceReturning
public boolean hasSequenceReturning
-
hasBigXML
public boolean hasBigXML
-
hasBigJSON
public boolean hasBigJSON
-
isStoredProc
public boolean isStoredProc
-
isLiteral
public boolean isLiteral
-
start
public int start
-
-
Method Detail
-
getDatabase
public Database getDatabase()
-
getLiteralName
public String getLiteralName()
-
getName
public String getName()
-
getAlias
public String getAlias()
-
getCheck
public String getCheck()
-
isHasPrimaryKey
public boolean isHasPrimaryKey()
-
isHasSequence
public boolean isHasSequence()
-
isHasTimeStamp
public boolean isHasTimeStamp()
-
isHasAutoTimeStamp
public boolean isHasAutoTimeStamp()
-
isHasUserStamp
public boolean isHasUserStamp()
-
isHasExecute
public boolean isHasExecute()
-
isHasSelect
public boolean isHasSelect()
-
isHasInsert
public boolean isHasInsert()
-
isHasDelete
public boolean isHasDelete()
-
isHasUpdate
public boolean isHasUpdate()
-
isHasStdProcs
public boolean isHasStdProcs()
-
isHasIdentity
public boolean isHasIdentity()
-
isHasSequenceReturning
public boolean isHasSequenceReturning()
-
hasBigXML
public boolean hasBigXML()
-
hasBigJSON
public boolean hasBigJSON()
-
isStoredProc
public boolean isStoredProc()
-
isLiteral
public boolean isLiteral()
-
reader
public void reader(DataInputStream ids) throws IOException
- Throws:
IOException
-
reader
public void reader(DataInputStream ids, Vector<?> useProcs) throws IOException
- Throws:
IOException
-
writer
public void writer(DataOutputStream ods) throws IOException
- Throws:
IOException
-
useLiteral
public String useLiteral()
If there is an literal uses that else returns name
-
useName
public String useName()
If there is an alias uses that else returns name
-
hasField
public boolean hasField(String s)
Checks for the existence of a field
-
getFieldIndex
public int getFieldIndex(String s)
-
hasFieldAsNull
public boolean hasFieldAsNull(String s)
Checks if table field is declared as null
-
hasProc
public boolean hasProc(Proc p)
Checks for the existence of a proc
-
hasCursorStdProc
public boolean hasCursorStdProc()
Checks for the existence of a proc
-
setPrimary
public void setPrimary(String s)
Sets a field to be primary key
-
tableName
public String tableName()
-
buildMerge
public void buildMerge(Proc proc)
Builds a merge proc generated as part of standard record class
-
buildInsert
public void buildInsert(Proc proc)
Builds an insert proc generated as part of standard record class
-
buildBulkInsert
public void buildBulkInsert(Proc proc)
Builds an insert proc generated as part of standard record class
-
buildIdentity
public void buildIdentity(Proc proc)
Builds an identity proc generated as part of standard record class
-
buildUpdate
public void buildUpdate(Proc proc)
Builds an update proc generated as part of standard record class
-
buildUpdateFor
public void buildUpdateFor(Proc proc)
Builds an update proc generated as part of standard record class
-
buildUpdateBy
public void buildUpdateBy(Proc proc)
Builds an updateby proc generated as part of standard record class
-
buildBulkUpdate
public void buildBulkUpdate(Proc proc)
Builds an update proc generated as part of standard record class
-
buildDeleteOne
public void buildDeleteOne(Proc proc)
Builds a delete by primary key proc
-
buildDeleteAll
public void buildDeleteAll(Proc proc)
Builds a delete all rows proc
-
buildCount
public void buildCount(Proc proc)
Builds a count rows proc
-
buildExists
public void buildExists(Proc proc)
Builds a check for primary key existance proc
-
buildSelectOne
public void buildSelectOne(Proc proc, boolean update, boolean readonly)
Builds a select on primary key proc
-
buildMaxTmStamp
public void buildMaxTmStamp(Proc proc)
Builds a select on primary key proc
-
buildSelectAll
public void buildSelectAll(Proc proc, boolean update, boolean readonly, boolean inOrder, boolean descending)
Builds a select all rows proc
-
buildDeleteBy
public void buildDeleteBy(Proc proc)
-
buildSelectBy
public void buildSelectBy(Proc proc, boolean forUpdate, boolean forReadOnly, boolean inOrder, boolean descending)
-
hasOption
public boolean hasOption(String value)
-
-