# com.bea.p13n.placeholder
PlaceholderHelper Class

public class PlaceholderHelper
extends `Object`
implements `PlaceholderConstants`

Utility routines used by the placeholder service and tag.

Hierarchy
  `Object`
  `PlaceholderHelper`

All Implemented Interfaces
  `PlaceholderConstants`

## Constructor Summary

PlaceholderHelper()

## Method Summary

`public static `String`` | `cleanupNamespaces`(`String` src) Remove the namespace qualifiers from an XML string
`public static `String`` | `getDefaultPlaceholderServiceName`() Get the default JNDI name for the a current application's PlaceholderService.
`public static `PlaceholderService`` | `getPlaceholderService`() This will return the default PlaceholderService EJB.
`public static `PlaceholderService`` | `getPlaceholderService`(`String` name)
`public static `String`` | `getPreviewXML`(`Connection` con, long id) Return the XML string for the query for the given id

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Constructor Detail

### PlaceholderHelper

    public PlaceholderHelper()

## Method Detail

### cleanupNamespaces(String) Method

    public static String cleanupNamespaces(String src)

Remove the namespace qualifiers from an XML string

### getDefaultPlaceholderServiceName() Method

    public static String getDefaultPlaceholderServiceName()

Get the default JNDI name for the a current application's PlaceholderService.

#### Returns

null if not in an application.

### getPlaceholderService() Method

DEPRECATED Use the <ejb-ref> instead

    public static PlaceholderService getPlaceholderService()
         throws CreateException

This will return the default PlaceholderService EJB.

#### Returns

the PlaceholderService EJB

#### Exceptions

``CreateException``
  when we fail to create the PlaceholderService

### getPlaceholderService(String) Method

    public static PlaceholderService getPlaceholderService(String name)
         throws CreateException

#### Exceptions

``CreateException``

### getPreviewXML(Connection, long) Method

DEPRECATED Use `com.bea.p13n.placeholder.PlaceholderService.getPreviewSlot(long)``` instead.

    public static String getPreviewXML(Connection con,
                                       long id)
         throws SQLException

Return the XML string for the query for the given id

#### Parameters

con
  the id of the preview

#### Exceptions

``SQLException``