|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.core.data.DataObject
org.opensubsystems.core.data.BasicDataObject
org.opensubsystems.core.data.ModifiableDataObject
org.opensubsystems.inventory.data.Inventory
public class Inventory
Inventory tracks aggregates items available for order/issue/etc.
| Field Summary | |
|---|---|
static int[] |
ALL_FILTER_COLUMNS
TODO: For Miro: This is not used for now so either we implement filters for it and then remove this to do or remove this attribute. |
static int[] |
ALL_INVENTORY_COLUMNS
Static variable for array of all columns codes. |
static int |
COL_INVENTORY_CREATION_DATE
Code for table column. |
static int |
COL_INVENTORY_DESCRIPTION
Code for table column. |
static int |
COL_INVENTORY_DOMAIN_ID
Code for table column. |
static int |
COL_INVENTORY_ID
Code for table column. |
static int |
COL_INVENTORY_MODIFICATION_DATE
Code for table column. |
static int |
COL_INVENTORY_NAME
Code for table column. |
static java.lang.Integer |
COL_INVENTORY_NAME_OBJ
Object code for table column. |
static int[] |
DEFAULT_LIST_COLUMNS
Default columns to retrieve when asked for list of objects. |
static int[] |
DEFAULT_LIST_SORT_COLUMNS
Default columns to sort by when asked for list of objects. |
static java.lang.String[] |
DEFAULT_LIST_SORT_ORDER
Default order in which the columns will be sorted. |
protected java.lang.String |
m_strDescription
Description of the inventory |
protected java.lang.String |
m_strName
Name of the inventory |
protected static int |
s_iDescriptionMaxLength
Maximal length of inventory description in chars |
protected static int |
s_iNameMaxLength
Maximal length of inventory name in chars |
| Fields inherited from class org.opensubsystems.core.data.ModifiableDataObject |
|---|
m_modificationTimestamp |
| Fields inherited from class org.opensubsystems.core.data.BasicDataObject |
|---|
m_creationTimestamp, m_iDomainId |
| Fields inherited from class org.opensubsystems.core.data.DataObject |
|---|
NEW_ID, NEW_ID_OBJ, NEW_ID_STR |
| Constructor Summary | |
|---|---|
Inventory()
Empty constructor |
|
Inventory(int iDomainId)
Constructor for new object. |
|
Inventory(int iInventoryId,
int iDomainId,
java.lang.String strName,
java.lang.String strDescription,
java.sql.Timestamp creationDate,
java.sql.Timestamp modificationDate)
Full constructor |
|
Inventory(int iDomainId,
java.lang.String strName,
java.lang.String strDescription)
Constructor for new object. |
|
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
|
java.lang.String |
getName()
|
boolean |
isSame(java.lang.Object oObject)
|
static void |
setDescriptionMaxLength(int iNewDescriptionMaxLength)
Set static description max length parameter. |
static void |
setNameMaxLength(int iNewNameMaxLength)
Set static description max length parameter. |
| Methods inherited from class org.opensubsystems.core.data.ModifiableDataObject |
|---|
equals, getModificationTimestamp, hashCode, restore, setModificationTimestamp |
| Methods inherited from class org.opensubsystems.core.data.BasicDataObject |
|---|
getCreationTimestamp, getDomainId, getId, getIdAsObject, restore, setCreationTimestamp, setId |
| Methods inherited from class org.opensubsystems.core.data.DataObject |
|---|
isFromPersistenceStore, setFromPersistenceStore |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int COL_INVENTORY_ID
public static final int COL_INVENTORY_DOMAIN_ID
public static final int COL_INVENTORY_NAME
public static final java.lang.Integer COL_INVENTORY_NAME_OBJ
public static final int COL_INVENTORY_DESCRIPTION
public static final int COL_INVENTORY_CREATION_DATE
public static final int COL_INVENTORY_MODIFICATION_DATE
public static final int[] ALL_INVENTORY_COLUMNS
public static final int[] ALL_FILTER_COLUMNS
public static final int[] DEFAULT_LIST_COLUMNS
public static final int[] DEFAULT_LIST_SORT_COLUMNS
public static final java.lang.String[] DEFAULT_LIST_SORT_ORDER
protected static int s_iNameMaxLength
protected static int s_iDescriptionMaxLength
protected java.lang.String m_strName
protected java.lang.String m_strDescription
| Constructor Detail |
|---|
public Inventory()
public Inventory(int iDomainId)
iDomainId - - domain id
public Inventory(int iDomainId,
java.lang.String strName,
java.lang.String strDescription)
iDomainId - - domain idstrName - - inventory namestrDescription - - inventory description
public Inventory(int iInventoryId,
int iDomainId,
java.lang.String strName,
java.lang.String strDescription,
java.sql.Timestamp creationDate,
java.sql.Timestamp modificationDate)
iInventoryId - - inventory idiDomainId - - domain idstrName - - inventory namestrDescription - - inventory descriptioncreationDate - - inventory creation datemodificationDate - - inventory last modification date| Method Detail |
|---|
public static void setNameMaxLength(int iNewNameMaxLength)
iNewNameMaxLength - - new description max lengthpublic static void setDescriptionMaxLength(int iNewDescriptionMaxLength)
iNewDescriptionMaxLength - - new description max lengthpublic java.lang.String getName()
public java.lang.String getDescription()
public boolean isSame(java.lang.Object oObject)
isSame in class org.opensubsystems.core.data.DataObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||