Package org.apache.cayenne.map

Examples of org.apache.cayenne.map.DbKeyGenerator


            catch (NumberFormatException nfex) {
                throw new ValidationException("Invalid number");
            }
        }

        DbKeyGenerator generator = mediator.getCurrentDbEntity().getPrimaryKeyGenerator();
        if (!Util.nullSafeEquals(generator.getKeyCacheSize(), new Integer(cacheSize))) {
            generator.setKeyCacheSize(new Integer(cacheSize));
            mediator.fireDbEntityEvent(new EntityEvent(this, generator.getDbEntity()));
        }
    }
View Full Code Here


        if (text != null && text.trim().length() == 0) {
            text = null;
        }

        DbKeyGenerator generator = mediator.getCurrentDbEntity().getPrimaryKeyGenerator();
        if (!Util.nullSafeEquals(text, generator.getName())) {
            generator.setGeneratorName(text);
            mediator.fireDbEntityEvent(new EntityEvent(this, generator.getDbEntity()));
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.cayenne.map.DbKeyGenerator

Copyright © 2018 www.massapicom. 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.