public class IlvGanttJDBCDataSource extends IlvGanttDataSource
A JDBC data source implements reading a Gantt data model from a JDBC database
into a IlvTableGanttModel
.
Constructor and Description |
---|
IlvGanttJDBCDataSource()
Creates an instance of
IlvGanttJDBCDataSource . |
Modifier and Type | Method and Description |
---|---|
boolean |
areActivitiesConfigured()
Returns whether this data source defines a query for activity data.
|
boolean |
areConstraintsConfigured()
Returns whether this data source defines a query for constraint data.
|
boolean |
areReservationsConfigured()
Returns whether this data source defines a query for reservation data.
|
boolean |
areResourcesConfigured()
Returns whether this data source defines a query for resource data.
|
protected void |
deserializeImpl(Element element)
This method read the parameters from a DOM element.
|
IlvJDBCQueryParameters |
getActivityQueryParameters()
Returns the query that will be used to extract activities.
|
IlvJDBCQueryParameters |
getConstraintQueryParameters()
Returns the query that will be used to extract constraints.
|
IlvJDBCQueryParameters |
getReservationQueryParameters()
Returns the query that will be used to extract reservations.
|
IlvJDBCQueryParameters |
getResourceQueryParameters()
Returns the query that will be used to extract resources.
|
void |
read(IlvGanttModel ganttModel)
Reads data from this data source into an
IlvGanttModel |
protected void |
serializeImpl(Element element)
This method save the parameters to a DOM element.
|
void |
setActivityQueryParameters(IlvJDBCQueryParameters query)
Sets the query that will be used to extract activities.
|
void |
setConstraintQueryParameters(IlvJDBCQueryParameters query)
Sets the query that will be used to extract constraints.
|
void |
setReservationQueryParameters(IlvJDBCQueryParameters query)
Sets the query that will be used to extract reservations.
|
void |
setResourceQueryParameters(IlvJDBCQueryParameters query)
Sets the query that will be used to extract resources.
|
void |
write(IlvGanttModel ganttModel)
Does nothing on this particular implementation as the data source is
read-only.
|
deserialize, getBaseURL, getDescription, serialize, supportsWrite
public IlvGanttJDBCDataSource()
IlvGanttJDBCDataSource
.public void setActivityQueryParameters(IlvJDBCQueryParameters query)
query
- the query parameterspublic IlvJDBCQueryParameters getActivityQueryParameters()
public boolean areActivitiesConfigured()
areActivitiesConfigured
in class IlvGanttDataSource
true
if this data source defines a configuration
for activity data.public void setResourceQueryParameters(IlvJDBCQueryParameters query)
query
- the query parameterspublic IlvJDBCQueryParameters getResourceQueryParameters()
public boolean areResourcesConfigured()
areResourcesConfigured
in class IlvGanttDataSource
true
if this data source defines a configuration
for resource data.public void setReservationQueryParameters(IlvJDBCQueryParameters query)
query
- the query parameterspublic IlvJDBCQueryParameters getReservationQueryParameters()
public boolean areReservationsConfigured()
areReservationsConfigured
in class IlvGanttDataSource
true
if this data source defines a configuration
for reservation data.public void setConstraintQueryParameters(IlvJDBCQueryParameters query)
query
- the query parameterspublic IlvJDBCQueryParameters getConstraintQueryParameters()
public boolean areConstraintsConfigured()
areConstraintsConfigured
in class IlvGanttDataSource
true
if this data source defines a configuration
for constraint data.public void read(IlvGanttModel ganttModel) throws Exception
IlvGanttModel
read
in class IlvGanttDataSource
ganttModel
- The Gantt model that will contain the data read from this data
source.Exception
- If an exception occurs while reading data.public void write(IlvGanttModel ganttModel) throws Exception
write
in class IlvGanttDataSource
ganttModel
- The Gantt model that contains the data to be saved to the data
source.Exception
- If an exception occurs while writing data.protected void serializeImpl(Element element) throws Exception
serializeImpl
in class IlvGanttDataSource
element
- The DOM element to which the data source parameters are written.Exception
- If an exception occurs while serializing the data source.protected void deserializeImpl(Element element) throws Exception
deserializeImpl
in class IlvGanttDataSource
element
- The DOM element to which the data source parameters are written.Exception
- If an exception occurs while deserializing the data source.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.