org.archiviststoolkit.model
Class ATPluginData

java.lang.Object
  extended by com.jgoodies.binding.beans.Model
      extended by org.archiviststoolkit.mydomain.DomainObject
          extended by org.archiviststoolkit.model.ATPluginData
All Implemented Interfaces:
com.jgoodies.binding.beans.Observable, java.io.Serializable, java.lang.Comparable, Auditable, org.hibernate.classic.Lifecycle

public class ATPluginData
extends DomainObject

Archivists' Toolkit(TM) Copyright © 2005-2009 Regents of the University of California, New York University, & Five Colleges, Inc. All rights reserved. This software is free. You can redistribute it and / or modify it under the terms of the Educational Community License (ECL) version 1.0 (http://www.opensource.org/licenses/ecl1.php) This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ECL license for more details about permissions and limitations. Archivists' Toolkit(TM) http://www.archiviststoolkit.org info@archiviststoolkit.org This class stores data for plugins that are loaded by the AT Data has to be stored as String, but can be xml even objects converted to xml using the xstream jar Created by IntelliJ IDEA.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.archiviststoolkit.mydomain.DomainObject
CREATED, CREATED_BY, LAST_UPDATED, LAST_UPDATED_BY
 
Fields inherited from interface org.hibernate.classic.Lifecycle
NO_VETO, VETO
 
Constructor Summary
ATPluginData()
          The default constructor
ATPluginData(java.lang.String pluginName, java.lang.Boolean isObject, int dataVersion, java.lang.String dataName, java.lang.String dataType, java.lang.String dataString)
           
 
Method Summary
 java.lang.Long getAtPluginDataId()
          Method to return the identifier for this record
 java.lang.String getDataName()
          Method to get the name of this data
 java.lang.String getDataString()
          Method to return the data string.
 java.lang.String getDataType()
          Method to return the type of data this is.
 int getDataVersion()
           
 java.lang.Long getIdentifier()
          Method to return the identifire for this record
 java.lang.Boolean getIsObject()
           
 java.lang.String getPluginName()
           
 void setAtPluginDataId(java.lang.Long atPluginDataId)
          Method to set the record identifier
 void setDataName(java.lang.String dataName)
          Method to set the name of the data
 void setDataString(java.lang.String dataString)
          Method to set the data string
 void setDataType(java.lang.String dataType)
          Method to set the type of this is.
 void setDataVersion(int dataVersion)
           
 void setIdentifier(java.lang.Long identifier)
          Method to return the
 void setIsObject(java.lang.Boolean object)
           
 void setPluginName(java.lang.String pluginName)
           
 java.lang.String toString()
           
 
Methods inherited from class org.archiviststoolkit.mydomain.DomainObject
addRelatedObject, compareTo, creationDate, equals, getAuditInfo, getCreated, getCreatedBy, getLastUpdated, getLastUpdatedBy, getRelatedCollection, getRelatedObject, getUniqueConstraintKey, getVersion, hashCode, isNewRecord, lastUpdated, onDelete, onLoad, onSave, onUpdate, removeIdAndAuditInfo, removeRelatedObject, setAuditInfo, setVersion, testDeleteRules, validateAndDisplayDialog
 
Methods inherited from class com.jgoodies.binding.beans.Model
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ATPluginData

public ATPluginData()
The default constructor


ATPluginData

public ATPluginData(java.lang.String pluginName,
                    java.lang.Boolean isObject,
                    int dataVersion,
                    java.lang.String dataName,
                    java.lang.String dataType,
                    java.lang.String dataString)
Method Detail

getAtPluginDataId

public java.lang.Long getAtPluginDataId()
Method to return the identifier for this record

Returns:
Record Identifier

setAtPluginDataId

public void setAtPluginDataId(java.lang.Long atPluginDataId)
Method to set the record identifier

Parameters:
atPluginDataId - long containing record identifier

getDataString

public java.lang.String getDataString()
Method to return the data string. can be plain text or xml representation of a java object

Returns:
The data string

setDataString

public void setDataString(java.lang.String dataString)
Method to set the data string

Parameters:
dataString - String from database

getDataType

public java.lang.String getDataType()
Method to return the type of data this is. The plugin developer sets this to anything that works for them

Returns:
The type of data this stores

setDataType

public void setDataType(java.lang.String dataType)
Method to set the type of this is. The plugin developer sets this

Parameters:
dataType - The type of this stores

getDataName

public java.lang.String getDataName()
Method to get the name of this data

Returns:
The name of the data given by the user or developer

setDataName

public void setDataName(java.lang.String dataName)
Method to set the name of the data

Parameters:
dataName - The name of the data

getDataVersion

public int getDataVersion()
Returns:
The version of the data. used to keep track of version number of data

setDataVersion

public void setDataVersion(int dataVersion)
Parameters:
dataVersion - Set the data version

getIsObject

public java.lang.Boolean getIsObject()
Returns:
Boolean to see if store text data presents a java object

setIsObject

public void setIsObject(java.lang.Boolean object)
Parameters:
object - set whether this is an object or not

getPluginName

public java.lang.String getPluginName()
Returns:
The name of the plugin this data belongs to

setPluginName

public void setPluginName(java.lang.String pluginName)
Parameters:
pluginName - Set the name of the plugin this data belongs to

getIdentifier

public java.lang.Long getIdentifier()
Method to return the identifire for this record

Specified by:
getIdentifier in class DomainObject
Returns:
Long containing the identifier

setIdentifier

public void setIdentifier(java.lang.Long identifier)
Method to return the

Specified by:
setIdentifier in class DomainObject
Parameters:
identifier - The identifier to set.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object