org.xerial.db.sql
Class RelationBuilder
java.lang.Object
org.xerial.db.sql.RelationBuilder
public class RelationBuilder
- extends Object
RelationBuilder creates a Relation instance from a JSON string or a Bean class.
JSON format example.
{"relation":[["id", "integer"], ["name", "string"], ...]}
- Author:
- leo
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RelationBuilder
public RelationBuilder()
extractBeanParameterList
public static List<String> extractBeanParameterList(Class beanClass)
throws BeanException
- Throws:
BeanException
toJSON
public static JSONObject toJSON(Relation r)
createRelation
public static Relation createRelation(String jsonString)
throws JSONException
- Throws:
JSONException
createRelation
public static Relation createRelation(Class beanClass)
throws BeanException
- Throws:
BeanException

This work is licensed under a Creative Commons Attribution-ShareAlike 2.1 Japan License.