|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bibalex.daf.entities.AdminModuleBase org.bibalex.daf.entities.Collection
public class Collection
Field Summary | |
---|---|
private java.lang.String |
collAbrevation
|
private boolean |
collActive
|
private boolean |
collAnyUser
|
private boolean |
collAnyWorkstation
|
private java.lang.String |
collComment
|
private java.lang.String |
collDefaultPath
|
private java.lang.String |
collName
|
private int |
collPriority
|
private DBConnection |
conn
|
private int |
IcgID
|
private int |
id
|
private int |
OwnID
|
private int |
PrjID
|
Constructor Summary | |
---|---|
Collection()
Class Constructor, empty constructor creates an empty object, used to create new Collections |
|
Collection(DataTable table)
Constructor, creates a new Collection Object using the Collection DataTable without hitting the database. |
|
Collection(int collID)
Constructor, creates a new Collection Object using the Collection ID, by retrieving the information from the database. |
Method Summary | |
---|---|
OperationInfo |
add()
Add new collection |
OperationInfo |
delete()
delete collection |
OperationInfo |
deleteCascade()
delete collection in cascade |
OperationInfo |
getBatches()
Gets the batches of this collection. |
static OperationInfo |
getByID(int recID)
select collection |
java.lang.String |
getCollAbbrevation()
get Collection Abbreviation |
boolean |
getCollActive()
get Collection collActive |
boolean |
getCollAnyUser()
get Collection CollAnyUser |
boolean |
getCollAnyWorkstation()
get Collection CollAnyWorkstation |
java.lang.String |
getCollComment()
get Collection Comment |
java.lang.String |
getCollDefaultPath()
get Collection Default Path |
java.lang.String |
getCollName()
get Collection Name |
int |
getCollPriority()
get Collection Priority |
int |
getIcgID()
get Collection In-Charge ID |
int |
getID()
Gets the collection ID. |
int |
getOwnID()
get Collection Owner ID |
int |
getPrjID()
get Collection Project ID |
OperationInfo |
getUsers()
select collection's Users |
OperationInfo |
getWorkStations()
select collection's WorkStations |
static OperationInfo |
loadAll()
Load all collections |
void |
setCollAbbrevation(java.lang.String collAbrevationValue)
set Collection Abbreviation |
void |
setCollActive(boolean collActiveValue)
set Collection collActive |
void |
setCollAnyUser(boolean collAnyUserValue)
set Collection CollAnyUser |
void |
setCollAnyWorkstation(boolean collAnyWorkstationValue)
set Collection CollAnyWorkstation |
void |
setCollComment(java.lang.String collCommentValue)
set Collection Comment |
void |
setCollDefaultPath(java.lang.String collDefaultPathValue)
set Collection Default Path |
void |
setCollName(java.lang.String collNameValue)
set Collection Name |
void |
setCollPriority(int collPriorityValue)
set Collection Priority |
void |
setFieldsFromDataTable(DataTable table)
Adjust the values of the Collection Object given a DataTable. |
void |
setIcgID(int IcgIDValue)
set Collection InCharge ID |
void |
setID(int collectionID)
Sets the collection ID |
void |
setOwnID(int OwnIDValue)
set Collection Owner ID |
void |
setPrjID(int PrjIDValue)
set Collection Project ID |
OperationInfo |
update()
update collection |
OperationInfo |
updateUsers(java.lang.Object[] usersIDs)
Updates the Users assigned to Work with this Collection (allowed Users). |
OperationInfo |
updateWorkStations(java.lang.Object[] wsIDs)
Updates the Workstations assigned to Work with this Collection (allowed Workstations). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private DBConnection conn
private int id
private java.lang.String collName
private java.lang.String collAbrevation
private java.lang.String collDefaultPath
private java.lang.String collComment
private int OwnID
private int PrjID
private int IcgID
private int collPriority
private boolean collAnyUser
private boolean collAnyWorkstation
private boolean collActive
Constructor Detail |
---|
public Collection()
public Collection(int collID) throws java.lang.Exception
collID
- The Collection ID in the database to use in creating and filling the Collection Information.
java.lang.Exception
- Object creation was not successfull.public Collection(DataTable table) throws java.lang.Exception
table
- The table containig the Collection Information (a table with a single row, or the first row).
java.lang.Exception
- Object creation was not successfull.Method Detail |
---|
public void setFieldsFromDataTable(DataTable table)
table
- The table containig the Collection Information (a table with a single row, or the first row).public static OperationInfo loadAll()
public static OperationInfo getByID(int recID)
recID
- is the record to be selected
public OperationInfo add()
add
in class AdminModuleBase
public OperationInfo delete()
delete
in class AdminModuleBase
public OperationInfo deleteCascade()
public OperationInfo update()
update
in class AdminModuleBase
public OperationInfo updateWorkStations(java.lang.Object[] wsIDs)
wsIDs
- An Object[] containing the Workstation IDs to Update with.
OperationInfo
to indicate weither the operation was successfull or not.public OperationInfo updateUsers(java.lang.Object[] usersIDs)
usersIDs
- An Object[] containing the User IDs to Update with.
OperationInfo
to indicate weither the operation was successfull or not.public OperationInfo getWorkStations()
public OperationInfo getUsers()
public OperationInfo getBatches()
public int getID()
public void setID(int collectionID)
collectionID
- The ID of the collection.public void setCollName(java.lang.String collNameValue)
collNameValue
- is the Collection name valuepublic void setCollAbbrevation(java.lang.String collAbrevationValue)
collAbrevationValue
- is the Collection Abbreviation valuepublic void setCollDefaultPath(java.lang.String collDefaultPathValue)
collDefaultPathValue
- is the Collection Default Path valuepublic void setCollComment(java.lang.String collCommentValue)
collCommentValue
- is the Collection comment valuepublic void setOwnID(int OwnIDValue)
OwnIDValue
- is the collection owner ID valuepublic void setPrjID(int PrjIDValue)
PrjIDValue
- is the collection project ID valuepublic void setIcgID(int IcgIDValue)
IcgIDValue
- is the collection in-charge ID valuepublic void setCollPriority(int collPriorityValue)
collPriorityValue
- is the Collection priority valuepublic void setCollAnyUser(boolean collAnyUserValue)
collAnyUserValue
- Set it to 1 when the collection is dedicated for any user, otherwise set it to 0public void setCollAnyWorkstation(boolean collAnyWorkstationValue)
collAnyWorkstationValue
- Set to "1" when the collection is dedicated for any WorkStation, otherwise set it to 0public void setCollActive(boolean collActiveValue)
collActiveValue
- Set to 1 when the collection is active, otherwise Set it to 0public java.lang.String getCollName()
public java.lang.String getCollAbbrevation()
public java.lang.String getCollDefaultPath()
public java.lang.String getCollComment()
public int getOwnID()
public int getPrjID()
public int getIcgID()
public int getCollPriority()
public boolean getCollAnyUser()
public boolean getCollAnyWorkstation()
public boolean getCollActive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |