|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.qriterium.dogma.gui.DogmaDBCommComponent
public class DogmaDBCommComponent
Used for containing the communication between resourcebase and other components. Keeps also track of the modified resources so that we can save only the modifications.
Field Summary | |
---|---|
static ResourceBase |
resourceBase
|
Constructor Summary | |
---|---|
DogmaDBCommComponent()
Initiates the component and automatically searches for resources with "LAST_VIEW" in their tag. |
|
DogmaDBCommComponent(boolean loadContent)
Initiates the component without searching for a tag. |
|
DogmaDBCommComponent(ResourceBase rb)
Initiates the component with the given resourcebase and loads the last viewed resources to it. |
|
DogmaDBCommComponent(ResourceBase base,
boolean loadContent)
Creates a new resourceComponent |
Method Summary | |
---|---|
void |
addLastView()
Adds "LAST_VIEW" - tags to the resources in the current resourcevector. |
void |
addResource(DogmaResource resource)
Inserts a resource to the current vector. |
void |
cleanLastView()
Cleans the "LAST_VIEW" - tags from the resourcebase. |
void |
close()
Close the resourcebase and saves modifications. |
ResourceBase |
getResourceBase()
Returns the current database in use. |
java.util.Vector<DogmaResource> |
getResourceVector()
Gets the current Vector of DogmaResources in the DogmaDBCommComponent |
void |
insertQuerySet(java.util.Vector<DogmaResource> vector)
Inserts the set of resources we got from a query to the vector and initiates the component with the new data. |
void |
insertResourcesFromTextFile(java.lang.String textFile)
Uses DogmaQDUpdateParser to parse data from a textFile to resourceVector. |
void |
insertResourceVector(java.util.Vector<DogmaResource> vector)
Inserts a vectorString to the current set |
void |
insertSet(java.util.Vector<DogmaResource> vector)
Inserts the set of resources we got from a query to the vector and initiates the component. |
void |
setResourceBase(ResourceBase rb)
Sets the resourcebase to rb |
int |
size()
Returns the amount of resources in the component. |
void |
updateResource(DogmaResource resource)
Update a resource to the resourceVector |
void |
updateResources()
Saves the modifications to the database and clears the modified - vector. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static ResourceBase resourceBase
Constructor Detail |
---|
public DogmaDBCommComponent(ResourceBase base, boolean loadContent)
public DogmaDBCommComponent(ResourceBase rb)
rb
- public DogmaDBCommComponent(boolean loadContent)
public DogmaDBCommComponent()
Method Detail |
---|
public void addLastView()
public void cleanLastView()
public int size()
public void insertQuerySet(java.util.Vector<DogmaResource> vector)
public void insertSet(java.util.Vector<DogmaResource> vector)
public void insertResourceVector(java.util.Vector<DogmaResource> vector)
vector
- public void addResource(DogmaResource resource)
public void updateResource(DogmaResource resource)
resource
- public void updateResources()
public void insertResourcesFromTextFile(java.lang.String textFile)
textFile
- public java.util.Vector<DogmaResource> getResourceVector()
public ResourceBase getResourceBase()
public void setResourceBase(ResourceBase rb)
rb
- public void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |