Class BasicLoader

  • Direct Known Subclasses:
    OuterJoinLoader, QueryLoader

    public abstract class BasicLoader
    extends Loader
    Uses the default mapping from property to result set column alias defined by the entities' persisters. Used when Hibernate is generating result set column aliases.
    • Field Detail

      • NO_SUFFIX

        protected static final java.lang.String[] NO_SUFFIX
    • Method Detail

      • getSuffixes

        protected abstract java.lang.String[] getSuffixes()
      • getCollectionSuffixes

        protected abstract java.lang.String[] getCollectionSuffixes()
      • postInstantiate

        protected void postInstantiate()
        Description copied from class: Loader
        Calculate and cache select-clause suffixes. Must be called by subclasses after instantiation.
        postInstantiate in class Loader
      • generateSuffixes

        public static java.lang.String[] generateSuffixes​(int length)
        Utility method that generates 0_, 1_ suffixes. Subclasses don't necessarily need to use this algorithm, but it is intended that they will in most cases.
        length - The number of suffixes to generate
        The array of generated suffixes (with length=length).
      • generateSuffixes

        public static java.lang.String[] generateSuffixes​(int seed,
                                                          int length)