EclipseLink 2.3.2, build 'v20111125-r10461' API Reference

org.eclipse.persistence.sdo.helper.extension
Class SDOUtil

java.lang.Object
  extended by org.eclipse.persistence.sdo.helper.extension.SDOUtil

public class SDOUtil
extends java.lang.Object

Purpose: Common functions in support of SDO.

Responsibilities:


Constructor Summary
SDOUtil()
           
 
Method Summary
static java.lang.String className(java.lang.String s, boolean isClass)
          INTERNAL: Return a valid Java class name or method name for a given string
static java.lang.String className(java.lang.String s, boolean flag, boolean isClass, boolean logOn)
          INTERNAL: Return a valid Java class name or method name for a given string
static java.lang.String constantName(java.lang.String s)
          INTERNAL:
static java.lang.String getBooleanGetMethodName(java.lang.String s, java.lang.String returnType)
          INTERNAL: Return a valid Java get method name for a given string.
static java.lang.String getBuiltInType(java.lang.String typeName)
           
static java.lang.String getDefaultPackageName()
          INTERNAL: Get default package name when no targetNamespace URI exists.
static java.lang.String getJavaTypeForProperty(SDOProperty property)
           
static java.lang.String getMethodName(java.lang.String s, java.lang.String returnType)
          INTERNAL: Return a valid Java get method name for a given string.
static java.lang.String getPackageNameFromURI(java.lang.String uriString)
          INTERNAL: Get default package name from a namespace URI.
static java.lang.String methodName(java.lang.String s)
          INTERNAL: Return a valid Java method name for a given string
static java.lang.String methodName(java.lang.String s, boolean flag)
          INTERNAL: Return a valid Java method name for a given string
static java.lang.String setMethodName(java.lang.String s)
          INTERNAL: Return a valid Java set method name for a given string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SDOUtil

public SDOUtil()
Method Detail

getDefaultPackageName

public static java.lang.String getDefaultPackageName()
INTERNAL: Get default package name when no targetNamespace URI exists.
This function follows the JSR-222 JAXB 2.0 algorithm from https://jaxb.dev.java.net/spec-download.html

Returns:
default Java package name String

getPackageNameFromURI

public static java.lang.String getPackageNameFromURI(java.lang.String uriString)
INTERNAL: Get default package name from a namespace URI.
This function follows the JSR-222 JAXB 2.0 algorithm from https://jaxb.dev.java.net/spec-download.html.

Parameters:
uriString - - a namespace URL or URN
Returns:
Java package name String

className

public static java.lang.String className(java.lang.String s,
                                         boolean isClass)
INTERNAL: Return a valid Java class name or method name for a given string

Parameters:
s -
isClass - (flag whether called from a method context)
Returns:

className

public static java.lang.String className(java.lang.String s,
                                         boolean flag,
                                         boolean isClass,
                                         boolean logOn)
INTERNAL: Return a valid Java class name or method name for a given string

Parameters:
s -
isClass - (flag whether called from a method context)
flag -
Returns:

methodName

public static java.lang.String methodName(java.lang.String s)
INTERNAL: Return a valid Java method name for a given string

Parameters:
s -
Returns:

methodName

public static java.lang.String methodName(java.lang.String s,
                                          boolean flag)
INTERNAL: Return a valid Java method name for a given string

Parameters:
s -
flag -
Returns:

setMethodName

public static java.lang.String setMethodName(java.lang.String s)
INTERNAL: Return a valid Java set method name for a given string

Parameters:
s -
Returns:

getMethodName

public static java.lang.String getMethodName(java.lang.String s,
                                             java.lang.String returnType)
INTERNAL: Return a valid Java get method name for a given string. This method will check the returnType to see if it is a boolean/Boolean: if so, 'is' will be used in the method name instead of 'get'.

Parameters:
s -
returnType -
Returns:

getBooleanGetMethodName

public static java.lang.String getBooleanGetMethodName(java.lang.String s,
                                                       java.lang.String returnType)
INTERNAL: Return a valid Java get method name for a given string. This method will NOT check the returnType to see if it is a boolean/Boolean and all method names will start with "GET"

Parameters:
s -
returnType -
Returns:

constantName

public static java.lang.String constantName(java.lang.String s)
INTERNAL:

Parameters:
s -
Returns:

getJavaTypeForProperty

public static java.lang.String getJavaTypeForProperty(SDOProperty property)

getBuiltInType

public static java.lang.String getBuiltInType(java.lang.String typeName)

EclipseLink 2.3.2, build 'v20111125-r10461' API Reference