com.zphinx.spine.data.impl
Class AbstractFileDAO

java.lang.Object
  extended by com.zphinx.spine.data.DataAbstract
      extended by com.zphinx.spine.data.impl.AbstractFileDAO
All Implemented Interfaces:
DataAccessObject

public abstract class AbstractFileDAO
extends DataAbstract

AbstractFileDAO acts as an implementation of a DataAccessObject which uses a file system file for data persistence

Version:
1.0

Copyright ©Zphinx Software Solutions

Author:
David Ladapo

Constructor Summary
AbstractFileDAO()
           
 
Method Summary
 byte[] getFileBytes()
          Get the output file as a byte[]
 String getPath()
          Gets the path to the file this object uses
 Properties getProperties()
          Get the Properties Object to use with this data class
 boolean isPropsFile()
          Get the boolean which indictates if we initiated a Properties Object.
 boolean isWriteFlag()
          Get the writeFlag.True if we should persist the contents of the physical file attached to this resource
 void setFileBytes(byte[] fileBytes)
          Set the output file as a byte[]
 void setPath(String path)
          Sets the path to the file this object uses
 void setProperties(Properties properties)
          Set the Properties Object to use with this data class
 void setPropsFile(boolean propsFile)
          Set the boolean which dictates if we initiated a Properties Object.
 void setWriteFlag(boolean writeFlag)
          Set true if we wish to persist the contents of the physical file attached to this resource
 
Methods inherited from class com.zphinx.spine.data.DataAbstract
close, fetchData, getErrors, getStoreType, setErrors, setStoreType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFileDAO

public AbstractFileDAO()
Method Detail

getFileBytes

public byte[] getFileBytes()
Get the output file as a byte[]

Returns:
Returns the fileBytes.

setFileBytes

public void setFileBytes(byte[] fileBytes)
Set the output file as a byte[]

Parameters:
fileBytes - The fileBytes to set.

getPath

public String getPath()
Gets the path to the file this object uses

Returns:
Returns the path.

setPath

public void setPath(String path)
Sets the path to the file this object uses

Parameters:
path - The path to set.

getProperties

public Properties getProperties()
Get the Properties Object to use with this data class

Returns:
Returns the properties.

setProperties

public void setProperties(Properties properties)
Set the Properties Object to use with this data class

Parameters:
properties - The properties to set.

isPropsFile

public boolean isPropsFile()
Get the boolean which indictates if we initiated a Properties Object.

Returns:
Returns the propsFile.

setPropsFile

public void setPropsFile(boolean propsFile)
Set the boolean which dictates if we initiated a Properties Object.

Parameters:
propsFile - The propsFile to set.

isWriteFlag

public boolean isWriteFlag()
Get the writeFlag.True if we should persist the contents of the physical file attached to this resource

Returns:
Returns the writeFlag.

setWriteFlag

public void setWriteFlag(boolean writeFlag)
Set true if we wish to persist the contents of the physical file attached to this resource

Parameters:
writeFlag - The writeFlag to set.