Package bbd.jportal2
Class Proc
- java.lang.Object
-
- bbd.jportal2.Proc
-
- All Implemented Interfaces:
Serializable
public class Proc extends Object implements Serializable
The hearts and souls. Holds the procedures for accessing the table.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Vector<String>commentsThe reasons and debates for the procedureVector<String>dynamicsList of dynamic SQL code fieldsVector<Integer>dynamicSizesList of dynamic SQL code field sizesVector<Boolean>dynamicStrungList of dynamic SQL code field sizesbooleanextendsStdIndicates the procedures extends the Standard Table definitionVector<String>fieldsSelectBy DeleteBy std proc fieldsStringfromname of procedurebooleanhasImageIndicates the procedure has an Image fieldbooleanhasReturningbooleanhasUpdatesVector<Field>inputsList of input fieldsbooleanisActionIndicates an action no result is expectedbooleanisBuiltInIs this one of the built-in Procs i.e Insert, SelectOne, Delete, SelectAll etcbooleanisDataIf the procedure is only to produce passthru SQL CodebooleanisIdlCodeIf the procedure is only to produce passthru SQL CodebooleanisInsertIndicates the procedure is the Insert procedurebooleanisMultipleInputIndicates a single result is expectedbooleanisProcIndicates the procedure uses stored procedure logic CodebooleanisSingleIndicates a single result is expectedbooleanisSProcIndicates the procedure uses stored procedure logic CodebooleanisSqlIndicates the procedure is internal SQL codebooleanisStdIndicates procedure is a Standard procedurebooleanisUpdateIndicates a update ProcVector<Line>linesSQL code for accessing the tableStringnamename of procedureintnoRowsname of rows on multiplesVector<String>optionsGenerate options for procedureVector<String>orderFieldsSelect in order fieldsVector<Field>outputsList of output fieldsVector<String>placeHoldersSQL code for accessing the tableintstartCode starts at lineTabletableparent tableVector<String>updateFieldsSelectFor update fieldsbooleanuseKeyIndicates the procedures uses the Primary keyStringusernameuser name of procedurebooleanuseStdIndicates the procedure uses the Standard Table definitionStringwherename of procedure
-
Constructor Summary
Constructors Constructor Description Proc()Constructs with default values
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckPlaceHolders()Vector<String>getComments()Vector<String>getDynamics()intgetDynamicSize(String s)Checks for for name in dynamics listVector<Integer>getDynamicSizes()Vector<Boolean>getDynamicStrung()Vector<String>getFields()StringgetFrom()FieldgetInput(String s)Vector<Field>getInputs()Vector<Line>getLines()StringgetName()intgetNoRows()Vector<String>getOptions()Vector<String>getOrderFields()FieldgetOutput(String s)Checks for for name in output listVector<Field>getOutputs()Vector<String>getPlaceHolders()Vector<String>getUpdateFields()StringgetUsername()StringgetWhere()booleanhasDiscreteInput()Checks if proc has unique input ie.booleanhasDynamic(String s)Checks for for name in dynamics listbooleanhasFields(String value)booleanhasInput(String s)Checks for for name in input listbooleanhasModifieds()booleanhasNoData()Checks if proc uses databooleanhasOption(String value)booleanhasOrders(String value)booleanhasOutput(String s)Checks for for name in output listbooleanhasUpdateFields(String value)intindexOf(String s)Checks for for name in input listbooleanisAction()booleanisBuiltIn()booleanisData()booleanisExtendsStd()booleanisHasImage()booleanisHasReturning()booleanisHasUpdates()booleanisIdlCode()booleanisInsert()booleanisMultipleInput()booleanisProc()booleanisSingle()booleanisSProc()booleanisSql()booleanisStd()booleanisStdExtended()booleanisStrung(String s)Checks if a strung dynamicbooleanisUpdate()booleanisUseKey()booleanisUseStd()StringlowerFirst()Folds the first character of name to an lower case charactervoidreader(DataInputStream ids)StringtoString()StringupperFirst()Folds the first character of name to an upper case characterStringupperFirstOnly()Folds the first character of name to an upper case charactervoidwriter(DataOutputStream ods)
-
-
-
Field Detail
-
table
public Table table
parent table
-
isBuiltIn
public boolean isBuiltIn
Is this one of the built-in Procs i.e Insert, SelectOne, Delete, SelectAll etc
-
name
public String name
name of procedure
-
from
public String from
name of procedure
-
where
public String where
name of procedure
-
username
public String username
user name of procedure
-
noRows
public int noRows
name of rows on multiples
-
isProc
public boolean isProc
Indicates the procedure uses stored procedure logic Code
-
isSProc
public boolean isSProc
Indicates the procedure uses stored procedure logic Code
-
isData
public boolean isData
If the procedure is only to produce passthru SQL Code
-
isIdlCode
public boolean isIdlCode
If the procedure is only to produce passthru SQL Code
-
isSql
public boolean isSql
Indicates the procedure is internal SQL code
-
isSingle
public boolean isSingle
Indicates a single result is expected
-
isUpdate
public boolean isUpdate
Indicates a update Proc
-
isAction
public boolean isAction
Indicates an action no result is expected
-
isStd
public boolean isStd
Indicates procedure is a Standard procedure
-
useStd
public boolean useStd
Indicates the procedure uses the Standard Table definition
-
extendsStd
public boolean extendsStd
Indicates the procedures extends the Standard Table definition
-
useKey
public boolean useKey
Indicates the procedures uses the Primary key
-
hasImage
public boolean hasImage
Indicates the procedure has an Image field
-
isMultipleInput
public boolean isMultipleInput
Indicates a single result is expected
-
isInsert
public boolean isInsert
Indicates the procedure is the Insert procedure
-
hasReturning
public boolean hasReturning
-
hasUpdates
public boolean hasUpdates
-
start
public int start
Code starts at line
-
-
Method Detail
-
getName
public String getName()
-
getFrom
public String getFrom()
-
getWhere
public String getWhere()
-
getUsername
public String getUsername()
-
getNoRows
public int getNoRows()
-
isProc
public boolean isProc()
-
isSProc
public boolean isSProc()
-
isData
public boolean isData()
-
isIdlCode
public boolean isIdlCode()
-
isSql
public boolean isSql()
-
isSingle
public boolean isSingle()
-
isUpdate
public boolean isUpdate()
-
isAction
public boolean isAction()
-
isStd
public boolean isStd()
-
isUseStd
public boolean isUseStd()
-
isExtendsStd
public boolean isExtendsStd()
-
isUseKey
public boolean isUseKey()
-
isHasImage
public boolean isHasImage()
-
isMultipleInput
public boolean isMultipleInput()
-
isInsert
public boolean isInsert()
-
isHasReturning
public boolean isHasReturning()
-
isHasUpdates
public boolean isHasUpdates()
-
isBuiltIn
public boolean isBuiltIn()
-
reader
public void reader(DataInputStream ids) throws IOException
- Throws:
IOException
-
writer
public void writer(DataOutputStream ods) throws IOException
- Throws:
IOException
-
upperFirst
public String upperFirst()
Folds the first character of name to an upper case character
-
upperFirstOnly
public String upperFirstOnly()
Folds the first character of name to an upper case character
-
lowerFirst
public String lowerFirst()
Folds the first character of name to an lower case character
-
hasInput
public boolean hasInput(String s)
Checks for for name in input list
-
hasModifieds
public boolean hasModifieds()
-
indexOf
public int indexOf(String s)
Checks for for name in input list
-
hasOutput
public boolean hasOutput(String s)
Checks for for name in output list
-
hasDynamic
public boolean hasDynamic(String s)
Checks for for name in dynamics list
-
getDynamicSize
public int getDynamicSize(String s)
Checks for for name in dynamics list
-
isStrung
public boolean isStrung(String s)
Checks if a strung dynamic
-
hasNoData
public boolean hasNoData()
Checks if proc uses data
-
hasDiscreteInput
public boolean hasDiscreteInput()
Checks if proc has unique input ie. not already in output
-
checkPlaceHolders
public void checkPlaceHolders()
-
hasOption
public boolean hasOption(String value)
-
hasFields
public boolean hasFields(String value)
-
hasOrders
public boolean hasOrders(String value)
-
hasUpdateFields
public boolean hasUpdateFields(String value)
-
isStdExtended
public boolean isStdExtended()
-
-