Examples of DDLGenConfiguration


Examples of org.castor.ddlgen.DDLGenConfiguration

     */
    public final void testNoId() {
        try {
            loadData("no_id.xml");

            DDLGenConfiguration conf = _generator.getConfiguration();
            Object[] params = new Object[] {
                    conf.getInteger(PARAM_PREFIX + "integer" + PARAM_PRECISION),
                    conf.getInteger(PARAM_PREFIX + "char" + PARAM_LENGTH) };
           
            ByteArrayOutputStream out = new ByteArrayOutputStream();
            DDLWriter writer = new DDLWriter(out, conf);
           
            _generator.generateCreate(writer);
View Full Code Here

Examples of org.castor.ddlgen.DDLGenConfiguration

     */
    public final void testMultipleTable() {
        try {
            loadData("multiple_table.xml");

            DDLGenConfiguration conf = _generator.getConfiguration();
            Object[] params = new Object[] {
                    conf.getInteger(PARAM_PREFIX + "integer" + PARAM_PRECISION),
                    conf.getInteger(PARAM_PREFIX + "char" + PARAM_LENGTH) };
           
            ByteArrayOutputStream out = new ByteArrayOutputStream();
            DDLWriter writer = new DDLWriter(out, conf);
           
            _generator.generateCreate(writer);
View Full Code Here

Examples of org.castor.ddlgen.DDLGenConfiguration

     */
    public final void testSingleFieldForAll() {
        try {
            loadData("single_field_for_all.xml");

            DDLGenConfiguration conf = _generator.getConfiguration();
            Object[] params = new Object[] {
                    conf.getInteger(PARAM_PREFIX + "tinyint" + PARAM_PRECISION),
                    conf.getInteger(PARAM_PREFIX + "smallint" + PARAM_PRECISION),
                    conf.getInteger(PARAM_PREFIX + "integer" + PARAM_PRECISION),
                    conf.getInteger(PARAM_PREFIX + "bigint" + PARAM_PRECISION),
                    conf.getInteger(PARAM_PREFIX + "float" + PARAM_PRECISION),
                    conf.getInteger(PARAM_PREFIX + "float" + PARAM_DECIMALS),
                    conf.getInteger(PARAM_PREFIX + "double" + PARAM_PRECISION),
                    conf.getInteger(PARAM_PREFIX + "double" + PARAM_DECIMALS),
                    conf.getInteger(PARAM_PREFIX + "real" + PARAM_PRECISION),
                    conf.getInteger(PARAM_PREFIX + "real" + PARAM_DECIMALS),
                    conf.getInteger(PARAM_PREFIX + "numeric" + PARAM_PRECISION),
                    conf.getInteger(PARAM_PREFIX + "numeric" + PARAM_DECIMALS),
                    conf.getInteger(PARAM_PREFIX + "decimal" + PARAM_PRECISION),
                    conf.getInteger(PARAM_PREFIX + "decimal" + PARAM_DECIMALS),
                    conf.getInteger(PARAM_PREFIX + "char" + PARAM_LENGTH),
                    conf.getInteger(PARAM_PREFIX + "varchar" + PARAM_LENGTH),
                    conf.getStringValue(PARAM_PREFIX + "longvarchar" + PARAM_LENGTH),
                    conf.getInteger(PARAM_PREFIX + "timestamp" + PARAM_PRECISION),
                    conf.getInteger(PARAM_PREFIX + "binary" + PARAM_LENGTH),
                    conf.getStringValue(PARAM_PREFIX + "varbinary" + PARAM_LENGTH),
                    conf.getStringValue(PARAM_PREFIX + "longvarbinary" + PARAM_LENGTH),
                    conf.getInteger(PARAM_PREFIX + "time" + PARAM_PRECISION),
                    conf.getStringValue(PARAM_PREFIX + "bigint" + PARAM_DECIMALS),
                    conf.getStringValue(PARAM_PREFIX + "other" + PARAM_LENGTH),
                    conf.getStringValue(PARAM_PREFIX + "javaobject" + PARAM_LENGTH),
                    conf.getStringValue(PARAM_PREFIX + "blob" + PARAM_LENGTH),
                    conf.getStringValue(PARAM_PREFIX + "clob" + PARAM_LENGTH) };
           
            ByteArrayOutputStream out = new ByteArrayOutputStream();
            DDLWriter writer = new DDLWriter(out, conf);
           
            _generator.generateCreate(writer);
View Full Code Here

Examples of org.castor.ddlgen.DDLGenConfiguration

     */
    public final void testSingleField() {
        try {
            loadData("single_field.xml");

            DDLGenConfiguration conf = _generator.getConfiguration();
            Object[] params = new Object[] {
                    conf.getInteger(PARAM_PREFIX + "integer" + PARAM_PRECISION),
                    conf.getInteger(PARAM_PREFIX + "char" + PARAM_LENGTH) };
           
            ByteArrayOutputStream out = new ByteArrayOutputStream();
            DDLWriter writer = new DDLWriter(out, conf);
           
            _generator.generateCreate(writer);
View Full Code Here

Examples of org.castor.ddlgen.DDLGenConfiguration

     */
    public final void testKeyGenIdentity() {
        try {
            loadData("key_gen_identity.xml");

            DDLGenConfiguration conf = _generator.getConfiguration();
            Object[] params = new Object[] {
                    conf.getInteger(PARAM_PREFIX + "integer" + PARAM_PRECISION),
                    conf.getInteger(PARAM_PREFIX + "char" + PARAM_LENGTH) };
           
            ByteArrayOutputStream out = new ByteArrayOutputStream();
            DDLWriter writer = new DDLWriter(out, conf);
           
            _generator.generateCreate(writer);
View Full Code Here

Examples of org.castor.ddlgen.DDLGenConfiguration

     */
    public final void testKeyGenHighLow() {
        try {
            loadData("key_gen_high-low.xml");

            DDLGenConfiguration conf = _generator.getConfiguration();
            Object[] params = new Object[] {
                    conf.getInteger(PARAM_PREFIX + "integer" + PARAM_PRECISION),
                    conf.getInteger(PARAM_PREFIX + "char" + PARAM_LENGTH) };
           
            ByteArrayOutputStream out = new ByteArrayOutputStream();
            DDLWriter writer = new DDLWriter(out, conf);
           
            _generator.generateCreate(writer);
View Full Code Here

Examples of org.castor.ddlgen.DDLGenConfiguration

     */
    public final void testKeyGenMax() {
        try {
            loadData("key_gen_max.xml");

            DDLGenConfiguration conf = _generator.getConfiguration();
            Object[] params = new Object[] {
                    conf.getInteger(PARAM_PREFIX + "integer" + PARAM_PRECISION),
                    conf.getInteger(PARAM_PREFIX + "char" + PARAM_LENGTH) };
           
            ByteArrayOutputStream out = new ByteArrayOutputStream();
            DDLWriter writer = new DDLWriter(out, conf);
           
            _generator.generateCreate(writer);
View Full Code Here

Examples of org.castor.ddlgen.DDLGenConfiguration

     */
    public final void testKeyGenSequence() {
        try {
            loadData("key_gen_sequence.xml");

            DDLGenConfiguration conf = _generator.getConfiguration();
            Object[] params = new Object[] {
                    conf.getInteger(PARAM_PREFIX + "integer" + PARAM_PRECISION),
                    conf.getInteger(PARAM_PREFIX + "char" + PARAM_LENGTH) };

            ByteArrayOutputStream out = new ByteArrayOutputStream();
            DDLWriter writer = new DDLWriter(out, conf);
           
            _generator.generateCreate(writer);
View Full Code Here

Examples of org.castor.ddlgen.DDLGenConfiguration

     */
    public final void testKeyGenUUID() {
        try {
            loadData("key_gen_uuid.xml");

            DDLGenConfiguration conf = _generator.getConfiguration();
            Object[] params = new Object[] {
                    conf.getInteger(PARAM_PREFIX + "integer" + PARAM_PRECISION),
                    conf.getInteger(PARAM_PREFIX + "char" + PARAM_LENGTH) };

            ByteArrayOutputStream out = new ByteArrayOutputStream();
            DDLWriter writer = new DDLWriter(out, conf);
           
            _generator.generateCreate(writer);
View Full Code Here

Examples of org.castor.ddlgen.DDLGenConfiguration

     */
    public final void testOneOneRelationship() {
        try {
            loadData("relationship_1_1.xml");

            DDLGenConfiguration conf = _generator.getConfiguration();
            Object[] params = new Object[] {
                    conf.getInteger(PARAM_PREFIX + "integer" + PARAM_PRECISION),
                    conf.getInteger(PARAM_PREFIX + "char" + PARAM_LENGTH) };

            ByteArrayOutputStream out = new ByteArrayOutputStream();
            DDLWriter writer = new DDLWriter(out, conf);
           
            _generator.generateCreate(writer);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.