com.jalios.jstore
Class Test

java.lang.Object
  extended by com.jalios.jstore.BasicStorable
      extended by com.jalios.jstore.Test
All Implemented Interfaces:
Searchable, Storable, Cloneable, Comparable<BasicStorable>

public class Test
extends BasicStorable
implements Searchable

This class runs a bunch of tests.

Version:
$Revision: 27753 $
Author:
Olivier Dedieu

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jalios.jstore.BasicStorable
BasicStorable.CdateComparator<T extends Storable>, BasicStorable.IdComparator<T extends Storable>, BasicStorable.MdateComparator<T extends Storable>
 
Field Summary
static String REVISION
           
 
Fields inherited from class com.jalios.jstore.BasicStorable
cdate, ddate, id, mdate, store
 
Constructor Summary
Test()
           
Test(Test other)
           
 
Method Summary
 ArrayList<Object> getMyArrayList()
          Get the value of myArrayList.
 boolean getMyBoolean()
          Get the value of myBoolean.
 boolean[] getMyBooleanArray()
          Get the value of myBooleanArray.
 byte getMyByte()
          Get the value of myByte.
 byte[] getMyByteArray()
          Get the value of myByteArray.
 char getMyChar()
          Get the value of myChar.
 char[] getMyCharArray()
          Get the value of myCharArray.
 Class<?> getMyClass()
          Get the value of myClass.
 Date getMyDate()
          Get the value of myDate.
 double getMyDouble()
          Get the value of myDouble.
 double[] getMyDoubleArray()
          Get the value of myDoubleArray.
 float getMyFloat()
          Get the value of myFloat.
 float[] getMyFloatArray()
          Get the value of myFloatArray.
 HashMap<Object,Object> getMyHashMap()
          Get the value of myHashMap.
 HashSet<Object> getMyHashSet()
          Get the value of myHashSet.
 Hashtable<Object,Object> getMyHashtable()
          Get the value of myHashtable.
 int getMyInt()
          Get the value of myInt.
 int[] getMyIntArray()
          Get the value of myIntArray.
 LinkedList<Object> getMyLinkedList()
          Get the value of myLinkedList.
 long getMyLong()
          Get the value of myLong.
 long[] getMyLongArray()
          Get the value of myLongArray.
 Properties getMyProperties()
          Get the value of myProperties.
 short getMyShort()
          Get the value of myShort.
 short[] getMyShortArray()
          Get the value of myShortArray.
 String getMyString()
          Get the value of myString.
 String[] getMyStringArray()
          Get the value of myStringArray.
 StringBuffer getMyStringBuffer()
          Get the value of myStringBuffer.
 Test getMyTest()
          Get the value of myTest.
 Test[] getMyTestArray()
          Get the value of myTestArray.
 TreeMap<Object,Object> getMyTreeMap()
          Get the value of myTreeMap.
 TreeSet<Object> getMyTreeSet()
          Get the value of myTreeSet.
 Vector<Object> getMyVector()
          Get the value of myVector.
 String[] getSearchStrings()
          This method gets called to get all the String to search in (typically the String attribute of the Storable).
static void main(String[] args)
           
 void read(String logFilename, String[] args)
           
 void read2(String logFilename, String[] args)
           
 void setMyArrayList(ArrayList<Object> v)
          Set the value of myArrayList.
 void setMyBoolean(boolean v)
          Set the value of myBoolean.
 void setMyBooleanArray(boolean[] v)
          Set the value of myBooleanArray.
 void setMyByte(byte v)
          Set the value of myByte.
 void setMyByteArray(byte[] v)
          Set the value of myByteArray.
 void setMyChar(char v)
          Set the value of myChar.
 void setMyCharArray(char[] v)
          Set the value of myCharArray.
 void setMyClass(Class<?> v)
          Set the value of myClass.
 void setMyDate(Date v)
          Set the value of myDate.
 void setMyDouble(double v)
          Set the value of myDouble.
 void setMyDoubleArray(double[] v)
          Set the value of myDoubleArray.
 void setMyFloat(float v)
          Set the value of myFloat.
 void setMyFloatArray(float[] v)
          Set the value of myFloatArray.
 void setMyHashMap(HashMap<Object,Object> v)
          Set the value of myHashMap.
 void setMyHashSet(HashSet<Object> v)
          Set the value of myHashSet.
 void setMyHashtable(Hashtable<Object,Object> v)
          Set the value of myHashtable.
 void setMyInt(int v)
          Set the value of myInt.
 void setMyIntArray(int[] v)
          Set the value of myIntArray.
 void setMyLinkedList(LinkedList<Object> v)
          Set the value of myLinkedList.
 void setMyLong(long v)
          Set the value of myLong.
 void setMyLongArray(long[] v)
          Set the value of myLongArray.
 void setMyProperties(Properties v)
          Set the value of myProperties.
 void setMyShort(short v)
          Set the value of myShort.
 void setMyShortArray(short[] v)
          Set the value of myShortArray.
 void setMyString(String v)
          Set the value of myString.
 void setMyStringArray(String[] v)
          Set the value of myStringArray.
 void setMyStringBuffer(StringBuffer v)
          Set the value of myStringBuffer.
 void setMyTest(Test v)
          Set the value of myTest.
 void setMyTestArray(Test[] v)
          Set the value of myTestArray.
 void setMyTreeMap(TreeMap<Object,Object> v)
          Set the value of myTreeMap.
 void setMyTreeSet(TreeSet<Object> v)
          Set the value of myTreeSet.
 void setMyVector(Vector<Object> v)
          Set the value of myVector.
 String toLongString()
           
 String toString()
           
 void version(String logFilename, String[] args)
           
 void write(String logFilename, String[] args)
           
 void write2(String logFilename, String[] args)
           
 
Methods inherited from class com.jalios.jstore.BasicStorable
clearId, clone, compareTo, equals, getAttribute, getAttributes, getCdate, getCdateComparator, getDdate, getId, getIdComparator, getMdate, getMdateComparator, getStore, getUrid, hasBeenUpdated, hashCode, isStored, resolveAtt, resolveVal, setAttributes, setCdate, setDdate, setId, setMdate, setStore, toXml
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values
Constructor Detail

Test

public Test()

Test

public Test(Test other)
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

read2

public void read2(String logFilename,
                  String[] args)
           throws Exception
Throws:
Exception

version

public void version(String logFilename,
                    String[] args)
             throws Exception
Throws:
Exception

read

public void read(String logFilename,
                 String[] args)
          throws Exception
Throws:
Exception

write2

public void write2(String logFilename,
                   String[] args)
            throws Exception
Throws:
Exception

write

public void write(String logFilename,
                  String[] args)
           throws Exception
Throws:
Exception

getSearchStrings

public String[] getSearchStrings()
Description copied from interface: Searchable
This method gets called to get all the String to search in (typically the String attribute of the Storable). If one of those String match the query, this Storable is added in the result set.

Specified by:
getSearchStrings in interface Searchable
Returns:
an array of String corresponding to this object.

toString

public String toString()
Overrides:
toString in class Object

toLongString

public String toLongString()

getMyBoolean

public boolean getMyBoolean()
Get the value of myBoolean.

Returns:
Value of myBoolean.

setMyBoolean

public void setMyBoolean(boolean v)
Set the value of myBoolean.

Parameters:
v - Value to assign to myBoolean.

getMyByte

public byte getMyByte()
Get the value of myByte.

Returns:
Value of myByte.

setMyByte

public void setMyByte(byte v)
Set the value of myByte.

Parameters:
v - Value to assign to myByte.

getMyChar

public char getMyChar()
Get the value of myChar.

Returns:
Value of myChar.

setMyChar

public void setMyChar(char v)
Set the value of myChar.

Parameters:
v - Value to assign to myChar.

getMyDouble

public double getMyDouble()
Get the value of myDouble.

Returns:
Value of myDouble.

setMyDouble

public void setMyDouble(double v)
Set the value of myDouble.

Parameters:
v - Value to assign to myDouble.

getMyFloat

public float getMyFloat()
Get the value of myFloat.

Returns:
Value of myFloat.

setMyFloat

public void setMyFloat(float v)
Set the value of myFloat.

Parameters:
v - Value to assign to myFloat.

getMyInt

public int getMyInt()
Get the value of myInt.

Returns:
Value of myInt.

setMyInt

public void setMyInt(int v)
Set the value of myInt.

Parameters:
v - Value to assign to myInt.

getMyLong

public long getMyLong()
Get the value of myLong.

Returns:
Value of myLong.

setMyLong

public void setMyLong(long v)
Set the value of myLong.

Parameters:
v - Value to assign to myLong.

getMyShort

public short getMyShort()
Get the value of myShort.

Returns:
Value of myShort.

setMyShort

public void setMyShort(short v)
Set the value of myShort.

Parameters:
v - Value to assign to myShort.

getMyBooleanArray

public boolean[] getMyBooleanArray()
Get the value of myBooleanArray.

Returns:
Value of myBooleanArray.

setMyBooleanArray

public void setMyBooleanArray(boolean[] v)
Set the value of myBooleanArray.

Parameters:
v - Value to assign to myBooleanArray.

getMyByteArray

public byte[] getMyByteArray()
Get the value of myByteArray.

Returns:
Value of myByteArray.

setMyByteArray

public void setMyByteArray(byte[] v)
Set the value of myByteArray.

Parameters:
v - Value to assign to myByteArray.

getMyCharArray

public char[] getMyCharArray()
Get the value of myCharArray.

Returns:
Value of myCharArray.

setMyCharArray

public void setMyCharArray(char[] v)
Set the value of myCharArray.

Parameters:
v - Value to assign to myCharArray.

getMyDoubleArray

public double[] getMyDoubleArray()
Get the value of myDoubleArray.

Returns:
Value of myDoubleArray.

setMyDoubleArray

public void setMyDoubleArray(double[] v)
Set the value of myDoubleArray.

Parameters:
v - Value to assign to myDoubleArray.

getMyFloatArray

public float[] getMyFloatArray()
Get the value of myFloatArray.

Returns:
Value of myFloatArray.

setMyFloatArray

public void setMyFloatArray(float[] v)
Set the value of myFloatArray.

Parameters:
v - Value to assign to myFloatArray.

getMyIntArray

public int[] getMyIntArray()
Get the value of myIntArray.

Returns:
Value of myIntArray.

setMyIntArray

public void setMyIntArray(int[] v)
Set the value of myIntArray.

Parameters:
v - Value to assign to myIntArray.

getMyLongArray

public long[] getMyLongArray()
Get the value of myLongArray.

Returns:
Value of myLongArray.

setMyLongArray

public void setMyLongArray(long[] v)
Set the value of myLongArray.

Parameters:
v - Value to assign to myLongArray.

getMyShortArray

public short[] getMyShortArray()
Get the value of myShortArray.

Returns:
Value of myShortArray.

setMyShortArray

public void setMyShortArray(short[] v)
Set the value of myShortArray.

Parameters:
v - Value to assign to myShortArray.

getMyStringArray

public String[] getMyStringArray()
Get the value of myStringArray.

Returns:
Value of myStringArray.

setMyStringArray

public void setMyStringArray(String[] v)
Set the value of myStringArray.

Parameters:
v - Value to assign to myStringArray.

getMyTestArray

public Test[] getMyTestArray()
Get the value of myTestArray.

Returns:
Value of myTestArray.

setMyTestArray

public void setMyTestArray(Test[] v)
Set the value of myTestArray.

Parameters:
v - Value to assign to myTestArray.

getMyString

public String getMyString()
Get the value of myString.

Returns:
Value of myString.

setMyString

public void setMyString(String v)
Set the value of myString.

Parameters:
v - Value to assign to myString.

getMyStringBuffer

public StringBuffer getMyStringBuffer()
Get the value of myStringBuffer.

Returns:
Value of myStringBuffer.

setMyStringBuffer

public void setMyStringBuffer(StringBuffer v)
Set the value of myStringBuffer.

Parameters:
v - Value to assign to myStringBuffer.

getMyDate

public Date getMyDate()
Get the value of myDate.

Returns:
Value of myDate.

setMyDate

public void setMyDate(Date v)
Set the value of myDate.

Parameters:
v - Value to assign to myDate.

getMyClass

public Class<?> getMyClass()
Get the value of myClass.

Returns:
Value of myClass.

setMyClass

public void setMyClass(Class<?> v)
Set the value of myClass.

Parameters:
v - Value to assign to myClass.

getMyProperties

public Properties getMyProperties()
Get the value of myProperties.

Returns:
Value of myProperties.

setMyProperties

public void setMyProperties(Properties v)
Set the value of myProperties.

Parameters:
v - Value to assign to myProperties.

getMyTest

public Test getMyTest()
Get the value of myTest.

Returns:
Value of myTest.

setMyTest

public void setMyTest(Test v)
Set the value of myTest.

Parameters:
v - Value to assign to myTest.

getMyLinkedList

public LinkedList<Object> getMyLinkedList()
Get the value of myLinkedList.

Returns:
Value of myLinkedList.

setMyLinkedList

public void setMyLinkedList(LinkedList<Object> v)
Set the value of myLinkedList.

Parameters:
v - Value to assign to myLinkedList.

getMyArrayList

public ArrayList<Object> getMyArrayList()
Get the value of myArrayList.

Returns:
Value of myArrayList.

setMyArrayList

public void setMyArrayList(ArrayList<Object> v)
Set the value of myArrayList.

Parameters:
v - Value to assign to myArrayList.

getMyVector

public Vector<Object> getMyVector()
Get the value of myVector.

Returns:
Value of myVector.

setMyVector

public void setMyVector(Vector<Object> v)
Set the value of myVector.

Parameters:
v - Value to assign to myVector.

getMyHashSet

public HashSet<Object> getMyHashSet()
Get the value of myHashSet.

Returns:
Value of myHashSet.

setMyHashSet

public void setMyHashSet(HashSet<Object> v)
Set the value of myHashSet.

Parameters:
v - Value to assign to myHashSet.

getMyTreeSet

public TreeSet<Object> getMyTreeSet()
Get the value of myTreeSet.

Returns:
Value of myTreeSet.

setMyTreeSet

public void setMyTreeSet(TreeSet<Object> v)
Set the value of myTreeSet.

Parameters:
v - Value to assign to myTreeSet.

getMyHashMap

public HashMap<Object,Object> getMyHashMap()
Get the value of myHashMap.

Returns:
Value of myHashMap.

setMyHashMap

public void setMyHashMap(HashMap<Object,Object> v)
Set the value of myHashMap.

Parameters:
v - Value to assign to myHashMap.

getMyHashtable

public Hashtable<Object,Object> getMyHashtable()
Get the value of myHashtable.

Returns:
Value of myHashtable.

setMyHashtable

public void setMyHashtable(Hashtable<Object,Object> v)
Set the value of myHashtable.

Parameters:
v - Value to assign to myHashtable.

getMyTreeMap

public TreeMap<Object,Object> getMyTreeMap()
Get the value of myTreeMap.

Returns:
Value of myTreeMap.

setMyTreeMap

public void setMyTreeMap(TreeMap<Object,Object> v)
Set the value of myTreeMap.

Parameters:
v - Value to assign to myTreeMap.


Copyright © 2001-2010 Jalios SA. All Rights Reserved.