|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.maverickdbms.basic.Session
The Session class is designed to be a continer to hold session specific data for the user.
| Field Summary | |
static long |
DATE_OFFSET
|
static long |
MILLISECS_IN_A_DAY
|
static int |
SCREEN_CHANNEL
|
static int |
SYSTEM_BUFFER
|
static int |
SYSTEM_CRTHIGH
|
static int |
SYSTEM_CRTLINES
|
static int |
SYSTEM_CRTWIDE
|
static int |
SYSTEM_LEVEL
|
static int |
SYSTEM_PRINTER
|
static int |
SYSTEM_PRINTERLINES
|
static int |
SYSTEM_PRINTERPAGE
|
static int |
SYSTEM_PROGRAMTIME
|
static int |
SYSTEM_SELECTLIST
|
static int |
SYSTEM_SLEEP
|
static int |
SYSTEM_SOMETHING
|
static int |
SYSTEM_STATUS
|
static int |
SYSTEM_STON
|
static int |
SYSTEM_TAPEBLOCKSIZE
|
static int |
SYSTEM_TERM
|
static int |
SYSTEM_TIME
|
| Constructor Summary | |
Session()
|
|
Session(java.util.Properties properties,
PseudoTerminal pty)
|
|
| Method Summary | |
void |
BREAK(boolean enable)
Set break key handling Note this function is not yet implemented |
void |
CALL(ConstantString subr,
mvString[] params)
Executes the specified subroutine |
static java.lang.String |
convertName(java.lang.String name)
converts a filename from external format to internal format |
static mvString |
DATE(mvString result)
Returns a number containing the internal date. |
void |
EXECUTE(mvString result,
ConstantString command)
Executes the specified command |
void |
EXECUTE(mvString result,
Program program,
ConstantString name,
mvString[] args)
|
mvString |
getAtVariable(mvString r,
int n)
|
Program |
getBaseProgram()
Gets the original starting program in the session |
PrintChannel |
getChannel(int channelNumber)
|
java.lang.String |
getCommandString()
|
Common |
getCommon(java.lang.String name)
Get specified named common for session |
Common |
getDefaultCommon()
|
Terminal |
getEmulation()
|
Factory |
getFactory()
|
InputChannel |
getInputChannel()
|
Program |
getProgram()
|
ConstantString |
getPrompt()
|
java.util.Properties |
getProperties()
|
boolean |
getProperty(java.lang.String property,
boolean dflt)
|
int |
getProperty(java.lang.String property,
int dflt)
|
java.lang.String |
getProperty(java.lang.String property,
java.lang.String dflt)
|
mvString |
getStatus()
|
mvString |
getSystem(mvString result,
int sequenceNo)
Retrieves specified SYSTEM value. |
void |
handleError(java.lang.Exception e,
mvString status)
|
static void |
NAP(ConstantString millis)
|
void |
PCPERFORM(mvString result,
ConstantString command)
|
void |
PRINTER_CLOSE(ConstantString channel,
mvString status)
|
void |
PRINTER_CLOSE(mvString status)
|
void |
PRINTER(boolean printerEnabled)
|
void |
PROMPT(ConstantString val)
|
void |
registerFileClose(Program program,
File file)
|
void |
registerFileOpen(Program program,
File file)
|
static void |
RQM(ConstantString mvs)
|
void |
setAtVariable(int index,
ConstantString value)
|
void |
setProperties(java.util.Properties properties)
|
void |
setSystem(int sequenceNo,
ConstantString value)
|
static void |
SLEEP(ConstantString mvs)
|
static mvString |
TIME(mvString result)
Returns the current time in internal format(seconds since midnight). |
static mvString |
TIMEDATE(mvString result)
Returns a string representation of the current time and date |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final long DATE_OFFSET
public static final long MILLISECS_IN_A_DAY
public static final int SCREEN_CHANNEL
public static final int SYSTEM_STATUS
public static final int SYSTEM_PRINTER
public static final int SYSTEM_CRTWIDE
public static final int SYSTEM_CRTHIGH
public static final int SYSTEM_CRTLINES
public static final int SYSTEM_PRINTERPAGE
public static final int SYSTEM_PRINTERLINES
public static final int SYSTEM_TERM
public static final int SYSTEM_TAPEBLOCKSIZE
public static final int SYSTEM_PROGRAMTIME
public static final int SYSTEM_STON
public static final int SYSTEM_SELECTLIST
public static final int SYSTEM_TIME
public static final int SYSTEM_SLEEP
public static final int SYSTEM_BUFFER
public static final int SYSTEM_SOMETHING
public static final int SYSTEM_LEVEL
| Constructor Detail |
public Session()
public Session(java.util.Properties properties,
PseudoTerminal pty)
throws mvException
| Method Detail |
public void BREAK(boolean enable)
throws mvException
enable - whether to enable break key handling
mvException
public void CALL(ConstantString subr,
mvString[] params)
throws mvException
subr - subroutine nameparams - subroutine parameters
mvExceptionpublic static java.lang.String convertName(java.lang.String name)
public static mvString DATE(mvString result)
public void EXECUTE(mvString result,
ConstantString command)
result - the string to contain the programs screen outputcommand - the command to execute
public void EXECUTE(mvString result,
Program program,
ConstantString name,
mvString[] args)
public mvString getAtVariable(mvString r,
int n)
throws mvException
mvExceptionpublic Program getBaseProgram()
public Common getDefaultCommon()
public java.lang.String getCommandString()
public Common getCommon(java.lang.String name)
name - name of common required
public Terminal getEmulation()
throws mvException
mvExceptionpublic Factory getFactory()
public InputChannel getInputChannel()
throws mvException
mvException
public PrintChannel getChannel(int channelNumber)
throws mvException
mvExceptionpublic Program getProgram()
public ConstantString getPrompt()
public boolean getProperty(java.lang.String property,
boolean dflt)
public int getProperty(java.lang.String property,
int dflt)
public java.lang.String getProperty(java.lang.String property,
java.lang.String dflt)
public java.util.Properties getProperties()
public mvString getStatus()
public void handleError(java.lang.Exception e,
mvString status)
public static void NAP(ConstantString millis)
public void PCPERFORM(mvString result,
ConstantString command)
throws mvException
mvExceptionpublic void PRINTER(boolean printerEnabled)
public void PRINTER_CLOSE(mvString status)
throws mvException
mvException
public void PRINTER_CLOSE(ConstantString channel,
mvString status)
throws mvException
mvExceptionpublic void PROMPT(ConstantString val)
public void registerFileClose(Program program,
File file)
public void registerFileOpen(Program program,
File file)
public static void RQM(ConstantString mvs)
throws java.text.ParseException,
java.lang.InterruptedException
java.text.ParseException
java.lang.InterruptedException
public void setAtVariable(int index,
ConstantString value)
throws mvException
mvExceptionpublic void setProperties(java.util.Properties properties)
public void setSystem(int sequenceNo,
ConstantString value)
throws mvException
mvExceptionpublic static void SLEEP(ConstantString mvs)
public mvString getSystem(mvString result,
int sequenceNo)
throws mvException
result - variable to hold resultsequenceNo - index required
mvExceptionpublic static mvString TIME(mvString result)
public static mvString TIMEDATE(mvString result)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||