org.bibalex.daf.entities
Class JobType

java.lang.Object
  extended by org.bibalex.daf.entities.AdminModuleBase
      extended by org.bibalex.daf.entities.JobType

public class JobType
extends AdminModuleBase


Field Summary
private  DBConnection conn
           
private  int id
           
private  java.lang.String JT_Description
           
private  int JT_LifeTime
           
private  java.lang.String JT_Name
           
private  java.lang.String JT_NamingConvention
           
 
Constructor Summary
JobType()
          Class Constructor
JobType(DataTable table)
           
JobType(int JTID)
           
 
Method Summary
 OperationInfo add()
          Add new JobType
 OperationInfo delete()
          delete JobType
 OperationInfo deleteCascade()
          delete JobType in cascade
 OperationInfo deleteMediaTypes(int mediaTypeID)
          delete assigned media type
 OperationInfo getAllPhases()
          Select all phases related to a JobType
 OperationInfo getAvailablePhases()
          Loads all phases that are available but not in job type sequence
static OperationInfo getByID(int recID)
          select JobType
 int getID()
          Gets the JobType ID.
 java.lang.String getJTDescription()
          get JobType Description
 int getJTLifeTime()
          get JobType LifeTime
 java.lang.String getJTName()
          get JobType Name
 java.lang.String getJTNamingConvention()
          get JobType NamingConvention
 OperationInfo getMediaTypes()
          get all media types assigned to job type
 OperationInfo getNotAutoPhases()
          Loads all phases that are not auto
 OperationInfo getPhases()
          Loads all phases
 OperationInfo getRateTableSchema()
           
 OperationInfo getSeqPhases()
          Loads all phases taht have sequence
static OperationInfo loadAll()
          Load all JobType
 void setFieldsFromDataTable(DataTable table)
           
 void setID(int typeID)
          Sets the jobType ID
 void setJTDescription(java.lang.String Value)
          set JobType Description
 void setJTLifeTime(int Value)
          set JobType LifeTime
 void setJTName(java.lang.String Value)
          set JobType Name
 void setJTNamingConvention(java.lang.String Value)
          set JobType NamingConvention
 OperationInfo update()
          update JobType
 OperationInfo updateMediaTypes(int mediaTypeID)
          update assigned media types
 OperationInfo updateMediaTypes(java.lang.Object[] MTIDs)
          Update Media Types assigned to jobtype
 OperationInfo updatePhasesSeq(java.lang.Object[] phasesIDs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conn

private DBConnection conn

id

private int id

JT_Name

private java.lang.String JT_Name

JT_Description

private java.lang.String JT_Description

JT_NamingConvention

private java.lang.String JT_NamingConvention

JT_LifeTime

private int JT_LifeTime
Constructor Detail

JobType

public JobType()
Class Constructor


JobType

public JobType(int JTID)
        throws java.lang.Exception
Throws:
java.lang.Exception

JobType

public JobType(DataTable table)
        throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

setFieldsFromDataTable

public void setFieldsFromDataTable(DataTable table)

loadAll

public static OperationInfo loadAll()
Load all JobType

Returns:
OperationInfo (bool, DataTable)

getRateTableSchema

public OperationInfo getRateTableSchema()

getByID

public static OperationInfo getByID(int recID)
select JobType

Parameters:
recID - is the record to be selected
Returns:
OperationInfo (bool, DataTable) for the selected record

add

public OperationInfo add()
Add new JobType

Specified by:
add in class AdminModuleBase
Returns:
OperationInfo (bool, DataTable) for the added record

updatePhasesSeq

public OperationInfo updatePhasesSeq(java.lang.Object[] phasesIDs)

delete

public OperationInfo delete()
delete JobType

Specified by:
delete in class AdminModuleBase
Returns:
OperationInfo (bool, DataTable)

deleteCascade

public OperationInfo deleteCascade()
delete JobType in cascade

Returns:
OperationInfo (bool, DataTable)

update

public OperationInfo update()
update JobType

Specified by:
update in class AdminModuleBase
Returns:
OperationInfo (bool, DataTable) for the updated record

getMediaTypes

public OperationInfo getMediaTypes()
get all media types assigned to job type


updateMediaTypes

public OperationInfo updateMediaTypes(int mediaTypeID)
update assigned media types


updateMediaTypes

public OperationInfo updateMediaTypes(java.lang.Object[] MTIDs)
Update Media Types assigned to jobtype

Parameters:
MTIDs -
Returns:
operationInfo (boolean, DataTable)

deleteMediaTypes

public OperationInfo deleteMediaTypes(int mediaTypeID)
delete assigned media type


getAllPhases

public OperationInfo getAllPhases()
Select all phases related to a JobType

Returns:
OperationInfo (bool, DataTable) for all phases related to this JobType

getPhases

public OperationInfo getPhases()
Loads all phases

Returns:
OperationInfo

getNotAutoPhases

public OperationInfo getNotAutoPhases()
Loads all phases that are not auto

Returns:
OperationInfo

getSeqPhases

public OperationInfo getSeqPhases()
Loads all phases taht have sequence

Returns:
OperationInfo

getAvailablePhases

public OperationInfo getAvailablePhases()
Loads all phases that are available but not in job type sequence

Returns:
OperationInfo

setID

public void setID(int typeID)
Sets the jobType ID


setJTName

public void setJTName(java.lang.String Value)
set JobType Name

Parameters:
Value - is the JobType Name

setJTDescription

public void setJTDescription(java.lang.String Value)
set JobType Description

Parameters:
Value - is the JobType Description

setJTNamingConvention

public void setJTNamingConvention(java.lang.String Value)
set JobType NamingConvention

Parameters:
Value - is the JobType NamingConvention

setJTLifeTime

public void setJTLifeTime(int Value)
set JobType LifeTime

Parameters:
Value - is the JobType LifeTime

getID

public int getID()
Gets the JobType ID.


getJTName

public java.lang.String getJTName()
get JobType Name

Returns:
JobType Name

getJTDescription

public java.lang.String getJTDescription()
get JobType Description

Returns:
JobType Description

getJTNamingConvention

public java.lang.String getJTNamingConvention()
get JobType NamingConvention

Returns:
JobType NamingConvention

getJTLifeTime

public int getJTLifeTime()
get JobType LifeTime

Returns:
JobType LifeTime