|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 M4Object s 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. |
Method Detail |
public DB getM4Db()
public M4Object load(long id) throws M4Exception
M4Exception
public Print getCasePrintObject()
public 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.Print
public void doPrint(java.lang.Exception ex)
ex
- An exception object. Its message string will be printed.public void print()
public long getId()
public void setId(long id) throws M4Exception
M4Exception
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String replaceSpacesInName(java.lang.String name)
name
- the original name for an M4 object (or null
)
null
)public boolean isNew()
public M4Object getM4ObjectFromCache(long Id)
Id
- The unique M4 Id of the object to be loaded.public void putM4ObjectToCache(M4Object m4o) throws M4Exception
M4Exception
public 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
public 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
public 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
public 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
public java.lang.Long executeM4SingleValueSqlReadL(java.lang.String query) throws M4Exception
M4Exception
public java.lang.Long executeBusinessSingleValueSqlReadL(java.lang.String query) throws M4Exception
M4Exception
public java.lang.String executeM4SingleValueSqlRead(java.lang.String query) throws M4Exception
M4Exception
public java.lang.String executeBusinessSingleValueSqlRead(java.lang.String query) throws M4Exception
M4Exception
public long getNextM4SequenceValue() throws M4Exception
M4Exception
public boolean equals(java.lang.Object obj)
M4Object
s are defined to be equal, if they refer to the
same object. This is true, if their ID is the same.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |