org.makumba.importer
Class ObjectToRecord
java.lang.Object
org.makumba.importer.ObjectToRecord
public class ObjectToRecord
- extends Object
This class imports makumba objects from fields of Java objects. Imported classes have the opportunity to say what not
to import (field String[] noImport). They can also do post processing (method boolean importTransform(Object o)) and
decide (by the boolean result of importTransform) whether the object is written or not in the makumba database.
- Author:
- Cristian Bogdan
Method Summary |
static void |
importBoolean(String java,
String mdd,
Hashtable<String,String> hjava,
Hashtable<String,Integer> hmdd,
String on)
import a boolean choice from a hashtable |
static void |
importInteger(String java,
String mdd,
Hashtable<String,String> hjava,
Hashtable<String,Integer> hmdd)
import an integer from a hashtable |
Hashtable<String,Object> |
importObject(Object o,
Database db)
|
static void |
importString(String java,
String mdd,
Hashtable<String,String> hjava,
Hashtable<String,String> hmdd)
import an string from a hashtable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
transform
Method transform
clean
Method clean
type
DataDefinition type
fields
Hashtable<String,Field> fields
cleaned
boolean cleaned
zero
static Integer zero
one
static Integer one
ObjectToRecord
public ObjectToRecord(Class<?> c,
String type)
importObject
public Hashtable<String,Object> importObject(Object o,
Database db)
importInteger
public static void importInteger(String java,
String mdd,
Hashtable<String,String> hjava,
Hashtable<String,Integer> hmdd)
- import an integer from a hashtable
importString
public static void importString(String java,
String mdd,
Hashtable<String,String> hjava,
Hashtable<String,String> hmdd)
- import an string from a hashtable
importBoolean
public static void importBoolean(String java,
String mdd,
Hashtable<String,String> hjava,
Hashtable<String,Integer> hmdd,
String on)
- import a boolean choice from a hashtable