|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object openlsd.database.business.LSDBusiness
public abstract class LSDBusiness
Abstract Business Class that must be implemented to fit the needs of the target business.
to see an example of basic Implementation.
,
to see an extended example of Implementation.
Field Summary | |
---|---|
static java.lang.String |
allFieldsExt
Must Be Extended in Implementation: Values to add to allfields (replace select *) |
protected static java.lang.String[] |
fieldsext
Must Be Extended in Implementation: Extended fields for Business |
static java.lang.String |
getFieldsSetAllExt
Must Be Extended in Implementation: Set for all fields |
static java.lang.String |
getFieldsSetExt
Must Be Extended in Implementation: Set for all fields except fields used in getWhereClause |
static java.lang.String |
getFieldsSetExtNULL
Must Be Extended in Implementation: Set values as NULL (or empty) including where clause |
static java.lang.String |
getWhereClause
Must Be Extended in Implementation: Where condition in " condition " format which will be added to " WHERE Legacy = ? |
Constructor Summary | |
---|---|
LSDBusiness()
Must Be Extended in Implementation: Default empty constructor |
|
LSDBusiness(int[] ranks,
java.lang.String[] args)
Must Be Extended in Implementation: Constructor from 1 int[] for rank and 1 String[] for value |
|
LSDBusiness(LSDBusiness lsdb)
Must Be Extended in Implementation: Constructor from another LSDBusiness (same type) |
Method Summary | |
---|---|
abstract void |
clear()
Clear all data in the object |
abstract LSDBusiness |
clone()
Clone the current object but only copy values |
abstract java.lang.String |
doc_hintBusiness()
Returns the hint for DOC on Business Index |
abstract boolean |
equals(LSDBusiness other)
Comparison of two LSDBusiness object on primary key (Business Index) |
abstract java.lang.String |
getAllFieldsExt()
Values to add to allfields (replace select *) |
abstract java.lang.String |
getFieldsExt(int number)
Extended fields for Business |
abstract java.lang.String |
getFieldsSetAllExt()
Set for all fields |
abstract java.lang.String |
getFieldsSetExt()
Set for all fields except fields used in getWhereClause |
abstract java.lang.String |
getFieldsSetExtNULL()
Set values as NULL (or empty) including where clause |
abstract java.lang.String |
getFieldsValues()
Set Values for Insert command |
abstract boolean |
getFromResultSet(java.sql.ResultSet resultSet)
Set internal value from ResultSet |
abstract java.lang.String |
getWhereClause()
Where condition in " condition " format which will be added to " WHERE Legacy = ? |
static LSDBusiness |
newBusiness()
Create an empty LSDBusiness according to the registering implementation |
abstract boolean |
setFromLSDBusiness(LSDBusiness lsdb)
Set the currect object to the values from the object as parameter |
abstract void |
setFromString(java.lang.String line)
Fill the object from the String for function that gets information of Business index from one line from a file |
abstract boolean |
setFromStringArray(int[] ranks,
java.lang.String[] args)
Set from 1 int[] for rank and 1 String[] for value |
abstract int |
setFromStrings(int curargs,
java.lang.String[] args)
Fill the object from the String for Import function (an array containing from curargs position a set of values from one line with blank character as separator) |
abstract int |
setToPrepStmtGetFieldsSetAllExt(int startrank,
LSDDbPreparedStatement preparedStatement)
Set the value into the prepareStatement from Object for the set in GetFieldsSetAllExt |
abstract int |
setToPrepStmtGetFieldsSetExt(int startrank,
LSDDbPreparedStatement preparedStatement)
Set the value into the prepareStatement from Object for the set in GetFieldsSetExt |
abstract int |
setToPrepStmtGetWhereClause(int startrank,
LSDDbPreparedStatement preparedStatement)
Set the value into the prepareStatement from Object for the Where Condition in getWhereClause |
abstract java.lang.String |
toCSV()
Object to CSV. |
abstract java.lang.String |
toString()
Object to String |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String[] fieldsext
public static final java.lang.String allFieldsExt
public static java.lang.String getWhereClause
public static java.lang.String getFieldsSetExt
public static java.lang.String getFieldsSetAllExt
public static java.lang.String getFieldsSetExtNULL
Constructor Detail |
---|
public LSDBusiness()
public LSDBusiness(LSDBusiness lsdb)
lsdb
- public LSDBusiness(int[] ranks, java.lang.String[] args)
ranks
- args
- Method Detail |
---|
public abstract java.lang.String getFieldsExt(int number)
number
-
public abstract java.lang.String getAllFieldsExt()
public abstract java.lang.String getWhereClause()
public abstract java.lang.String getFieldsSetExt()
public abstract java.lang.String getFieldsSetAllExt()
public abstract java.lang.String getFieldsSetExtNULL()
public abstract java.lang.String doc_hintBusiness()
public abstract boolean setFromLSDBusiness(LSDBusiness lsdb)
lsdb
-
public abstract boolean setFromStringArray(int[] ranks, java.lang.String[] args)
ranks
- args
-
public abstract boolean getFromResultSet(java.sql.ResultSet resultSet)
resultSet
-
public abstract java.lang.String getFieldsValues()
public abstract int setToPrepStmtGetWhereClause(int startrank, LSDDbPreparedStatement preparedStatement)
startrank
- The value to start from in the preparedStatement.setXXX callpreparedStatement
-
public abstract int setToPrepStmtGetFieldsSetExt(int startrank, LSDDbPreparedStatement preparedStatement)
startrank
- The value to start from in the preparedStatement.setXXX callpreparedStatement
-
public abstract int setToPrepStmtGetFieldsSetAllExt(int startrank, LSDDbPreparedStatement preparedStatement)
startrank
- The value to start from in the preparedStatement.setXXX callpreparedStatement
-
public abstract void clear()
public abstract boolean equals(LSDBusiness other)
other
-
public abstract LSDBusiness clone()
clone
in class java.lang.Object
public static LSDBusiness newBusiness()
public abstract void setFromString(java.lang.String line)
line
- public abstract int setFromStrings(int curargs, java.lang.String[] args)
args
- curargs
-
public abstract java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public abstract java.lang.String toCSV()
Object.toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |