|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.udo.cs.miningmart.m4.M4Interface
edu.udo.cs.miningmart.m4.core.M4InterfaceImpl
Nested Class Summary |
Nested classes inherited from class edu.udo.cs.miningmart.m4.M4Interface |
M4Interface.CaseLockedException |
Field Summary |
Fields inherited from class edu.udo.cs.miningmart.m4.M4Interface |
AVAILABLE_MATCHERS, currentCase, currentCompilerAccess, MATCHER_EDITDISTANCE, MATCHER_NGRAM, MATCHER_SIMPLE, MATCHER_SOUNDEX, print, SYSTEM_PROP_DB_CONFIG_PATH, SYSTEM_PROP_PRINT_VERBOSITY |
Constructor Summary | |
M4InterfaceImpl()
Constructor Will set up the database connections and the Print object for
log outputs |
Method Summary | |
boolean |
canRemoveM4Access(java.lang.String caseName)
Check if the M4Access for the specified Case can be removed. |
Case |
createCase(java.lang.String name,
boolean setAsCurrentCase)
Creates a new Case. |
Operator |
createOperator(java.lang.String name)
Creates a new Operator. |
boolean |
existsCase(java.lang.String name)
Checks wether a case with this name exists. |
Case |
findCase(java.lang.String name,
boolean setAsCurrent)
|
Case |
findCaseForReadOnlyAccess(java.lang.String name,
boolean setAsCurrent)
Returns a Case for read-only access. |
Case |
findCaseForUpdate(java.lang.String name,
boolean setAsCurrent)
Returns a Case and locks it so it may be modified. |
java.util.Collection |
findConnection(Concept theConcept,
java.util.Collection namesOfDbObjects,
java.lang.String matcher)
Connects the given concept with one of the Db Objects (tables or views) whose names are given in the second parameter. |
Operator |
findOperator(java.lang.String name)
Returns an Operator that may be changed. |
java.util.Collection |
getAllCaseNames()
Current implementation: Reads case names directly from the database, so it has to be taken care for writing back the cache in time! |
java.util.Collection |
getAllOperatorNames()
Current implementation: Reads operator names directly from the database, so it has to be taken care for writing back the cache in time! |
Case |
getCase()
|
DB |
getM4db()
|
java.util.Collection |
getNamesOfBusinessTablesAndViews()
|
void |
getNewDbConnection()
|
OperatorGroup |
getOperatorGroup()
|
Print |
getPrintObject()
|
boolean |
getStopRequest()
|
boolean |
isBusinessTable(java.lang.String name)
Checks wether a table in the business schema with this name exists. |
boolean |
isBusinessView(java.lang.String name)
Checks wether a view in the business schema with this name exists. |
boolean |
isCaseLockedForReading(java.lang.String caseName)
Check if case can be locked for reading. |
boolean |
isCaseLockedForWriting(java.lang.String caseName)
Check if case can be locked for writing. |
void |
releaseCase(java.lang.String name)
Release a Case for access. |
void |
releaseCaseWithoutStoring(java.lang.String name)
Release a Case from access lock, but do not store it to the DB even if it has been changed. |
Methods inherited from class edu.udo.cs.miningmart.m4.M4Interface |
getCurrentCase, getCurrentCompilerAccess, getInstance, removeCurrentCase, setCurrentCase, setCurrentCompilerAccess, setInstance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public M4InterfaceImpl()
Print
object for
log outputs
Method Detail |
public void getNewDbConnection()
public boolean getStopRequest()
getStopRequest
in interface M4InterfaceContext
public Case getCase()
getCase
in interface M4InterfaceContext
public DB getM4db()
getM4db
in interface M4InterfaceContext
getM4db
in class M4Interface
public Print getPrintObject()
getPrintObject
in interface M4InterfaceContext
public Case createCase(java.lang.String name, boolean setAsCurrentCase) throws M4Exception
M4Interface
createCase
in class M4Interface
name
- The name of the Case that should be created.setAsCurrentCase
- If this parameter is set to TRUE, the newly created
case is set as the current case, and can be retrieved using getCurrentCase().
Otherwise the only handle to the new case is the returned object.
M4Exception
M4Interface.createCase(String, boolean)
public Operator createOperator(java.lang.String name) throws M4Exception
M4Interface
createOperator
in class M4Interface
name
- The name of the Operator that should be created.
M4Exception
M4Interface.createOperator(String)
public java.util.Collection getAllCaseNames()
getAllCaseNames
in class M4Interface
M4Interface.getAllCaseNames()
public java.util.Collection getNamesOfBusinessTablesAndViews() throws M4Exception
getNamesOfBusinessTablesAndViews
in class M4Interface
M4Exception
M4Interface.getNamesOfBusinessTablesAndViews()
public boolean isBusinessTable(java.lang.String name) throws M4Exception
M4Interface
isBusinessTable
in class M4Interface
name
- the name of the table
M4Exception
M4Interface.isBusinessTable(java.lang.String)
public boolean isBusinessView(java.lang.String name) throws M4Exception
M4Interface
isBusinessView
in class M4Interface
name
- the name of the view
M4Exception
M4Interface.isBusinessView(java.lang.String)
public boolean existsCase(java.lang.String name)
M4Interface
existsCase
in class M4Interface
M4Interface.existsCase(String)
public Operator findOperator(java.lang.String name)
M4Interface
findOperator
in class M4Interface
name
- The name of the Operator that should be retrieved.
M4Interface.findOperator(String)
public Case findCase(java.lang.String name, boolean setAsCurrent)
public java.util.Collection getAllOperatorNames()
getAllOperatorNames
in class M4Interface
M4Interface.getAllOperatorNames()
public java.util.Collection findConnection(Concept theConcept, java.util.Collection namesOfDbObjects, java.lang.String matcher) throws M4Exception
M4Interface
findConnection
in class M4Interface
theConcept
- Concept to be connectednamesOfDbObjects
- Names of business schema tables and views among which
to select the best-matching onematcher
- The type of schema matching algorithm to be used (must be one of
the corresponding public constants of this class)
M4Exception
edu.udo.miningmart.m4.M4Interface#findConnection(Concept, Collection, String)
public boolean canRemoveM4Access(java.lang.String caseName)
M4Interface
Case
can be removed.
canRemoveM4Access
in class M4Interface
M4Interface.canRemoveM4Access(String)
public boolean isCaseLockedForReading(java.lang.String caseName)
M4Interface
isCaseLockedForReading
in class M4Interface
M4Interface.isCaseLockedForReading(String)
public boolean isCaseLockedForWriting(java.lang.String caseName)
M4Interface
isCaseLockedForWriting
in class M4Interface
M4Interface.isCaseLockedForWriting(String)
public Case findCaseForReadOnlyAccess(java.lang.String name, boolean setAsCurrent) throws M4Interface.CaseLockedException
M4Interface
findCaseForReadOnlyAccess
in class M4Interface
name
- The name of the Case that should be retrieved.setAsCurrent
- Boolean indicating retrieved case should be set as current.
The current Case is used as the context for M4Interface methods that depend
on the Case. Normally this value should be set to true. Note that the
current Case context can also be set using the setCurrentCase
method.
M4Interface.CaseLockedException
- when a Case is already locked for reading.M4Interface.findCaseForReadOnlyAccess(String, boolean)
public Case findCaseForUpdate(java.lang.String name, boolean setAsCurrent) throws M4Interface.CaseLockedException
M4Interface
findCaseForUpdate
in class M4Interface
name
- The name of the Case that should be retrieved.setAsCurrent
- If the retrieved Case should be set as the current Case
context for M4Interface methods that depend on the Case. Normally this
value should be set to true. Note that the current Case context can also
be set using the setCurrentCase
method.
M4Interface.CaseLockedException
- when a Case is already locked for writing.M4Interface.findCaseForUpdate(String, boolean)
public void releaseCase(java.lang.String name)
M4Interface
releaseCase
in class M4Interface
name
- the name of the case to be releasedM4Interface.releaseCase(String)
public void releaseCaseWithoutStoring(java.lang.String name)
M4Interface
releaseCaseWithoutStoring
in class M4Interface
name
- the name of the case to be releasedM4Interface.releaseCaseWithoutStoring(String)
public OperatorGroup getOperatorGroup()
getOperatorGroup
in class M4Interface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |