Examples of IDMethod


Examples of org.apache.torque.adapter.IDMethod

     *         needs to be accessed but is not configured.
     */
    private Object getIdMethodInfo()
            throws TorqueException
    {
        IDMethod idMethod = tableMap.getPrimaryKeyMethod();
        if (IDMethod.NATIVE == idMethod)
        {
            Adapter adapter = Torque.getAdapter(getDatabaseName());
            if (adapter == null)
            {
View Full Code Here

Examples of org.apache.torque.adapter.IDMethod

     *
     * @return The appropriate ID generator (possibly <code>null</code>).
     */
    public static IdGenerator create(Adapter adapter, String name)
    {
        IDMethod idMethod = adapter.getIDMethodType();
        if (IDMethod.AUTO_INCREMENT == idMethod)
        {
            return new AutoIncrementIdGenerator(adapter, name);
        }
        else if (IDMethod.SEQUENCE == idMethod)
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.