|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface M4Object
| Method Summary | |
|---|---|
void |
doPrint(java.lang.Exception ex)
Method to print exception messages to the screen or log file. |
void |
doPrint(java.util.logging.Level verbosity,
java.lang.String printString)
Method to print messages to the screen or log file. |
boolean |
equals(java.lang.Object obj)
Two M4Objects are defined to be equal, if they refer to the
same object. |
java.lang.String |
executeBusinessSingleValueSqlRead(java.lang.String query)
|
java.lang.Long |
executeBusinessSingleValueSqlReadL(java.lang.String query)
|
java.sql.ResultSet |
executeBusinessSqlRead(java.lang.String query)
Method to comfortably read from the business database. |
void |
executeBusinessSqlWrite(java.lang.String query)
Method to comfortably write to the business database. |
java.lang.String |
executeM4SingleValueSqlRead(java.lang.String query)
|
java.lang.Long |
executeM4SingleValueSqlReadL(java.lang.String query)
|
java.sql.ResultSet |
executeM4SqlRead(java.lang.String query)
Method to comfortably read from the M4 database. |
void |
executeM4SqlWrite(java.lang.String query)
Method to comfortably write to the M4 database. |
Print |
getCasePrintObject()
|
long |
getId()
Returns id for this object. |
DB |
getM4Db()
Get the DB Object |
M4Object |
getM4ObjectFromCache(long Id)
This method returns the object with the given Id if it is in the Cache. |
java.lang.String |
getName()
Get the name for this object. |
long |
getNextM4SequenceValue()
|
boolean |
isNew()
Check for M4Object if it was newly created by the user, or if it is already in the database. |
M4Object |
load(long id)
Load the M4 object with the given ID. |
void |
print()
Method to print data about this M4Object. |
void |
putM4ObjectToCache(M4Object m4o)
This method stores an M4 object in the Cache, using its ID as the key for the underlying data structure. |
java.lang.String |
replaceSpacesInName(java.lang.String name)
Service method for M4Object names that are also used as DB names. |
void |
setId(long id)
Sets id for this object. |
void |
setName(java.lang.String name)
Set the name for this object. |
void |
setNotNew()
Allows to set the "isNew" flag to FALSE. |
| Method Detail |
|---|
DB getM4Db()
M4Object load(long id)
throws M4Exception
M4ExceptionPrint getCasePrintObject()
void doPrint(java.util.logging.Level verbosity,
java.lang.String printString)
verbosity - A verbosity level. Use one of the public
static variables of the class Print.printString - The string with the message.edu.udo.cs.miningmart.m4.core.utils.Printvoid doPrint(java.lang.Exception ex)
ex - An exception object. Its message string will be printed.void print()
long getId()
void setId(long id)
throws M4Exception
M4Exceptionjava.lang.String getName()
void setName(java.lang.String name)
java.lang.String replaceSpacesInName(java.lang.String name)
name - the original name for an M4 object (or null)
null)boolean isNew()
void setNotNew()
M4Object getM4ObjectFromCache(long Id)
Id - The unique M4 Id of the object to be loaded.
void putM4ObjectToCache(M4Object m4o)
throws M4Exception
An - M4Object to be stored in the Cache.
M4Exception
void executeM4SqlWrite(java.lang.String query)
throws M4Exception
query - an SQL query to be executed. This has to be a write operation to the M4 database,
or an SQL string to execute a procedure in the M4 schema.
M4Exception
void executeBusinessSqlWrite(java.lang.String query)
throws M4Exception
query - an SQL query to be executed. This has to be a write operation to the business database,
or an SQL string to execute a procedure in the business schema.
M4Exception
java.sql.ResultSet executeM4SqlRead(java.lang.String query)
throws M4Exception
ResultSet after usage!
query - an SQL query to be executed. This has to be a read operation on the M4 database.
M4Exception
java.sql.ResultSet executeBusinessSqlRead(java.lang.String query)
throws M4Exception
ResultSet after usage!
query - an SQL query to be executed. This has to be a read operation on the business database.
M4Exception
java.lang.Long executeM4SingleValueSqlReadL(java.lang.String query)
throws M4Exception
M4Exception
java.lang.Long executeBusinessSingleValueSqlReadL(java.lang.String query)
throws M4Exception
M4Exception
java.lang.String executeM4SingleValueSqlRead(java.lang.String query)
throws M4Exception
M4Exception
java.lang.String executeBusinessSingleValueSqlRead(java.lang.String query)
throws M4Exception
M4Exception
long getNextM4SequenceValue()
throws M4Exception
M4Exceptionboolean equals(java.lang.Object obj)
M4Objects are defined to be equal, if they refer to the
same object. This is true, if their ID is the same.
equals in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||