Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  *  Copyright 2009-2014 Pavel Ponec
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *  You may obtain a copy of the License at
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
package org.ujorm.orm;
Extended ORM Ujo. Interface methods are not necessary to run the ORM.

public interface ExtendedOrmUjo<UJO_IMPL extends Ujoextends OrmUjo {

Read the foreign key. This is useful to obtain the foreign key value without (lazy) loading the entire object. If the lazy object is loaded, the method will need the Session to build the ForeignKey instance.
NOTE: The method is designed for developers only, the Ujorm doesn't call it newer.

If no related object is available, then the result has the NULL value.
java.lang.IllegalStateException Method throws an exception for a wrong key type.
java.lang.NullPointerException Method throws an exception if a Session is missing after a lazy initialization of the key.
    public <UJO extends UJO_IMPL> ForeignKey readFK(Key<UJO, ? extends OrmUjokeythrows IllegalStateException;
New to GrepCode? Check out our FAQ X