congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Reflection.findSerializableProperties
Code IndexAdd Tabnine to your IDE (free)

How to use
findSerializableProperties
method
in
org.granite.messaging.reflect.Reflection

Best Java code snippets using org.granite.messaging.reflect.Reflection.findSerializableProperties (Showing top 20 results out of 315)

origin: org.graniteds/granite-client

public List<Property> getProperties(Class<?> entityClass) {
  return reflection.findSerializableProperties(entityClass);
}
 
origin: org.graniteds/granite-client-javafx

public List<Property> getProperties(Class<?> entityClass) {
  return reflection.findSerializableProperties(entityClass);
}
 
origin: org.graniteds/granite-client-java

public List<Property> getProperties(Class<?> entityClass) {
  return reflection.findSerializableProperties(entityClass);
}
 
origin: org.graniteds/granite-client

public Property findSerializableProperty(Class<?> cls, String name) throws SecurityException {
  List<Property> properties = findSerializableProperties(cls);
  for (Property property : properties) {
    if (name.equals(property.getName()))
      return property;
  }
  return null;
}
 
origin: org.graniteds/granite-client-javafx

public List<Property> getLazyProperties(Class<?> entityClass) {
  List<Property> properties = reflection.findSerializableProperties(entityClass);
  List<Property> lazyProperties = new ArrayList<Property>();
  for (Property property : properties) {
    if (property.isAnnotationPresent(Lazy.class))
      lazyProperties.add(property);
  }
  return lazyProperties;
}
origin: org.graniteds/granite-client

public List<Property> getLazyProperties(Class<?> entityClass) {
  List<Property> properties = reflection.findSerializableProperties(entityClass);
  List<Property> lazyProperties = new ArrayList<Property>();
  for (Property property : properties) {
    if (property.isAnnotationPresent(Lazy.class))
      lazyProperties.add(property);
  }
  return lazyProperties;
}
origin: org.graniteds/granite-client-java

public List<Property> getLazyProperties(Class<?> entityClass) {
  List<Property> properties = reflection.findSerializableProperties(entityClass);
  List<Property> lazyProperties = new ArrayList<Property>();
  for (Property property : properties) {
    if (property.isAnnotationPresent(Lazy.class))
      lazyProperties.add(property);
  }
  return lazyProperties;
}
origin: org.graniteds/granite-client-javafx

public Property findSerializableProperty(Class<?> cls, String name) throws SecurityException {
  List<Property> properties = findSerializableProperties(cls);
  for (Property property : properties) {
    if (name.equals(property.getName()))
      return property;
  }
  return null;
}
 
origin: org.graniteds/granite-server

public Property findSerializableProperty(Class<?> cls, String name) throws SecurityException {
  List<Property> properties = findSerializableProperties(cls);
  for (Property property : properties) {
    if (name.equals(property.getName()))
      return property;
  }
  return null;
}
 
origin: org.graniteds/granite-client-java

public Property findSerializableProperty(Class<?> cls, String name) throws SecurityException {
  List<Property> properties = findSerializableProperties(cls);
  for (Property property : properties) {
    if (name.equals(property.getName()))
      return property;
  }
  return null;
}
 
origin: org.graniteds/granite-client

protected void encodeSerializable(OutputContext ctx, Serializable v) throws IOException, IllegalAccessException, InvocationTargetException {
  List<Property> properties = ctx.getReflection().findSerializableProperties(v.getClass());
  for (Property property : properties)
    ctx.getAndWriteProperty(v, property);
}
 
origin: org.graniteds/granite-client

protected void decodeSerializable(InputContext ctx, Serializable v)
  throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException {
  List<Property> properties = ctx.getReflection().findSerializableProperties(v.getClass());
  for (Property property : properties)
    ctx.readAndSetProperty(v, property);
}
origin: org.graniteds/granite-server-hibernate4

public void decode(ExtendedObjectInput in, Object v) throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException {
  if (!(v instanceof HibernateProxy)) {
    List<Property> properties = in.getReflection().findSerializableProperties(v.getClass());
    for (Property property : properties)
      in.readAndSetProperty(v, property);
  }
}
 
origin: org.graniteds/granite-client-javafx

public Map<String, Object> getPropertyValues(Object entity, boolean raw, boolean excludeIdUid, boolean excludeVersion, boolean includeReadOnly) {
  Map<String, Object> values = new LinkedHashMap<String, Object>();
  List<Property> properties = reflection.findSerializableProperties(entity.getClass());
origin: org.graniteds/granite-client-java

public void encode(ExtendedObjectOutput out, Object v) throws IOException, IllegalAccessException, InvocationTargetException {
  
  Persistence persistence = Platform.persistence();
  
  boolean initialized = persistence.isInitialized(v);
  
  out.writeBoolean(initialized);
  out.writeUTF(persistence.getDetachedState(v));
  
  if (!initialized)
    out.writeObject(persistence.getId(v));
  else {
    List<Property> properties = new ArrayList<Property>(out.getReflection().findSerializableProperties(v.getClass()));
    properties.remove(persistence.getInitializedProperty(v.getClass()));
    properties.remove(persistence.getDetachedStateProperty(v.getClass()));
    for (Property property : properties)
      out.getAndWriteProperty(v, property);
  }
}
origin: org.graniteds/granite-client-javafx

public void encode(ExtendedObjectOutput out, Object v) throws IOException, IllegalAccessException, InvocationTargetException {
  
  Persistence persistence = Platform.persistence();
  
  boolean initialized = persistence.isInitialized(v);
  
  out.writeBoolean(initialized);
  out.writeUTF(persistence.getDetachedState(v));
  
  if (!initialized)
    out.writeObject(persistence.getId(v));
  else {
    List<Property> properties = new ArrayList<Property>(out.getReflection().findSerializableProperties(v.getClass()));
    properties.remove(persistence.getInitializedProperty(v.getClass()));
    properties.remove(persistence.getDetachedStateProperty(v.getClass()));
    for (Property property : properties)
      out.getAndWriteProperty(v, property);
  }
}
origin: org.graniteds/granite-client

public void encode(ExtendedObjectOutput out, Object v) throws IOException, IllegalAccessException, InvocationTargetException {
  
  Persistence persistence = Platform.persistence();
  
  boolean initialized = persistence.isInitialized(v);
  
  out.writeBoolean(initialized);
  out.writeUTF(persistence.getDetachedState(v));
  
  if (!initialized)
    out.writeObject(persistence.getId(v));
  else {
    List<Property> properties = new ArrayList<Property>(out.getReflection().findSerializableProperties(v.getClass()));
    properties.remove(persistence.getInitializedProperty(v.getClass()));
    properties.remove(persistence.getDetachedStateProperty(v.getClass()));
    for (Property property : properties)
      out.getAndWriteProperty(v, property);
  }
}
origin: org.graniteds/granite-client-javafx

  public void decode(ExtendedObjectInput in, Object v) throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException {
    
    Persistence persistence = Platform.persistence();
    
    boolean initialized = in.readBoolean();
    String detachedState = in.readUTF();
    
    persistence.setInitialized(v, initialized);
    persistence.setDetachedState(v, detachedState);
    
    if (!initialized)
      persistence.setId(v, in.readObject());
    else {
      List<Property> properties = new ArrayList<Property>(in.getReflection().findSerializableProperties(v.getClass()));
      properties.remove(persistence.getInitializedProperty(v.getClass()));
      properties.remove(persistence.getDetachedStateProperty(v.getClass()));

      for (Property property : properties)
        in.readAndSetProperty(v, property);
    }
  }
}
origin: org.graniteds/granite-client-java

  public void decode(ExtendedObjectInput in, Object v) throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException {
    
    Persistence persistence = Platform.persistence();
    
    boolean initialized = in.readBoolean();
    String detachedState = in.readUTF();
    
    persistence.setInitialized(v, initialized);
    persistence.setDetachedState(v, detachedState);
    
    if (!initialized)
      persistence.setId(v, in.readObject());
    else {
      List<Property> properties = new ArrayList<Property>(in.getReflection().findSerializableProperties(v.getClass()));
      properties.remove(persistence.getInitializedProperty(v.getClass()));
      properties.remove(persistence.getDetachedStateProperty(v.getClass()));

      for (Property property : properties)
        in.readAndSetProperty(v, property);
    }
  }
}
origin: org.graniteds/granite-client

  public void decode(ExtendedObjectInput in, Object v) throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException {
    
    Persistence persistence = Platform.persistence();
    
    boolean initialized = in.readBoolean();
    String detachedState = in.readUTF();
    
    persistence.setInitialized(v, initialized);
    persistence.setDetachedState(v, detachedState);
    
    if (!initialized)
      persistence.setId(v, in.readObject());
    else {
      List<Property> properties = new ArrayList<Property>(in.getReflection().findSerializableProperties(v.getClass()));
      properties.remove(persistence.getInitializedProperty(v.getClass()));
      properties.remove(persistence.getDetachedStateProperty(v.getClass()));

      for (Property property : properties)
        in.readAndSetProperty(v, property);
    }
  }
}
org.granite.messaging.reflectReflectionfindSerializableProperties

Popular methods of Reflection

  • loadClass
  • newInstance
  • <init>
  • getClassLoader
  • isRegularClass
  • newFieldProperty
  • newMethodProperty
  • findProperty
  • findSerializableProperty
  • getDescriptor
  • getLexicalPropertyComparator
  • findSerializableDeclaredProperties
  • getLexicalPropertyComparator,
  • findSerializableDeclaredProperties

Popular in Java

  • Updating database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • getExternalFilesDir (Context)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now