|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.maverickdbms.basic.DefaultResolver
Default resolver implemenation. Just trys classpath to find programs
| Field Summary |
| Fields inherited from interface org.maverickdbms.basic.Resolver |
DEFAULT_REGISTER_FILE_OPENS, DEFAULT_REGISTER_RESOLVER, PROP_REGISTER_FILE_OPENS, PROP_REGISTER_RESOLVER |
| Constructor Summary | |
DefaultResolver()
|
|
| Method Summary | |
void |
createFile(ConstantString type,
ConstantString name,
int flags,
ConstantString[] fields)
Create the specified file. |
void |
deleteList(ConstantString name,
mvString status)
Removes the specified list. |
void |
dropFile(ConstantString type,
ConstantString name)
Removes the specified file. |
Resolver |
getNextResolver()
Gets the next resolver in the chain |
Program |
resolveCommand(ConstantString command)
Resolve the specified command |
ConstantString |
resolveFile(Program program,
mvString var,
ConstantString type,
ConstantString name,
int flags,
mvString status)
Find and open the specified file. |
ConstantString |
resolveList(mvString var,
mvString count,
ConstantString name,
mvString status)
Resolve the specified list |
Program |
resolveProgram(ConstantString name)
Resolve the specified program |
ConstantString |
run(Session session,
mvString[] args)
|
void |
setNextResolver(Resolver next)
Sets the next resolver in the chain |
void |
writeList(ConstantString var,
ConstantString record,
mvString status)
Write the specified item as a list |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultResolver()
| Method Detail |
public void createFile(ConstantString type,
ConstantString name,
int flags,
ConstantString[] fields)
throws mvException
Resolver
createFile in interface Resolvertype - the type of the file.name - the name of the fileflags - optional flagsfields - extra arguments needed for file creation
mvException
public void deleteList(ConstantString name,
mvString status)
throws mvException
Resolver
deleteList in interface Resolvername - the list to remove.status - the status variable to set on success
mvException
public void dropFile(ConstantString type,
ConstantString name)
throws mvException
Resolver
dropFile in interface Resolvertype - the type of the file.name - the name of the file.
mvExceptionpublic Resolver getNextResolver()
Resolver
getNextResolver in interface Resolver
public ConstantString resolveFile(Program program,
mvString var,
ConstantString type,
ConstantString name,
int flags,
mvString status)
throws mvException
Resolver
resolveFile in interface Resolverprogram - the program opening the specified filetype - the type of file to openname - the name of the file to openflags - any optional flagsstatus - the status variable to set on success
mvException
public Program resolveCommand(ConstantString command)
throws mvException
Resolver
resolveCommand in interface Resolvercommand - the command to parse
mvException
public ConstantString resolveList(mvString var,
mvString count,
ConstantString name,
mvString status)
throws mvException
Resolver
resolveList in interface Resolvervar - the variable to contain the resulting listcount - the number of elements in the listname - the name of the liststatus - the status variable to set on success
mvException
public Program resolveProgram(ConstantString name)
throws mvException
Resolver
resolveProgram in interface Resolvername - the name of the program
mvException
public ConstantString run(Session session,
mvString[] args)
run in interface Programpublic void setNextResolver(Resolver next)
Resolver
setNextResolver in interface Resolvernext - the next resolver
public void writeList(ConstantString var,
ConstantString record,
mvString status)
throws mvException
Resolver
writeList in interface Resolvervar - the item to writerecord - the name to store the list understatus - the status variable to set on success
mvException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||